OnVehicleDeath - 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 (
/showthread.php?tid=654365)
OnVehicleDeath -
enzulikeS - 27.05.2018
how can I do this:
when the job vehicle explodes / stay in water, the vehicle get destroyed and return a scm to the player who was working that he failed the job?
Re: OnVehicleDeath -
AndreiWow - 27.05.2018
Well, you can save the vehicle ID in a pvar or player enum, once a vehicle explodes, check if it is a job vehicle and then check if any player has that vehicle ID assigned to them by iterating through the values. If yes, send the message to that player.