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;
}
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;
}
pawn Код:
|