GetPlayerGravity - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetPlayerGravity (
/showthread.php?tid=87485)
GetPlayerGravity -
Byrner - 20.07.2009
I was just wondering if it's possible to check if a player is in the air or on the ground or w/e.
I'm sure you get me drift.
Re: GetPlayerGravity -
woot - 20.07.2009
No.
Re: GetPlayerGravity -
dice7 - 20.07.2009
You could use something like this:
#1 GetPlayerPos
#2 Use SetPlayerPosFindZ with the saved x and y
#3 GetPlayerPos
#4 Set the player to It's original position (#1 GetPlayerPos)
#5 Compare the two Z's (#1 and #3)