Disable all Commands Except...
#6

Are you using zcmd, right?

You can use this:

pawn Code:
public OnPlayerCommandReceived(playerid, cmdtext[])// ZCMD's callback.
{
    //Example of condition \/-------------Example of command \/
    if( IsPlayerLogged(playerid) == 0 && strcmp(cmdtext, "/login", true) != 0)
        return SendClientMessage(playerid, -1, "You are not logged."), 0;
        //--------------------Example of messange /\

    return 1;
}
Reply


Messages In This Thread
Disable all Commands Except... - by kbalor - 13.07.2012, 20:53
Re: Disable all Commands Except... - by Roko_foko - 13.07.2012, 20:58
Re: Disable all Commands Except... - by kbalor - 13.07.2012, 21:00
Re: Disable all Commands Except... - by Roko_foko - 13.07.2012, 21:00
Re: Disable all Commands Except... - by kbalor - 13.07.2012, 21:10
Re: Disable all Commands Except... - by Larceny - 13.07.2012, 21:21
Re: Disable all Commands Except... - by Roko_foko - 13.07.2012, 21:23
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 09:35
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 10:01
Re: Disable all Commands Except... - by Roko_foko - 14.07.2012, 10:14
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 12:44
Re: Disable all Commands Except... - by Mark™ - 14.07.2012, 12:47
Re: Disable all Commands Except... - by Blunt - 14.07.2012, 12:48
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 12:56
Re: Disable all Commands Except... - by Mark™ - 14.07.2012, 13:00
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 13:06
Re: Disable all Commands Except... - by Mark™ - 14.07.2012, 13:09
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 13:15
Re: Disable all Commands Except... - by Mark™ - 14.07.2012, 13:17
Re: Disable all Commands Except... - by Andi_Evandy - 14.07.2012, 13:27
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 13:28
Re: Disable all Commands Except... - by Mark™ - 14.07.2012, 13:33
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 13:39
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 13:42
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 14:21
Re: Disable all Commands Except... - by Roko_foko - 14.07.2012, 22:00

Forum Jump:


Users browsing this thread: 3 Guest(s)