SA-MP Forums Archive
[Include] Player Gravity - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Player Gravity (/showthread.php?tid=647771)



Player Gravity - Jelly23 - 10.01.2018

• Player Gravity
A simple include that provides two functions for player gravity, one to set and another one to get.
• Functions
PHP код:
SetPlayerGravity(playeridFloat:gravity)
GetPlayerGravity(playerid, &Float:gravity
Both functions will return 0 if the player id is not connected, otherwise 1.

If the gravity is set by the server through rcon or SetGravity, GetPlayerGravity will give that new value.
• Dependencies
- Pawn.RakNet: https://sampforum.blast.hk/showthread.php?tid=640306
• Download
- Github



Re: Player Gravity - Logic_ - 10.01.2018

Amazing. RakNet replacing a lot of YSF features.


Re: Player Gravity - RogueDrifter - 10.01.2018

Good job!