Car Crash Sytem
#1

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

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.
Reply
#3

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)