16.04.2012, 14:03
(
Последний раз редактировалось [M.A]Angel[M.A]; 17.04.2012 в 17:07.
)
Hello I want code to show all the admins in one line not every admin in line example
Admins: Test[Owner]
Admins: Test2[Leader]
.
.
I want it :
Admins: Test[Owner], Test2[Leader] .. etc
Im using lux admin system
and
Here is the code:
Admins: Test[Owner]
Admins: Test2[Leader]
.
.
I want it :
Admins: Test[Owner], Test2[Leader] .. etc
Im using lux admin system
and
Here is the 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/Owner"; ChangeColor = Color_Professional_Admin; } if(IsPlayerAdmin(i)) { AdmRank = "{6EF83C}Rcon"; ChangeColor = Color_RCON_Administrator; } else { switch(AccInfo[i][Level]) { case 1: { AdmRank = "{6EF83C}Tester"; 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}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!"); return 1; }