Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

[Include] Player Gravity

$
0
0
• Player Gravity
A simple include that provides two functions for player gravity, one to set and another one to get.
• Functions
PHP Code:

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 return that new value.
• Dependencies
- Pawn.RakNet: http://forum.sa-mp.com/showthread.php?t=640306
• Download
- Github

Viewing all articles
Browse latest Browse all 18226

Trending Articles