Players in are - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Players in are (
/showthread.php?tid=126711)
Players in are -
sdaly330 - 09.02.2010
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.
Re: Players in are -
ray187 - 09.02.2010
If you have your zones defined simply check whether the player position ( GetPlayerPos(playerid) ) is inside them (best in a small recursive / timer function).
Re: Players in are -
Torran - 09.02.2010
Quote:
Originally Posted by ray187
If you have your zones defined simply check whether the player position ( GetPlayerPos(playerid) ) is inside them (best in a small recursive / timer function).
|
Timer of 1000 with IsPlayerInRangeOfPoint,
Is much more better and more recommended
Re: Players in are -
sdaly330 - 09.02.2010
And the getplayerposition will return like the same value that the gangzone does you know to make the square are rectangle?
Re: Players in are -
Torran - 09.02.2010
Quote:
Originally Posted by sdaly330
And the getplayerposition will return like the same value that the gangzone does you know to make the square are rectangle?
|
Use a timer and IsPlayerInRangeOfPoint,
Alot better, Faster and more recommended than GetPlayerPos
Re: Players in are -
sdaly330 - 09.02.2010
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
Re: Players in are -
Torran - 09.02.2010
You could use IsPlayerInArea?
Re: Players in are -
sdaly330 - 09.02.2010
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?
Re: Players in are -
Torran - 09.02.2010
Im not sure: Use IsPlayerInArea
Re: Players in are -
sdaly330 - 09.02.2010
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