22.10.2018, 02:18
PHP Code:
if(strcmp(cmd, "/admins", true) == 0) {
new DialogAdmins[1500], bradokscount = 0;
for(new i = 0; i <= MaiorID; i++) {
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0) {
if(HideAdm[i] == 0) {
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[35], new lolz2[35];
switch(PlayerInfo[i][pAdmin]) {
case 1: { lolz = "{DAA520}Ajudante{FFFFFF}"; }
case 2: { lolz = "{FFA500}Moderador{FFFFFF}"; }
case 3: { lolz = "{FF7F50}Auxiliar{FFFFFF}"; }
case 4: { lolz = "{8A2BE2}Pre-Master{FFFFFF}"; }
case 5: { lolz = "{4B0082}Master{FFFFFF}"; }
case 6: { lolz = "{FFC0CB}MasterPlus{FFFFFF}"; }
case 8: { lolz = "{B22222}Sub-Dono{FFFFFF}"; }
}
lolz = PlayerInfo[i][pAdmin] == 10 && PlayerInfo[i][pSex] == 1 ? "{008000}Desenvolvedor{FFFFFF}" : "DONA/SCRIPTER";
lolz2 = admtrampando[i] == 0 ? "{FFCCFF}Jogando{FFFFFF}" : "{FF0000}Trabalhando{FFFFFF}";
format(string, 128, " %s (%s) Modo: [{FF0000}%s{FFFFFF}]\n", sendername, lolz, lolz2);
strcat(DialogAdmins, string);
bradokscount++;
}
}
}
if(bradokscount == 0) return SendClientMessage(playerid, COLOR_ORANGE, "Administraзгo Offline no momento.");
else ShowPlayerDialog(playerid, 9938, DIALOG_STYLE_MSGBOX, "{32CD32}Administradores Online", DialogAdmins, "Ok", "");
return 1;
}