Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 470 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 470 Bytes

Player-Gravity

This include provides two functions to set and get player gravity.

Functions:

SetPlayerGravity(playerid, Float:gravity);
Float:GetPlayerGravity(playerid, &Float:gravity = 0.0);

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