02.10.2012, 00:33
Exatamente amigгo, a de Admins foi minha base, mas nгo tem jeito veio, dб uma olhada:
pawn Код:
if (strcmp(cmd, "/admins1", true) == 0)
{
new count = 0;
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_RED, " ");
SendClientMessage(playerid, COLOR_YELLOW2, "||==========| ADMINS ONLINE |==========||");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] != 7 && Afk[i] ==0 && PlayerInfo[playerid][pMascarado] == 0)
{
new admtext[40];
if(PlayerInfo[i][pAdmin] == 6) { admtext = "{EEDD82}Proprietбrio{FFFFFF}"; }
else if(PlayerInfo[i][pAdmin] == 5) { admtext = "{EEDD82}Elite{FFFFFF}"; }
else if(PlayerInfo[i][pAdmin] == 4) { admtext = "{EEDD82}Sub-Elite{FFFFFF}"; }
else if(PlayerInfo[i][pAdmin] == 3) { admtext = "{EEDD82}Moderador{FFFFFF}"; }
else if(PlayerInfo[i][pAdmin] == 2) { admtext = "{EEDD82}Sub-Moderador{FFFFFF}"; }
else if(PlayerInfo[i][pAdmin] == 1) { admtext = "{EEDD82}Recruta{FFFFFF}"; }
GetPlayerName(i, sendername, sizeof(sendername));
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 6 && PlayerInfo[i][pMascarado] == 0)
{
format(string, 80, "|| %s (%s) - Disponнvel", sendername, admtext);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] != 7 && Afk[i]==1 && PlayerInfo[i][pMascarado] == 0)
{
new admtext[40];
if(PlayerInfo[i][pAdmin] == 6) { admtext = "{EEDD82}Proprietбrio{FFFFFF}"; }
else if(PlayerInfo[i][pAdmin] == 5) { admtext = "{EEDD82}Elite{FFFFFF}"; }
else if(PlayerInfo[i][pAdmin] == 4) { admtext = "{EEDD82}Sub-Elite{FFFFFF}"; }
else if(PlayerInfo[i][pAdmin] == 3) { admtext = "{EEDD82}Moderador{FFFFFF}"; }
else if(PlayerInfo[i][pAdmin] == 2) { admtext = "{EEDD82}Sub-Moderador{FFFFFF}"; }
else if(PlayerInfo[i][pAdmin] == 1) { admtext = "{EEDD82}Recruta{FFFFFF}"; }
GetPlayerName(i, sendername, sizeof(sendername));
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 6 && PlayerInfo[playerid][pMascarado] == 0)
{
format(string, 80, "|| %s (%s) - Ausente", sendername, admtext);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
}
}
}
}
}
if(count == 0)
SendClientMessage(playerid, COLOR_YELLOW2, "|| Nгo hб Admins online no momento! ||");
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
return SendClientMessage(playerid, COLOR_YELLOW2, "||===================================||");
}