commands

Started by SA:MP, May 05, 2023, 08:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SA:MP

commands

How 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