03.08.2013, 18:37
There's no reason whatsoever to add an if-statement for every command. You're using ZCMD, it has some callbacks that you can use.
That's a snippet from my GM.
pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(!pStats[playerid][pAuth])
{
SendClientMessage(playerid, COLOR_YELLOW, "* "COL_WHITE"Using commands is "COL_LBLUE"prohibited "COL_WHITE"until after you're logged in.");
return 0;
}
return 1;
}