Problem with /onduty command
#2

pawn Код:
CMD:onduty(playerid, params[])
    {
        SendClientMessage(playerid, COLOR_LIGHTSALMON, "____________Admins_On_Duty____________");
        new totalonduty = 0;
        for(new i = 0; i < MAX_PLAYERS+1; i++)
        {
            if(pInfo[i][Admin] > 1){
                if(aduty[i] == 1)//= 1{
                    totalonduty = totalonduty+1;
                    new aname[MAX_PLAYER_NAME];
                    new alevel = pInfo[i][Admin];
                    new line[128];
                    GetPlayerName(i, aname, MAX_PLAYER_NAME);
                    format(line, sizeof(line), "%s: Level %i Admin", aname, alevel);
                    SendClientMessage(playerid, COLOR_LIGHTSALMON, line);
                }
            }
        }
       
        if(totalonduty == 0){
            SendClientMessage(playerid, COLOR_RED, "There are no admins on duty.");
        }
        SendClientMessage(playerid, COLOR_RED, "_________________________________________");
        return 1;

    }
i have edited
Reply


Messages In This Thread
Problem with /onduty command - by Nathan_Taylor - 26.04.2014, 22:30
Re: Problem with /onduty command - by Eth - 26.04.2014, 23:11
Re: Problem with /onduty command - by AhmedMohamed - 26.04.2014, 23:17
Re: Problem with /onduty command - by Eth - 26.04.2014, 23:32
Re: Problem with /onduty command - by Nathan_Taylor - 26.04.2014, 23:40
Re: Problem with /onduty command - by AhmedMohamed - 26.04.2014, 23:40
Re: Problem with /onduty command - by Nathan_Taylor - 26.04.2014, 23:44
Re: Problem with /onduty command - by AhmedMohamed - 26.04.2014, 23:52
Re: Problem with /onduty command - by AhmedMohamed - 27.04.2014, 00:06
Re: Problem with /onduty command - by Nathan_Taylor - 27.04.2014, 01:15

Forum Jump:


Users browsing this thread: 1 Guest(s)