Code:
IsPlayerInArea(playerid, Float:MinX, Float:MaxX, Float:MinY, Float:MaxY)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
#pragma unused z
? ? if(x >= MinX && x <= MaxX && y >= MinY && y <= MaxY) { return 1; }
? ? return 0;
}
P.S. I think you can only set gravity only for all players. You can't set the gravity different for other players.