2021-02-27, 01:14 PM
(2021-02-27, 12:47 PM)Boxi Wrote:(2021-02-26, 10:30 PM)Virsenas Wrote: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.
Isn't it possible to do that?
https://open.mp/docs/scripting/functions/SetGravity
Quote:Description
Set the gravity for all players.