[Tutorial] /setwanted command.
#6

Actually, you could just replace these lines:

pawn Code:
SetPlayerColor(id, COLOR_RED); //Sets targets color, so the cops can easily notice him.
format(string, sizeof(string), "%s is now wanted!", name);
With this:

pawn Code:
if(wantedlevel > 0)
    {
        SetPlayerColor(id, COLOR_WHITE); //Sets targets color, so the cops can easily notice him.
        format(string, sizeof(string), "%s is no longer wanted!", name);
    }
    else
    {
        SetPlayerColor(id, COLOR_RED); //Sets target color so the cops can easily notice him.
        format(string, sizeof(string), "%s is now wanted!", name);
    }
Keep it how you want, I'm just improving your knowledge :P.
Reply


Messages In This Thread
/setwanted command. - by Kyance - 01.10.2013, 16:23
Re: /setwanted command. - by JimmyCh - 01.10.2013, 17:16
Re: /setwanted command. - by Kyance - 01.10.2013, 17:18
Re: /setwanted command. - by DanishHaq - 01.10.2013, 17:22
Re: /setwanted command. - by Kyance - 01.10.2013, 17:37
Re: /setwanted command. - by DanishHaq - 01.10.2013, 17:51

Forum Jump:


Users browsing this thread: 1 Guest(s)