/admins
#8

Untested and probably inefficient, but hey.
Add "new boolnDuty[MAX_PLAYERS];" at the top of your script and when a player goes on duty, use onDuty[playerid] = true;
pawn Код:
CMD:admins(playerid, params[])
{
    new pName[MAX_PLAYER_NAME], message[128];
    SCM(playerid, -1, "Admins online:");
    foreach(new i : Player) // assuming you use foreach.
    {
        if(IsPlayerAdmin(i))
        {
            GetPlayerName(i, pName, sizeof(pName));
            if(onDuty[i] == true) // or whatever variable you use.
            {
                format(message, sizeof(message), "%s (ID %d)", pName, i);
                SendClientMessage(playerid, COLOR_GREEN, message);
            }
            else
            {
                format(message, sizeof(message), "%s (ID %d)", pName, i);
                SendClientMessage(playerid, -1, message);
            }
           
        }
    }
    return 1;
}
Reply


Messages In This Thread
/admins - by lramos15 - 03.08.2013, 04:10
Re: /admins - by [BOPE]Seu._.Madruga - 03.08.2013, 04:51
Re: /admins - by lramos15 - 03.08.2013, 05:14
Re: /admins - by Scenario - 03.08.2013, 05:19
Re: /admins - by lramos15 - 03.08.2013, 05:25
Re: /admins - by Ayumi - 03.08.2013, 12:29
Re: /admins - by lramos15 - 03.08.2013, 13:00
Re: /admins - by BigGroter - 03.08.2013, 14:04
Re: /admins - by lramos15 - 03.08.2013, 14:19
Re: /admins - by BigGroter - 03.08.2013, 16:18

Forum Jump:


Users browsing this thread: 1 Guest(s)