11.04.2015, 00:45
PHP код:
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, COR_ADMIN, "Admins Online:");
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0 || PlayerInfo[i][pAdminTemp] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[40], funcao[56];
if(PlayerInfo[i][pAdminTemp] == 1)lolz = "TEMPORБRIO";
if(PlayerInfo[i][pAdmin] == 1)lolz = "1";
if(PlayerInfo[i][pAdmin] == 2)lolz = "2";
if(PlayerInfo[i][pAdmin] == 3)lolz = "3";
if(PlayerInfo[i][pAdmin] == 4)lolz = "4";
if(PlayerInfo[i][pAdmin] == 5)lolz = "5";
if(PlayerInfo[i][pAdmin] == 1337)lolz = "MASTER";
if(PlayerInfo[i][pAdmin] == 133lolz = "RESP. LIDERES";
if(PlayerInfo[i][pAdmin] == 1339)lolz = "RESP. ADM/HELPER";
if(PlayerInfo[i][pAdmin] == 1340)lolz = "RESP. EDIЗOES";
if(PlayerInfo[i][pAdmin] == 3001)lolz = "Sub-Dono";
if(PlayerInfo[i][pAdmin] == 5000)lolz = "Fundador";
new string[128];
if(admtrampando[i] == 1)
{
format(string, 128, "Admin: %s Nнvel: [%s] Funзao:[%s]", sendername, lolz, PlayerInfo[i][Funcao]);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
else
{
format(string, 128, "Admin: %s Nнvel: [%s] Funзao:[%s] [JOGANDO]", sendername, lolz, PlayerInfo[i][Funcao]);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
}
}
}
return true;
}
@editado slksks