17.08.2015, 16:22
My staff script only shows you if you are an admin. It doesn't show any other administrator.
Please fix.
Код:
command(staff, playerid, params[]) { #pragma unused params new string[128]; SendClientMessage(playerid, COLOR_ORANGE, ". : : Administrators : : ."); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1) { format(string, sizeof(string), "Name: %s{A9C4E4}: (Level %d) {%s}", RPName(playerid), PlayerInfo[playerid][pAdmin], GetAwayStatus(playerid)); SendClientMessage(playerid, GREY, string); return 1; } } } SendClientMessage(playerid, COLOR_ORANGE, ". : : Moderators : : ."); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[playerid][pModerator] >= 1) { format(string, sizeof(string), "Name: %s{A9C4E4} {%s}", RPName(playerid), GetAwayStatus(i)); SendClientMessage(playerid, GREY, string); return 1; } } } SendClientMessage(playerid, COLOR_ORANGE, ". : : Helpers : : ."); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[playerid][pHelper] >= 1) { format(string, sizeof(string), "Name: %s{A9C4E4} {%s}", RPName(playerid), GetAwayStatus(playerid)); SendClientMessage(playerid, GREY, string); return 1; } } } return 1; }