/admins - Something wrong here?
#2

pawn Код:
COMMAND:admins(playerid, params[])
{
    new string[256];
    new pname[MAX_PLAYER_NAME];
    SendClientMessage(playerid, grey, "Admins Online:");
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        if(adminlevel[i] >= 1)
        {
            GetPlayerName(i, pname, sizeof(pname));
            format(string,sizeof(string),"AdminLevel %d:  %s[%d] ", adminlevel[i], pname, GetPlayerID(pname));
            SendClientMessage(playerid, grey, string);
        }
    }
    return 1;
}
Should do it. ^^
Reply


Messages In This Thread
/admins - Something wrong here? - by spyr0x - 14.11.2010, 14:34
Re: /admins - Something wrong here? - by Jeffry - 14.11.2010, 14:40
Re: /admins - Something wrong here? - by Gh0sT_ - 14.11.2010, 14:41
Re: /admins - Something wrong here? - by spyr0x - 14.11.2010, 14:42
Re: /admins - Something wrong here? - by Jeffry - 14.11.2010, 15:18

Forum Jump:


Users browsing this thread: 2 Guest(s)