Admin Rank
#5

or that :P
pawn Код:
dcmd_admins(playerid,params[])
{
    #pragma unused params
    new count,string[255];
    for(new i,g=GetMaxPlayers(); i < g; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(1 <= PlayerInfo[i][Level] <= 5)
            {
                if(IsPlayerAdmin(i)) AdmRank = "RCON Administrator";
                switch(PlayerInfo[i][Level])
                {
                    case 1: AdmRank = "Basic Moderator";
                    case 2: AdmRank = "Moderator";
                    case 3: AdmRank = "Mod";
                    case 4: AdmRank = "Admin";
                    case 5: AdmRank = "Owner";
                }
                format(string,255, "%s%s [%s], ",string,PlayerName2(i),AdmRank);
                count++;
            }
        }
    }
    format(string,255,"Admins: %s",string);
    SendClientMessage(playerid, blue, string);
    if(!count) SendClientMessage(playerid,red,"No admin online in the list");
    return 1;
}
Reply


Messages In This Thread
Admin Rank - by Linus- - 23.11.2010, 14:01
Re: Admin Rank - by Zh3r0 - 23.11.2010, 14:05
Re: Admin Rank - by Vince - 23.11.2010, 14:16
Re: Admin Rank - by Linus- - 23.11.2010, 14:18
Re: Admin Rank - by Jefff - 23.11.2010, 14:21

Forum Jump:


Users browsing this thread: 2 Guest(s)