SA-MP Forums Archive
City Coordinates? - 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: City Coordinates? (/showthread.php?tid=132479)



City Coordinates? - Torran - 07.03.2010

Does anyone have Minimum X,Y and Maximum X,Y coordinates for Los Santos, Las Venturas And San Fierro?
Like for IsPlayerInArea to cover LS, And again for LV and SF, Anyway, Anyone got em? Individual cities would be fine,
Just as long as you have the coordinates for atleast one of them


Re: City Coordinates? - Chrham_2 - 07.03.2010

You can use /save on the lower point and /save on the highest.
Grab out the coords and script with it.


Re: City Coordinates? - Torran - 07.03.2010

I could do that, But i cant get it accurate,


Re: City Coordinates? - aircombat - 07.03.2010

Torran try this , it may help :
http://www.mediafire.com/?mwnwhzjmjmh
________
ZX14 VS HAYABUSA


Re: City Coordinates? - Torran - 07.03.2010

As i said i cant get it accurate, It overlaps
What im technically asking is is there something to check what city the players in


Re: City Coordinates? - bajskorv123 - 07.03.2010

Name minX minY maxX maxY
ls = 116.7788, -2826.046, 2907.791, -595.5717
lv = 840.807, 525.5044, 2942.825, 2954.502
sf = -2954.502, -794.0955, -969.2637, 1588.191

pawn Код:
stock IsPlayerInArea(playerid, Float:minX, Float:minY, Float:maxX, Float:maxY)// Same x and y param thingys as gangzonecreate
{
  new Float:X, Float:Y, Float:Z;
  GetPlayerPos(playerid, X, Y, Z);
  if(X <= maxX && X >= minX && Y <= maxY && Y >= minY) return 1;
  return 0;
}