admins CMD
#10

Quote:
Originally Posted by clarencecuzz
Посмотреть сообщение
pawn Код:
CMD:admins(playerid,params[]) // Admins command
{
    SendClientMessage(playerid,blue,"[----Current on duty Administrators----]");
    new Count = 0;
    for(new i = 0; i <MAX_PLAYERS; i++)
    {
        if(IsOnAdminDuty[i] == true)
        {
            if(PInfo[i][Level] > 0)
            {
                new aname[24],astring[124];
                GetPlayerName(i,aname,sizeof(aname));
                if(strcmp(aname, "Max", false) == 0)
                {
                    format(astring,sizeof(astring),"Owner %s (Level: %d)",aname,PInfo[i][Level]);
                }
                else
                {
                    format(astring,sizeof(astring),"%s (Level: %d)",aname,PInfo[i][Level]);
                }
                SendClientMessage(playerid,blue,astring);
                Count++;
            }
            else continue;
        }
        else continue;
    }
    if(Count == 0)
    {
        SendClientMessage(playerid, blue, "There Are Currently No Administrators On Duty.");
    }
    return 1;
}
And yes, they will count underneath each other.
Thanks! i would rep you but i can't since i've already repped you yesterday
Reply


Messages In This Thread
admins CMD - by Biess - 23.09.2012, 08:59
Re: admins CMD - by clarencecuzz - 23.09.2012, 09:05
Re: admins CMD - by Lordzy - 23.09.2012, 09:08
Re: admins CMD - by Biess - 23.09.2012, 09:11
Re: admins CMD - by clarencecuzz - 23.09.2012, 09:13
Re: admins CMD - by Biess - 23.09.2012, 09:16
Re: admins CMD - by clarencecuzz - 23.09.2012, 09:18
Re: admins CMD - by Biess - 23.09.2012, 09:19
Re: admins CMD - by clarencecuzz - 23.09.2012, 09:25
Re: admins CMD - by Biess - 23.09.2012, 09:27

Forum Jump:


Users browsing this thread: 1 Guest(s)