Код
if(!strcmp(cmdtext,"/adminduty",true))
{
if(PlayerInfo[playerid] [pAdmin]<= 6)
{
SendClientMessage(playerid, 0x33CCFFAA, "Вы не админ!");
return 1;
}
if (PlayerInfo[playerid] [pAdmin]>= 6)
{
if(Hentum1 [playerid]== 0)
{
Hentum1 [playerid]= 1;
ColorUpdate(playerid);
SendClientMessage(playerid, 0x33CCFFAA, "* Админ выходит на службу!");
}
else
{
KillTimer(count1[playerid]);
Update3DTextLabelText(Label1[playerid], Colors[number1[playerid]], "");
Hentum1 [playerid]= 0;
SendClientMessage(playerid, 0x33CCFFAA, "* Админ выходит на службу!");
}
}
return 1;
}