/admins command
#2

http://www.******.ba/search?q=samp+o...iw=815&bih=653

EDIT: I don't want to be rude!

pawn Code:
COMMAND:admins(playerid,params[])
{
    SendClientMessage(playerid, ORANGE, " ");
    SendClientMessage(playerid, ORANGE, "----' Online Admins '----");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(pInfo[i][Adminlevel] >= 1 || pInfo[i][Adminlevel] <= 5)
            {
                new admtext[64], id[MAX_PLAYER_NAME], string[256];
                if(pInfo[i][Adminlevel] == 1) {admtext = "Level: 1 (Administrator)";}
                else if(pInfo[i][Adminlevel] == 2) {admtext = "Level: 2, (Master Administrator)";}
                else if(pInfo[i][Adminlevel] == 3) {admtext = "Level: 3, (Lead Moderator)";}
                else if(pInfo[i][Adminlevel] == 4) {admtext = "Level: 4, (Master Moderator)";}
                else if(pInfo[i][Adminlevel] == 5) {admtext = "Level: 5, (Owner)";}
                else if(IsPlayerAdmin(i)) {admtext = "RCON Administrator";}
                else {admtext = "No admins online";}
                GetPlayerName(i, id, sizeof(id));
                format(string, 256, "%s ( %s )", id, admtext);
                SendClientMessage(playerid, GREEN, string);
            }
        }
    }
    return 1;
}
Change pInfo[i][Adminlevel] to your admin variable!
Reply


Messages In This Thread
/admins command - by Misterflowers - 17.09.2012, 17:48
Re: /admins command - by RedJohn - 17.09.2012, 17:59
Re: /admins command - by trapstar2020 - 17.09.2012, 18:06
Re: /admins command - by RedJohn - 17.09.2012, 18:09
Re: /admins command - by AtItsMax - 17.09.2012, 18:09
Re: /admins command - by [LB]BlAcK_DeViL - 17.09.2012, 18:13
Re: /admins command - by Misterflowers - 17.09.2012, 18:37
Re: /admins command - by MarkoN - 17.09.2012, 19:02

Forum Jump:


Users browsing this thread: 2 Guest(s)