Disable a Command [URGENT HELP NEEDED] +rep
#9

Not sure if it will work, but give it a try.
Make a new filterscript and add this:
pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    if (!strcmp(cmdtext, "/yourcommandhere", true))
    {
        SendClientMessage(playerid, 0xFF0000FF, "This command cannot be used.");
        return 0;
    }
    return 1;
}
Replace /yourcommandhere with the command you want to disable.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)