commandsHow i can make it, if player have "CMD" = 1
that he can type no one command expect /help....
i can put this in each command, but can i do easier?:
pawn Code:
CMD:aaa(playerid, params[])
{
if(GetPVarInt(playerid, "CMD") == 1)
{
SendClientMessage(playerid, -1, "You can only type /help!");
}
else
{
//my code goes here
return 1;
}
and i must put that in each command, can it be some how easier?
Source: commands (https://sampforum.blast.hk/showthread.php?tid=278845)