16.11.2011, 18:49
pawn Код:
new Admin[MAX_PLAYERS];
pawn Код:
if(strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid, 0xFF00FFFF, "________| ADMINS ONLINE |________");
new string[100], n[24];
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(Admin[i] > 0)
{
GetPlayerName(i, n, sizeof(n));
if(AFK[i] == 1) { format(string, sizeof(string), " » %s - Level: %d {FF0522}[AFK]", n, Admin[i]); }
else
{
if(Servico[i] == 1) { format(string, sizeof(string), " » %s - Level: %d {00FF15}[EM SERVIЗO]", n, Admin[i]); }
else { format(string, sizeof(string), " » %s - Level: %d {7FFF00}[JOGANDO]", n, Admin[i]); }
}
SendClientMessage(playerid, -1, string);
}
}
return 1;
}