Previous colour? - help!
#4

pawn Код:
new pPreviousColor[MAX_PLAYERS];

CMD:adminduty(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,COLOR_GREY,"[Error]: You're not authorized to use this command.");

    if(aDuty[playerid] == 0)
    {
        aDuty[playerid] = 1;
        SCM(playerid, COLOR_ADMIN, "[Admin]: You're now ON adminduty.");
        pPreviousColor[playerid] = GetPlayerColor(playerid);
        SetPlayerColor(playerid, COLOR_ADMIN);
    }
    else if(aDuty[playerid] == 1)
    {
        aDuty[playerid] = 0;
        SCM(playerid, COLOR_ADMIN, "[Admin]: You're now OFF adminduty.");
        SetPlayerColor(playerid, pPreviousColor[playerid]);
    }
    return 1;
}
EDIT: Very late
Reply


Messages In This Thread
Previous colour? - help! - by Chrillzen - 17.10.2013, 12:13
Re: Previous colour? - help! - by venomlivno8 - 17.10.2013, 12:16
Re: Previous colour? - help! - by Konstantinos - 17.10.2013, 12:17
Re: Previous colour? - help! - by tyler12 - 17.10.2013, 12:17
Re: Previous colour? - help! - by Chrillzen - 17.10.2013, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)