01.11.2012, 01:17
here is code:
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]
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;
}
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]