13.10.2013, 10:22
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;
}