/admins command
#8

pawn Code:
CMD:admins(playerid, params[])
{
    foreach(Player, i)
    {
        new level[16], string[256], name[MAX_PLAYER_NAME];
        GetPlayerName(i, name, sizeof(name));

        if(pInfo[i][Admin] > 0)
        {
            switch(pInfo[i][Admin])
            {
                case 1: level = "Admin Level 1";
                case 2: level = "Admin Level 2";
                case 3: level = "Admin Level 3";
                case 4: level = "Lead Admin";
                case 1337: level = "Owner";
            }
            format(string, sizeof(string), ""COL_BLUE"%s - "COL_WHITE"%s\n", level, name);
            ShowPlayerDialog(playerid, D_ADMINS, DIALOG_STYLE_MSGBOX, "Admins online (Level - Nick)", string, "Close", "");
        }
    }
    return 1;
}
im using this , and its dialog based
Reply


Messages In This Thread
/admins command - by Misterflowers - 17.09.2012, 17:48
Re: /admins command - by RedJohn - 17.09.2012, 17:59
Re: /admins command - by trapstar2020 - 17.09.2012, 18:06
Re: /admins command - by RedJohn - 17.09.2012, 18:09
Re: /admins command - by AtItsMax - 17.09.2012, 18:09
Re: /admins command - by [LB]BlAcK_DeViL - 17.09.2012, 18:13
Re: /admins command - by Misterflowers - 17.09.2012, 18:37
Re: /admins command - by MarkoN - 17.09.2012, 19:02

Forum Jump:


Users browsing this thread: 4 Guest(s)