Quote:
Originally Posted by DarkPT
pawn Код:
public OnPlayerText(playerid, text[]) { if(text[0] == '/' && text[1] == 'a' && text[2] == 'c' && strlen(text) > 3) { new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), PASTA_CONTAS, aname); if(pAdmin[playerid] < 1 || pAdmin[playerid] > 5) return false; format(string, sizeof(string), "(»)Chat-Admin(«) %s(%d) diz: %s", aname, playerid, text[3]); ABroadCast(Verde,string,1);
return true; } return false; }
|
Acho que quando algum jogador digita um comando, a callback chama й
OnPlayerCommandText e nгo
OnPlayerText.