16.02.2017, 20:30
Quote:
Try
Код:
CMD:admins(playerid, params[]) { new string[50], string2[50]; SendClientMessage(playerid, COLOR_YELLOW, "Online Administrators:"); foreach(new i : Player) { if(PlayerInfo[i][pAdmin] >= 0) { GetPlayerName(i, string2, sizeof(string2)); format(string, sizeof(string), "%s | Admin Level: %d", string2, PlayerInfo[i][pAdmin]); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } } return 1; } return 1; } |
The problem is when you make the command like that on the admin list you're getting shown with level 0.