This include provides two functions to set and get player gravity.
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.