Posts: 141
Threads: 35
Joined: Jul 2008
Reputation:
0
How to check if player is in area.. like boundaries... If player is in it.. he have guns... when he leaves the area/boundaries.. he lose them.
Posts: 273
Threads: 58
Joined: Jun 2009
Reputation:
0
I usually just do this, say I want the person to not have any guns inside the LSPD, I go to the center point of the LSPD and I get the coords, afterwards I do IfPlayerInRangeOfPoint of that point by say 50 it removes his weapons and so on... Not sure if that is what you wanted.
Posts: 141
Threads: 35
Joined: Jul 2008
Reputation:
0
Well i have a jail, so i want to remove guns from jailed person if he is in jail area. And area is like area 51
Posts: 273
Threads: 58
Joined: Jun 2009
Reputation:
0
Maybe create a timer to check if the player is in the area using the IsPlayerInRangeOfPoint, maybe every 20 seconds it checks and if he is reset the player's weapons.
Posts: 141
Threads: 35
Joined: Jul 2008
Reputation:
0
But how big would be the range then?
Posts: 2,629
Threads: 40
Joined: Mar 2008
Reputation:
0
The range is how many X and Y tiles you want to extend the area. You should find a filterscript that allows you to calculate it.