Posts: 680
	Threads: 143
	Joined: Nov 2014
	
Reputation: 
0
	 
 
	
	
		I want to make IsPlayerInRangOfPoint but for a base
so the base cor. like that "minx, miny, maxx, maxy"
And IsPlayerInRangrOfPoint is like this "radius, x, y, z"
So how to make it ??
Please Fast Help Rep
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 3,004
	Threads: 12
	Joined: May 2011
	
	
 
	
	
		2d
pawn Код:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x<=minx && x>=maxx && y<=miny && y>=maxy) {
// He is in that area
}
 3d
pawn Код:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x<=minx && x>=maxx && y<=miny && y>=maxy && z<=minz && z>=maxy) {
// He is in that area
}
 
	 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 680
	Threads: 143
	Joined: Nov 2014
	
Reputation: 
0
	 
 
	
	
		IsPlayerInDynamicAreaaaaaa please another rep
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 3,004
	Threads: 12
	Joined: May 2011
	
	
 
	
	
		
Quote:
					Originally Posted by  Schneider
 
 
@Kaperstone: You got the operators flipped:  > means larger, < means smaller. 
pawn Код: 
new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); if(x>=minx && x<=maxx && y>=miny && y<=maxy) { // He is in that area }  
  
 | 
 oh lol, didn't notice.
thanks for pointing out.