SA-MP Forums Archive
UpdateVehicleDamageStatus - 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)
+--- Thread: UpdateVehicleDamageStatus (/showthread.php?tid=369018)



UpdateVehicleDamageStatus - krolax - 15.08.2012

Hello!

I want to crash vehicle, on respawn after explode. But i dont know what i must put into '??'


Код:
vehicleVariables[vehicleid][vVehicleHP] = 250;
vehicleVariables[vehicleid][vVehiclePanels] = ???;
vehicleVariables[vehicleid][vVehicleDoors] = ???;
vehicleVariables[vehicleid][vVehicleLights] = ???;
vehicleVariables[vehicleid][vVehicleTires] = 15;
Can somebody help me?


Re: UpdateVehicleDamageStatus - Virtual1ty - 15.08.2012

When in doubt, always consult the SA-MP Wiki first, it has all the information you need.
https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate
Take those functions made by JernejL and fiddle around with encode_panels() and similar functions.