/admins (DIALOG)
#2

Try this:

pawn Код:
dcmd_admins(playerid,params[])
{
    new str[500], tempstr[128], admrank[23], admduty[9];

    for(new i;i<MAX_PLAYERS;i++)
    {
        if(AccInfo[i][Level] >= 1 && AccInfo[i][Hide] == 0)
        {
            switch(AccInfo[i][Level])
            {
                case 1: admrank = "Basic Moderator";
                case 2: admrank = "Trusted Player";
                case 3: admrank = "Master Moderator";
                case 4: admrank = "Administrator";
                case 5: admrank = "Master Administrator";
            }
            switch(AccInfo[i][OnDuty])
            {
                case 0: admduty = "Playing!";
                case 1: admduty = "On Duty!";
            }
            format(tempstr ,sizeof tempstr, "Level: %d - %s (Id:%i) | %s | %s\n", AccInfo[i][Level], PlayerName2(i), i, admrank, admduty);
            strcat(str, tempstr);
        }
    }
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Online Admins", str, "Close", "");
}
Reply


Messages In This Thread
/admins (DIALOG) - by AwokenNeoX - 27.02.2014, 16:14
Re: /admins (DIALOG) - by SKAzini - 27.02.2014, 17:00

Forum Jump:


Users browsing this thread: 2 Guest(s)