How to disable all commands EXCEPT /leave - Using ZCMD
#1

Hi!

The title explains most of my question.

I know how to disable all commands except one, by using strcmp, but my problem is that the whole gm uses ZCMD, and i have no idea how to disable all commands except from the
CMD:leave(playerid, params[])

Any ideas how i can do that?

Thanks
Reply
#2

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(strcmp(cmdtext,"leave")) return 1;
    return 0;
}
untested
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)