OnVehicleDeath not working properly - 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: OnVehicleDeath not working properly (
/showthread.php?tid=664419)
OnVehicleDeath not working properly -
NoteND - 28.02.2019
Hey!
I'm just wondering, why doesnt OnVehicleDeath trigger if I fall in water in vehicle, but as soon as I leave vehicle in the water it works. I know this is known bug or whatever but couldnt find solution, any of you got idea?
Right now I'm just using OnPlayerUpdate to check if vehicle Z coordinate is below 0.0, but that is overload for server I think since it has to get coordinates each time you move.
Re: OnVehicleDeath not working properly -
IndependentGaming - 28.02.2019
Once you fall into the water, and the vehicle is occupied it doesn't respawn, once you exit the vehicle the vehicle is unoccupied and will respawn means, it is totaled so it does work like it suppose to.
Re: OnVehicleDeath not working properly -
raydx - 28.02.2019
Try to look here:
https://github.com/urShadow/Pawn.Rak...tiVehicleSpawn
https://forum.sa-mp.com/showpost.php...5&postcount=44