28.03.2015, 10:20
Код:
CMD:admins(playerid, params[]) { new count = 0, string[128]; foreach (new i : Player) if (PlayerData[i][pAdmin] > 0 && PlayerData[i][pAdminHide] < 1) { if (PlayerData[i][pAdminDuty]) format(string,sizeof(string), "%s\t{33CC33}(Level: %d)\t {01DF01}(On Duty)\n", ReturnName(i, 0), PlayerData[i][pAdmin]); else format(string,sizeof(string), "%s\t{33CC33}(Level: %d)\t {DF0101}(Off Duty)\n", ReturnName(i, 0), PlayerData[i][pAdmin]); count++; } if (!count) { format(string,sizeof(string), "There's no online Administrators."); } Dialog_Show(playerid, AdminList, DIALOG_STYLE_TABLIST, "Adminitrators", string, "OK", ""); return 1; }