Пример #1
0
 /// <summary>
 /// Adds a command handler to be used by players
 /// </summary>
 /// <param name="command"></param>
 /// <param name="callback"></param>
 /// <param name="restricted"></param>
 /// <param name="caseSensitive"></param>
 public CommandHandler(string command, Action <string, string[]> callback, bool restricted = false, bool caseSensitive = true)
 {
     this.command  = command;
     this.callback = callback;
     MtaClient.AddCommandHandler(command, CommandHandlerCallback, caseSensitive);
 }