Admin help
#2

Try this:
pawn Код:
CMD:admins(playerid)
{
    new adminso[128];
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        if(pInfo[i][AdminLevel] >= 1 && pInfo[i][AdminLevel] <= 1337)
        {
            format(adminso, sizeof adminso," %s with Level: %d\n", pName(i), pInfo[i][AdminLevel]);
            ShowPlayerDialog(playerid, adminsonline, DIALOG_STYLE_MSGBOX, "Online Admins", adminso, "Close", "");
        }
        else
        {
            format(adminso, sizeof adminso, "None.");
            ShowPlayerDialog(playerid, noadmins, DIALOG_STYLE_MSGBOX, "Online Admins:", adminso, "Close", "");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Admin help - by RieTzz - 17.02.2013, 22:37
Re: Admin help - by Roach_ - 17.02.2013, 23:39
Re: Admin help - by CoaPsyFactor - 18.02.2013, 00:05
Re: Admin help - by RieTzz - 18.02.2013, 08:05
Re: Admin help - by ]Rafaellos[ - 18.02.2013, 11:25
Re: Admin help - by PabloDiCostanzo - 18.02.2013, 11:40
Re: Admin help - by RieTzz - 19.02.2013, 16:43
Re: Admin help - by ]Rafaellos[ - 19.02.2013, 17:09
Re: Admin help - by RieTzz - 19.02.2013, 22:54
Re: Admin help - by Nuke547 - 20.02.2013, 01:23

Forum Jump:


Users browsing this thread: 1 Guest(s)