SA-MP Forums Archive
Whats the easy way to get (Float:minx, Float:miny, Float:maxx, Float:maxy) for GangZoneCreate - 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: Whats the easy way to get (Float:minx, Float:miny, Float:maxx, Float:maxy) for GangZoneCreate (/showthread.php?tid=284286)



Whats the easy way to get (Float:minx, Float:miny, Float:maxx, Float:maxy) for GangZoneCreate - Issam - 18.09.2011

Title says all,whats the easy way to get:

minx The X coordinate for the west side of the gangzone.
miny The Y coordinate for the south side of the gangzone.
maxx The X coordinate for the east side of the gangzone.
maxy The Y coordinate for the north side of the gangzone.
Don't tell me /save lol,i already know save,it takes you to get 4/saves to create one GANGZONE


Re: Whats the easy way to get (Float:minx, Float:miny, Float:maxx, Float:maxy) for GangZoneCreate - Deathwing - 18.09.2011

showthread.php?t=279647
Try this tool.


Re: Whats the easy way to get (Float:minx, Float:miny, Float:maxx, Float:maxy) for GangZoneCreate - Issam - 18.09.2011

You mean?
/save,gonna give me the minx and miny
and the second /save, maxx and maxy?


Re: Whats the easy way to get (Float:minx, Float:miny, Float:maxx, Float:maxy) for GangZoneCreate - =WoR=Varth - 18.09.2011

pawn Code:
+-----------------------+Maxx and Maxy
                |                       |
                |                       |
                |                       |
Minx and Miny   +-----------------------+
That's suppose to be square.


Re: Whats the easy way to get (Float:minx, Float:miny, Float:maxx, Float:maxy) for GangZoneCreate - Issam - 18.09.2011

Code:
AddPlayerClass(107,2584.4651,-1788.6859,1.6470,179.7121,0,0,0,0,0,0); // Ganton GangZone SouthSide
AddPlayerClass(107,2406.8032,-1788.1587,13.5469,90.0658,0,0,0,0,0,0); // Ganton GangZone WestSide
AddPlayerClass(107,2411.0181,-1575.2137,23.9063,358.8124,0,0,0,0,0,0); // Ganton GangZone EastSide
AddPlayerClass(107,2586.3208,-1574.3561,6.4681,268.8849,0,0,0,0,0,0); // Ganton GangZone NorthSide
pawn Code:
//GangZones
GantonZONE = GangZoneCreate( );
GangZoneShowForAll(GantonZONE, 0x2D964DFF);
return 1;
}
This is under, OnGameModeinIt
Edit:i added SIDES.


Re: Whats the easy way to get (Float:minx, Float:miny, Float:maxx, Float:maxy) for GangZoneCreate - Issam - 18.09.2011

BUMP,someone?


Re: Whats the easy way to get (Float:minx, Float:miny, Float:maxx, Float:maxy) for GangZoneCreate - Jafet_Macario - 18.09.2011

Why you don't use https://sampforum.blast.hk/showthread.php?tid=120586 ?


Re: Whats the easy way to get (Float:minx, Float:miny, Float:maxx, Float:maxy) for GangZoneCreate - Issam - 18.09.2011

Quote:
Originally Posted by Jafet_Macario
View Post
Didn't i say you are the best? Well you are!