How to create /admins
#4

pawn Код:
COMMAND:admins(playerid, params[])
{
    new count = 1, name[24], string[128];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerAdmin(i))
        {
            GetPlayerName(i, name, sizeof(name));
            format(string, sizeof(string), "%s%s\n", string, name);
            count ++;
        }
    }
   
    if(count != 1)
    {
        ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "Online Admins", string, "OK", "");
    }
    else ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "[!] Online Admins", "No online admins", "OK", "");
}
Reply


Messages In This Thread
How to create /admins - by HighPitchedVoice - 18.03.2012, 11:29
Re: How to create /admins - by Shabi RoxX - 18.03.2012, 11:30
Re: How to create /admins - by niyaz - 18.03.2012, 11:31
Re: How to create /admins - by Laronic - 18.03.2012, 11:33
Re: How to create /admins - by Spooky - 18.03.2012, 11:36
Re: How to create /admins - by James Coral - 18.03.2012, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)