02.06.2016, 06:06
Quote:
@YourShadow Can you let us have some more features like:
- Not ignoring the return value, so we can hide commands - Disabling commands for certain players, which would return 0 for them |
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;
}