Admin list Help!!
#3

What you need is a simple loop that goes through all players and finds the administrators. Make it increment a variable so after the loop you know how many administrators were found. I'm going to assume you already have a command that finds admins.

pawn Code:
new foundAdmins;
foreach(Player, i) // or for(new i = 0; i != MAX_PLAYERS; i++) with a IsPlayerConnected check
{
    if(IsPlayerAdmin(i))
    {
        foundAdmins ++;
        // display admin name or whatever
    }
}
if(!foundAdmin)
{
    // No admins were found.
}
Reply


Messages In This Thread
Admin list Help!! - by Xtreme Brotherz - 31.03.2012, 10:36
Re: Admin list Help!! - by Unte99 - 31.03.2012, 10:40
Re: Admin list Help!! - by AndreT - 31.03.2012, 10:41
Re: Admin list Help!! - by Harish - 31.03.2012, 11:17
Re: Admin list Help!! - by AndreT - 31.03.2012, 12:35
Re: Admin list Help!! - by introzen - 01.04.2012, 12:57
Re: Admin list Help!! - by Godde - 10.02.2015, 13:32
Re: Admin list Help!! - by Lumineux - 10.02.2015, 13:36

Forum Jump:


Users browsing this thread: 2 Guest(s)