Getting Gangzone Coord (minx,miny, etc..) from regular coord - 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: Getting Gangzone Coord (minx,miny, etc..) from regular coord (
/showthread.php?tid=236567)
Getting Gangzone Coord (minx,miny, etc..) from regular coord -
s1k - 07.03.2011
Alright so I have regular coordinates: x, y, z.
How can I change those coordinates to make a gang zone with a specific area. I have a checkpoint that goes to a random coord every so often. I want a gang zone area to be on the checkpoint on the minimap.
Is their a way for me to make a gangzone coord out of the x, y, z i have for the checkpoint..
thanks.
Re: Getting Gangzone Coord (minx,miny, etc..) from regular coord -
Stigg - 07.03.2011
Use the x and y cord's.
x,y------
------x,y
Re: Getting Gangzone Coord (minx,miny, etc..) from regular coord -
Mean - 07.03.2011
You could make a stock adding a gangzone around some checkpointid.
Re: Getting Gangzone Coord (minx,miny, etc..) from regular coord -
s1k - 07.03.2011
Quote:
Originally Posted by Stigg
Use the x and y cord's.
x,y------
------x,y
|
What? So your saying that:
maxx=x
maxy=y
minx=x
miny=y
?lol
I want it so if () if my checkpoint and [] is the gangzone i want the gangzone to be outside of the checkpoint like.
[-------]
[ ( ) ]
[_____]
Re: Getting Gangzone Coord (minx,miny, etc..) from regular coord -
Stigg - 07.03.2011
Quote:
Originally Posted by s1k
What? So your saying that:
maxx=x
maxy=y
minx=x
miny=y
?lol
|
You got the right idea. This will help you:
https://sampwiki.blast.hk/wiki/GangZoneCreate
Explained in detail.
Re: Getting Gangzone Coord (minx,miny, etc..) from regular coord -
s1k - 07.03.2011
Got it working good, thanks!
Re: Getting Gangzone Coord (minx,miny, etc..) from regular coord -
Stigg - 07.03.2011
Quote:
Originally Posted by s1k
Got it working good, thanks!
|
No prob's, glad we could help.