SA-MP Forums Archive
When falling from a distance - 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: When falling from a distance (/showthread.php?tid=280538)



When falling from a distance - xPhantom - 01.09.2011

Hello, I'd like to know how you can make a red textdraw showup when you fall from a distance. I've seen this on a roleplay server but I'm wondering how they did it.

Any idea?


Thanks,
xPhantom.


Re: When falling from a distance - [MWR]Blood - 01.09.2011

Maybe, you could get the Z coordinate of the player, and if it is more than the value specified, show him that textdraw.


Re: When falling from a distance - LZLo - 01.09.2011

i think you should use OnPlayerUpdate callback and check the player's Z pos
or
you can use simply SetPlayerWorldBounds