If is player in water - 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: If is player in water (
/showthread.php?tid=401833)
If is player in water -
RaZzZzoR - 24.12.2012
I wanna know, how i check if player is in water/ felt into the water because i want to do a derby minigame in wich if the player falls into the water lose.
Re: If is player in water -
DaRk_RaiN - 24.12.2012
You can check if he's swimming
http://forum.sa-mp.com/showthread.ph...PlayerSwimming
Re: If is player in water -
Hiddos - 24.12.2012
Well if it's a vehicle derby the best thing to do is check if the player's vehicle Z-coordinate is still above 0 (or 2.0, taking waves into account). I also thought OnVehicleDeath gets called when a vehicle hits the water.
If it's just people falling into the water you should try this include:
https://sampforum.blast.hk/showthread.php?tid=173944
Re: If is player in water -
RaZzZzoR - 24.12.2012
Thanks guys

[+rep]