08.03.2011, 02:25
On strcmp / strtok and dcmd, I used to block commands with a array:
But, does anyone knows how to block all zcmd? I'm asking because it's not on a callback for be put through of. It's like each callback per command. Thanks,
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
new logged[MAX_PLAYERS];
if(logged[playerid] == 0) return ... ; // That would block all dcmd/strcmp
if(!strcmp(cmdtext,"/test",true))
{
return 1;
}
dcmd(purple,6,cmdtext);
return 0;
}