25.12.2009, 09:30
I use this in my script:
but how can i control if someone ISNT in the area
I tried this:
Code:
and this:
Code:
But it doesnt work... Can someone help me how i can do this?
BMGP
Код:
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1; return 0; }
I tried this:
Code:
Код:
if(IsPlayerInArea(playerid,-3164.704, -2942.825, 2966.18, -490.4708) == false)
Code:
Код:
if(!IsPlayerInArea(playerid,-3164.704, -2942.825, 2966.18, -490.4708))
BMGP