Dialog /admins
#6

pawn Код:
if (strcmp(cmd, "/admins", true) == 0) // Admin list if they're online
{
    new string[256];
    new pname[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        GetPlayerName(i,pname,sizeof(pname));
        if(AccountInfo[i][AdminLevel] > 0)
        {
            format(string,sizeof(string),"[ONLINE]: Name: %s Level: %d ID: %i\n",pname,AccountInfo[i][AdminLevel],i);
            ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Online Admins",string,"Okay","Close");
        }
    }
    return 1;
}
try that.
Reply


Messages In This Thread
Dialog /admins - by Tekto - 25.07.2010, 15:01
Re: Dialog /admins - by Shadow™ - 25.07.2010, 15:12
Re: Dialog /admins - by Tekto - 25.07.2010, 15:22
Re: Dialog /admins - by Shadow™ - 25.07.2010, 15:24
Re: Dialog /admins - by Tekto - 25.07.2010, 15:34
Re: Dialog /admins - by Shadow™ - 25.07.2010, 15:40
Re: Dialog /admins - by Tekto - 26.07.2010, 23:58
Re: Dialog /admins - by CeKa - 27.07.2010, 07:04
Re: Dialog /admins - by Tekto - 27.07.2010, 09:55
Re: Dialog /admins - by GBLTeam - 11.03.2011, 12:23

Forum Jump:


Users browsing this thread: 2 Guest(s)