Show all admins online
#1

Hello, I want to make list of admins command, if you are an admin you are PlayerInfo[playerid][pGmL] >= 1. How can I list every single connected player in a dialog, I thought it will be easy but then I thought how am I going to format each online admin in to different line in the dialog, so I need help.

pawn Код:
if(strcmp(cmd, "/a", true) == 0)
    if(strcmp(cmd, "/a", true) == 0)
    {
        new text12[256];
        new option1[128];
        if(PlayerInfo[playerid][pGmL] >= 1)
        {
            format(option1,sizeof(option1),"%s",WHAT HERE);
            format(text12,sizeof(text12),"%s\n%s",option1,option2);
            ShowPlayerDialog(playerid, 0504, DIALOG_STYLE_LIST, "Admins:", text12, "", "Ok");
        }
    }
And the thing im struggling with is that it needs to be global, I cant use PlayerInfo[playerid], insted of palyerid it needs to check, so can someone help me do this..
Reply


Messages In This Thread
Show all admins online - by HondaCBR - 31.12.2011, 18:50
Re: Show all admins online - by PlayHard - 31.12.2011, 18:57
Re: Show all admins online - by HondaCBR - 31.12.2011, 19:17
Re: Show all admins online - by KiiD - 05.04.2013, 02:36

Forum Jump:


Users browsing this thread: 1 Guest(s)