Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by YourShadow
PHP Code:
public OnPlayerReceivedCommand(playerid, cmd[], params[], bool:exists)
{
if (playerid ...) // condition
{
SendClientMessage(playerid, 0xFFFFFFFF, "This command not available for you");
return 0; // will not call "cmd: ..."
}
return 1;
}
|
That would require very slow code, like strcmp. Using many strcmp cases could make Pawn.CMD slower than any other processor.