/admins help?
#1

I need a command that shows a list of admins on the server:

I use alevel[playerid]
alevel[playerid] == 1(Moderator)
alevel[playerid] == 2(Administrator)
alevel[playerid] == 900(Manager)
alevel[playerid] == 950(Leader)
alevel[playerid] == 999(Owner)

I just cant figure it out...
Reply
#2

pawn Код:
new count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(alevel[i] > 0)
        {
            new admin[24];
            GetPlayerName(i, admin, 24);
            SendClientMessage(playerid, 0x00FF00FF, admin);
            count++;
        }
    }
}
if(count == 0)
    SendClientMessage(playerid, 0xFF0000FF, "There are no admins online");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)