03.09.2012, 11:21
Basically when im level 5 it works but if im level 0 its doesn't like it should but the message at the bottom isn't showing
pawn Код:
CMD:ooctoggle(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
if(oocstatus == 0){
oocstatus = 1;
SendClientMessageToAll(COLOR_GREY,"OOC Chat Has Been Disabled By An Administrator");
}
else if(oocstatus == 1){
oocstatus = 0;
SendClientMessageToAll(COLOR_GREY,"OOC Chat Has Been Enabled By An Administrator");
}
else
{
return SendClientMessage(playerid,KNOWNCOLOR_ORCHID,"Your Not The Correct Level To Use This Commend");
}
}
return 1;
}