02.09.2013, 22:27
pawn Код:
CMD:admins(playerid, params[])
{
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Vocк precisa estб logado para usar este comando!");
SendClientMessage(playerid, 0xBEBEBEFF, "Administradores:");
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin])
{
if(aDuty[i])
{
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;
}