SA-MP Forums Archive
car body ??? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: car body ??? (/showthread.php?tid=166986)



car body ??? - speediekiller2 - 10.08.2010

how to repair a car body with a repair script alone the engine is fixed how can i fix the body from the car


(my english is not good)


Re: car body ??? - [MWR]Blood - 10.08.2010

pawn Code:
new vehicleid=GetPlayerVehicleID(playerid);
RepairVehicle(vehicleid);



Re: car body ??? - Sascha - 10.08.2010

RepairVehicle(vehicleid);

This repairs the engine and the "car body"



EDIT: oh ikarus was faster


Re: car body ??? - JaTochNietDan - 10.08.2010

Use

pawn Code:
RepairVehicle(vehicleid);
It will repair the car completely, including cosmetic repairs.

Edit: I wish it would tell me if someone has already answered


Re: car body ??? - DRIFT_HUNTER - 10.08.2010

Ok if im right he mean HOW TO REPAIR CAR BODY BUT LEAVE CAR HEALTH SAME..

You get car health store it to variable repair car and set car health same as they was


Re: car body ??? - MrDeath537 - 10.08.2010

Code:
RepairVehicle(vehicleid);
It repairs the vehicle body and the engine.


If you want repair the vehicle's body you can try it:

pawn Code:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    UpdateVehicleDamageStatus(vehicleid, 0, 0, 0, 0);
}