Disabling a CMD
#1

Alright I'm trying to disable/enable the command CMD:c but it doesn't work, it sends the broadcast but doesn't disable the CMD.

pawn Код:
new noc = 1;

CMD:noc(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
        if (!noc)
        {
            noc = 1;
            BroadCast(COLOR_LIGHTBLUE, "   Community Advisor channel disabled by an Admin!");
        }
        else
        {
            noc = 0;
            BroadCast(COLOR_LIGHTBLUE, "   Community Advisor channel channel enabled by an Admin!");
        }
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    }
    return 1;
}
Reply


Messages In This Thread
Disabling a CMD - by James Bob - 13.10.2013, 10:22
Re: Disabling a CMD - by James Bob - 13.10.2013, 10:24
Re: Disabling a CMD - by James Bob - 13.10.2013, 10:35
Re: Disabling a CMD - by Konstantinos - 13.10.2013, 10:36
Re: Disabling a CMD - by James Bob - 13.10.2013, 10:42
Re: Disabling a CMD - by Konstantinos - 13.10.2013, 10:47
Re: Disabling a CMD - by James Bob - 13.10.2013, 10:51
Re: Disabling a CMD - by Konstantinos - 13.10.2013, 10:53
Re: Disabling a CMD - by James Bob - 13.10.2013, 10:57
Re: Disabling a CMD - by Astralis - 13.10.2013, 11:10

Forum Jump:


Users browsing this thread: 1 Guest(s)