Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. //para poder fazer um comando, você tem que procurar uma call back chamada:
  2. //public OnPlayerCommandText
  3.  
  4. //irá ficar assim:
  5.  
  6. public OnPlayerCommandText(playerid, cmdtext[])
  7. {
  8.     if(strcmp(cmdtext, "/meucomando", true) == 0)
  9.      {
  10.         if(IsPlayerConnected(playerid))        
  11.         {
  12.             SetPlayerHealth(playerid, 100);
  13.             SendClientMessage(playerid, 0xFFFFFFF,"ganhou 12000 por usar meu commando");
  14.             GivePlayerMoney(playerid, 12000);
  15.         }
  16.      }
  17.      return 1;
  18. }
  19.