Quote:
Originally Posted by varthshenon
I don't think that will work as he wish.
pawn Code:
new bool:CMD[MAX_PLAYERS];
public OnPlayerCommandReceived(playerid,cmdtext[]) { if(CMD[playerid] == false) { if(!strcmp("/help",cmdtext)) return 1; SendClientMessage(playerid,0,"Error"); } return 1; }
public OnPlayerConnect(playerid) { CMD[playerid] = true; return 1; }
|
I don't see any difference to what you did except the variable name and it was changed to a bool.