Posts: 14
Threads: 3
Joined: Mar 2008
Reputation:
0
Anyone got any idea of a functiont that can check if players or in a gangzone like a greated gangzone would be a real help if anyone could come up with one thanks.
Posts: 196
Threads: 0
Joined: Nov 2008
Reputation:
0
If you have your zones defined simply check whether the player position ( GetPlayerPos(playerid) ) is inside them (best in a small recursive / timer function).
Posts: 14
Threads: 3
Joined: Mar 2008
Reputation:
0
And the getplayerposition will return like the same value that the gangzone does you know to make the square are rectangle?
Posts: 14
Threads: 3
Joined: Mar 2008
Reputation:
0
Is player in range of point returns X,Y,Z and then you have to define a radious how would you work out the radious of the gang turf
Posts: 1,782
Threads: 306
Joined: Jan 2010
Reputation:
0
You could use IsPlayerInArea?
Posts: 14
Threads: 3
Joined: Mar 2008
Reputation:
0
UnOwned1 = GangZoneCreate(1682.684326, -1877.423461, 1810.684326, -1525.423461);
theres and example of the gang turf what would the is player in range of point for that location look like?
Posts: 1,782
Threads: 306
Joined: Jan 2010
Reputation:
0
Im not sure: Use IsPlayerInArea
Posts: 14
Threads: 3
Joined: Mar 2008
Reputation:
0
Ok so in the example of my gang zone above what would i use to put in the isplayerinarea function like what co-ords from it