Posts: 352
	Threads: 5
	Joined: Oct 2011
	
Reputation: 
0
	 
 
	
	
		Well, you can't add that under "OnFilterScriptInit". What do you actually wanna do? You can create a function and add a timer that will call the function every second, that will check your position.
EDIT: Wesley was faster.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 344
	Threads: 89
	Joined: Sep 2010
	
Reputation: 
0
	 
 
	
	
		In public OnPlayerCommandText(playerid, cmdtext[])
if (PlayerToPoint(5.0, playerid, 757.7714, -1996.8455, -0.3859))
    {
        GivePlayerMoney(playerid, 2500);
    }
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 352
	Threads: 5
	Joined: Oct 2011
	
Reputation: 
0
	 
 
	
	
		That makes no sense Join7.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 87
	Threads: 15
	Joined: Oct 2007
	
Reputation: 
0
	 
 
	
	
		Yes, I'm trying to check if the player is in a certain position so he will recieve an amount of money/a weapon only when he's in that range of point(If we walks/swims in there, drives a car/boat near the point etc). If I add it under OnPlayerCommandText it works but only when I'm typing a command. Same goes for OnPlayerText etc.
EDIT: I added a timer and it works just fine now for what I'm trying to do. Thank you very much. I'll post here for further problems. Thanks once again!
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 87
	Threads: 15
	Joined: Oct 2007
	
Reputation: 
0
	 
 
	
	
		It works just fine now SmiT, thank you.
P.S. Is there any way to make an object move/face the player if the player is in the range?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 664
	Threads: 65
	Joined: Jul 2011
	
Reputation: 
0
	 
 
	
	
		use MoveObject and SetObjectRot or if ur using 0.3d RC6 just use MoveObject