SA-MP Forums Archive
Car Crash Sytem - 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: Car Crash Sytem (/showthread.php?tid=391329)



Car Crash Sytem - Declan™ - 10.11.2012

What's the codes for when you crash you're vehicle your heath gos down?


Re: Car Crash Sytem - Mmartin - 10.11.2012

The callback you're looking for does not exist. You can create your own though by making a timer and checking each vehicle's health, then calling the callback every time there's a change. This would not be very efficient with a high amount of vehicles though.

If you wish to check vehicle's damage status instead (such as broken doors/panels or flat tires), look at this callback: https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate
Bare in mind that OnVehicleDamageStatusUpdate does NOT include vehicle health changes.


Re: Car Crash Sytem - Declan™ - 10.11.2012

Umm, Im sorry to correct you but some one gave me a code about 1mouth ago and it work so yea.


Re: Car Crash Sytem - Mmartin - 10.11.2012

Of course. He could have given you a snippet which worked. What I'm trying to say is that there's no such callback officially scripted in SAMP, see: https://sampwiki.blast.hk/wiki/Category:Scripting_Callbacks

Try to use the search button and if you won't be able to find a snippet you're looking for, simply script your own. It's nothing hard, I already mentioned the strategy of it in my previous post.