08.02.2015, 04:38
There are 2 players in my server, when I type /admins following happens:
As well as /nzmembers
Code:
Please justify the codes above, thanks
As well as /nzmembers
Code:
Код:
#define NICE_PINK 0xEC13C0FF
Код:
#define green 0x33FF33AA
Код:
CMD:admins(playerid,params[]) { #pragma unused params new string[128]; SendClientMessage(playerid, green, " "); SendClientMessage(playerid, green, "___________ |- Online Admin's -| ___________"); SendClientMessage(playerid, green, " "); for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(PlayerInfo[i][Level] == 0) { format(string,sizeof(string), "No admin online in the list", PlayerName2(i),i,PlayerInfo[i][Level]); } GetPlayerName(i,PlayerName2(i),MAX_PLAYER_NAME); if(PlayerInfo[i][Level] == 1) { format(string,sizeof(string), "{FF9900}%s (ID:%i) - Level: %d | Basic Moderator | Playing!", PlayerName2(i),i,PlayerInfo[i][Level]); } else if(PlayerInfo[i][Level] == 2) { format(string,sizeof(string), "{FF9900}%s (ID:%i) - Level: %d | Moderator | Playing!", PlayerName2(i),i,PlayerInfo[i][Level]); } else if(PlayerInfo[i][Level] == 3) { format(string,sizeof(string), "{FF9900}%s (ID:%i) - Level: %d | Master Moderator | Playing!", PlayerName2(i),i,PlayerInfo[i][Level]); } else if(PlayerInfo[i][Level] == 4) { format(string,sizeof(string), "{7CFC00}%s (ID:%i) - Level: %d | Administrator | Playing!", PlayerName2(i),i,PlayerInfo[i][Level]); } else if(PlayerInfo[i][Level] == 5) { format(string,sizeof(string), "{1E90FF}%s (ID:%i) - Level: %d | Master Administrator | Playing!", PlayerName2(i),i,PlayerInfo[i][Level]); } else if(PlayerInfo[i][Level] == 6) { format(string,sizeof(string), "{00FFFF}%s (ID:%i) - Level: %d | Professional Admin | Playing!", PlayerName2(i),i,PlayerInfo[i][Level]); } else if(PlayerInfo[i][Level] == 7) { format(string,sizeof(string), "%s (ID:%i) - Level: %d | Super Admin | Playing!", PlayerName2(i),i,PlayerInfo[i][Level]); } else if(PlayerInfo[i][Level] == 8) { format(string,sizeof(string), "{FF0000}%s (ID:%i) - Level: %d | Delta Administrator | Playing!", PlayerName2(i),i,PlayerInfo[i][Level]); } SendClientMessage(playerid,NICE_PINK,string); } } SendClientMessage(playerid, green, " _______________________________________"); return 1; }