23.05.2015, 11:08
Assuming "AdmRank" is declared as global string and removing the colors:
PHP код:
dcmd_admins(playerid, params[])
{
#pragma unused params
new count, string[512];
for (new i = 0; i < MAX_PLAYERS; i++) if (IsPlayerConnected(i)) // foreach(new i : Player)
{
if (!AccInfo[i][Hide])
{
switch (AccInfo[i][Level])
{
case 0: continue;
case 1: AdmRank = "Kezdő Moderбtor";
case 2: AdmRank = "Moderбtor";
case 3: AdmRank = "Mester Moderбtor";
case 4: AdmRank = "Adminisztrбtor";
case 5: AdmRank = "Mester Adminisztrбtor";
default:
{
if (IsPlayerAdmin(i)) AdmRank = "RCON Adminisztrбtor";
else AdmRank = "Professional Admin";
}
}
format(string, sizeof (string), "%sSzint: %d - %s (Id:%i) | %s | %s", string, AccInfo[i][Level], PlayerName2(i), i, AdmRank, (!AccInfo[i][OnDuty]) ? ("Jбtйk!") : ("On Duty!"));
count++;
}
}
if (!count) SendClientMessage(playerid, red, "Nincs Admin a Szerveren!");
else ShowPlayerDialog(playerid, 285, DIALOG_STYLE_MSGBOX, "___________ |- Online Adminok -| ___________", string, "Close", "");
return 1;
}