[HELP] How To Make This Paint Job To Be Colored Once?
#1

here is code:
pawn Код:
stock IsPlayerNearPaintShop(playerid)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInRangeOfPoint(playerid, 4, 2032.47, 1418.05, 9.82))
    {
        if(IsPlayerInVehicle(playerid, vehicleid))
        {
            new colora = random(255);
            new colorb = random(255);
            ChangeVehicleColor(vehicleid, colora, colorb);
        }
        return true;
    }
    return true;
}
i want car to change car paint only once if i am in range of point...

the above posted code changes color very often if i am i in rage of point i want paint job to be changed once if i leave or may not leave place
[SORRY FOR MEH BAD ENGLISH]
Reply


Messages In This Thread
[HELP] How To Make This Paint Job To Be Colored Once? - by Danyal - 01.11.2012, 01:17
Re: [HELP] How To Make This Paint Job To Be Colored Once? - by NewerthRoleplay - 01.11.2012, 14:13
Re: [HELP] How To Make This Paint Job To Be Colored Once? - by rjjj - 01.11.2012, 14:45
Re: [HELP] How To Make This Paint Job To Be Colored Once? - by Danyal - 01.11.2012, 15:25
Re: [HELP] How To Make This Paint Job To Be Colored Once? - by Danyal - 01.11.2012, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)