11.08.2015, 09:29
Quote:
You are funny. But nice script I guess! >_>
Код:
CMD:admins(playerid, params[]) { new string[128], bool:count = false, rank[35], status[15]; SendClientMessage(playerid, COLOR_ORANGE_RED, " "); LOOP_PLAYERS(i) { if(IsPlayerHAGAdmin(i) || IsPlayerAdmin(i)) { if(! count) SendClientMessage(playerid, COLOR_ORANGE_RED, "- Online Administrators -"); if(GetPVarType(playerid, "HAGAdmin_Onduty") != PLAYER_VARTYPE_NONE) status = "On Duty"; else status = "Playing"; if(! strcmp(ReturnPlayerName(i), "Gammix")) rank = "Server Owner & Developer"; else if(! strcmp(ReturnPlayerName(i), "Mitchell Weston")) rank = "Server Owner"; else if(IsPlayerAdmin(i)) rank = "RCON Admin"; else { switch(GetPlayerHAGAdminLevel(i)) { case 1: rank = "Trial Admin"; case 2: rank = "Junior Admin"; case 3: rank = "Senior Admin"; case 4: rank = "Lead Admin"; case 5: rank = "Master Admin"; default: rank = "Server Manager"; } } format(string, sizeof(string), "%s [%i] | Rank: %s | Level %i | Status: %s", ReturnPlayerName(i), i, rank, GetPlayerHAGAdminLevel(i), status); SendClientMessage(playerid, COLOR_ORANGE_RED, string); count = true; } } if(! count) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: No admin on-duty currently."); return 1; } |
Updated the links.