Help With Gangzone! - 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)
+--- Thread: Help With Gangzone! (
/showthread.php?tid=316613)
Help With Gangzone! -
NaTkAkN - 07.02.2012
Hi, I am creating a spawn point in gangzone for my gamemode.
I've saved these coordinates:
------- X 2224.5210,1188.3505,10.6696,3.0986
--------
--------
--------
X ------- 2015.6190,1548.2318,10.8413,217.2089
The script is this:
new Spawn;
ONGAMEMODEINIT:
Spawn=GangZoneCreate(?, ?, ?, ?);
ONPLAYERCONNECT:
GangZoneShowForAll(Spawn,0x008400F2);
Here's my problem, I can not find the following coordinates:
MinX, Miny, Maxx, Maxy?
Can you explain how you found the code, or directly to you do that for me?
Re: Help With Gangzone! -
NaTkAkN - 07.02.2012
please help D:
Re: Help With Gangzone! -
Madd Kat - 07.02.2012
please dont bump before the 48 hours...
now what you need is this
you need 2 positions
so you have the minx and miny
the position you show me is like this
pawn Код:
x,y,z,angle
2224.5210,1188.3505,10.6696,3.0986
so the first 2 values are your minx and miny
now you need the other corner of your gangzone square.
pawn Код:
x,y,z,angle
2015.6190,1548.2318,10.8413,217.2089
so these first 2 are you maxx and maxy
HTH's