Quote:
Originally Posted by Jefff
pawn Код:
if(strcmp(cmd, "/admins", true) == 0) { new admtext[64]; SendClientMessage(playerid, COLOR_GREY, "Admins Online:"); for(new i = 0; i < PLAYERS; i++) if(IsPlayerConnected(i)) if(1 <= PlayerInfo[i][pAdmin] <= 5000) { if(PlayerInfo[i][pAdmin] == 5000) admtext = "Server Developer"; else if(PlayerInfo[i][pAdmin] == 1338) admtext = "Head Administrator"; else if(PlayerInfo[i][pAdmin] == 3) admtext = "Administrator Level 3"; else if(PlayerInfo[i][pAdmin] == 2) admtext = "Administrator Level 2"; else if(PlayerInfo[i][pAdmin] == 1) admtext = "Administrator Level 1"; else admtext = "Lead Administrator";
format(string, sizeof(string), "(%s) %s (ID: %d) Adminduty: %s",admtext, GetPlayerNameEx(i), i, (!AdminDuty[i]) ? ("No") : ("Yes")); SendClientMessage(playerid, (!AdminDuty[i]) ? COLOR_GREY : COLOR_GROVE, string); }
if(!admtext[0]) SendClientMessage(playerid, COLOR_GREY, "No Admins Online");
return 1; }
|
Simple, Short and works perfect! +rep, thanks you!