01.11.2012, 14:45
This should solve your problem
:
I hope that I have helped
.

pawn Код:
stock IsPlayerNearPaintShop(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInRangeOfPoint(playerid, 4, 2032.47, 1418.05, 9.82))
{
if(IsPlayerInVehicle(playerid, vehicleid))
{
if(!GetPVarInt(playerid, "Once"))
{
new colora = random(255);
new colorb = random(255);
ChangeVehicleColor(vehicleid, colora, colorb);
SetPVarInt(playerid, "Once", true);
}
}
return true;
}
return true;
}
I hope that I have helped
