/admins in Dialog List
#2

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

Reply


Messages In This Thread
/admins in Dialog List - by Neon1 - 23.05.2015, 10:34
Re: /admins in Dialog List - by Konstantinos - 23.05.2015, 11:08
Re: /admins in Dialog List - by Neon1 - 23.05.2015, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)