Dialog /admins
#2

Try this:

pawn Код:
if (strcmp(cmd, "/admins", true) == 0) // Admin list if they're online
    {
        new string[128];
        new string1[1025];
        new pname[MAX_PLAYER_NAME];
        for(new i = 0; i < GetMaxPlayers(); i++)
        {
            GetPlayerName(i,pname,sizeof(pname));
            if(AccountInfo[i][AdminLevel] > 0)
            {
                format(string1,sizeof(string1),"Name: %s Level: %d ID: %i",pname,AccountInfo[i][AdminLevel],i);
                format(string,sizeof(string),"Admins Online\n\n%s\n",string1);
                ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Online Admins",string,"Okay","Close");
            }
            else
            {
                ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Online Admins","No administrators online","Okay","Close");
            }
        }
        return 1;
    }
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)