08.02.2009, 19:36
No it's not, and would that function even work?
Cuz you need to set both minx, miny, maxx and maxy...
Use a timer to check if a player is inside that area
Cuz you need to set both minx, miny, maxx and maxy...
pawn Код:
public IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X >= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3])
return 1;
return 0;
}