02.09.2013, 22:11
Seguinte, quando eu dou /aduty e o outro admin nгo ambos ficam com status de ON DUTY no /admins.
PHP код:
CMD:admins(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Vocк precisa estб logado para usar este comando!");
format(string, sizeof(string), "Administradores:");
SendClientMessage(playerid, 0xBEBEBEFF, string);
foreach(Player, i)
if(PlayerInfo[i][pAdmin])
{
if(aDuty[playerid])
{
format (string, sizeof(string), "%s{BEBEBE} %s (%d) | Status: {008B00}ON DUTY", RPALN2(i), RPN(i), i);
SendClientMessage(playerid, COLOR_GREY, string);
}
else
{
format (string, sizeof(string), "%s{BEBEBE} %s (%d) | Status: OFF DUTY", RPALN2(i), RPN(i), i);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
return true;
}