04.08.2012, 14:42
hello, i'v admin lux system but when i type /admins , every admin got his line asthis:
Admins: Player1(Manager)
Admins: Player2(Leader)
Admins: Player3(Manager)
..
..
etc
How to put all the admins in one line :
Admins: Player1(Manager),Player2(Leader),Player3(Manager). .etc
I 'v here my code:-
Anyone can help got +rep!
Admins: Player1(Manager)
Admins: Player2(Leader)
Admins: Player3(Manager)
..
..
etc
How to put all the admins in one line :
Admins: Player1(Manager),Player2(Leader),Player3(Manager). .etc
I 'v here my code:-
Код:
dcmd_admins(playerid,params[]) { #pragma unused params new count = 0; new string[128]; new ChangeColor; for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(AccInfo[i][Level] >= 1 && AccInfo[i][Hide] == 0) { if(AccInfo[i][Level] > 5) { AdmRank = "{00C0FF}Manager"; ChangeColor = Color_Professional_Admin; } if(IsPlayerAdmin(i)) { AdmRank = "{6EF83C}Logged with Rcon"; ChangeColor = Color_RCON_Administrator; } else { switch(AccInfo[i][Level]) { case 1: { AdmRank = "{6EF83C}Trail Mod"; ChangeColor = Color_Basic_Moderator; } case 2: { AdmRank = "{C3C3C3}Mod"; ChangeColor = Color_Moderator; } case 3: { AdmRank = "{00C0FF}Admin"; ChangeColor = Color_Master_Moderator; } case 4: { AdmRank = "{F3FF02}Leader"; ChangeColor = Color_Administrator; } case 5: { AdmRank = "{C3C3C3}CO-Manager"; ChangeColor = Color_Master_Administrator; } } } switch(AccInfo[i][OnDuty]) { case 0: AdmDuty = "Playing!"; case 1: AdmDuty = "On Duty!"; } format(string, 128, "Admins: {F81414}%s {F81414}[%s{F81414}]",PlayerName2(i),AdmRank); SendClientMessage(playerid, ChangeColor, string); count++; } } } if (count == 0) SendClientMessage(playerid,orange,"{C77D87}No {F3FF02}Administrators {C77D87}online {FFFFFF},{C77D87}Try to invite {F3FF02}them!"); return 1; }