toribio

toribio

Jan 13th, 2009
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 72.28 KB | None | 0 0
  1. /////////////////////////////////
  2. //                             //
  3. //    location script 1.0      //
  4. //       -------------         //
  5. //        by c-middia          //
  6. //         based on            //
  7. //       Zen and Zones         //
  8. //         By mabako           //
  9. //    http://www.mabako.net    //
  10. /////////////////////////////////
  11. #include <a_samp>
  12. #include <float>
  13. #include <dprop>
  14. #define MAX_PLAYERS_ 32
  15. new zareaupdates[MAX_PLAYERS_];
  16. new player_zarea[MAX_PLAYERS_];
  17. new zareaupdate;
  18. new zoneupdates[MAX_PLAYERS_];
  19. new player_zone[MAX_PLAYERS_];
  20. new zoneupdate;
  21. forward update_zarea ();
  22. forward update_zones ();
  23. //--gang zones
  24. enum GangZone
  25. {
  26.     gzID,
  27.     Float: gzPos[4],
  28.     gzColor
  29. }
  30. new GangZones[][ GangZone ] = {
  31. { INVALID_GANG_ZONE, {-2861.00, -2113.70, -2102.0, -1308.00}, 0xFFFFFF80 },//chilliad
  32. { INVALID_GANG_ZONE, {1117.20,  2708.00,  1533.00,  2883.00}, 0xA800D880 },//golf course
  33. { INVALID_GANG_ZONE, {-410.00,  1403.30,  -137.90,  1681.20}, 0x00880080 },//big era
  34. { INVALID_GANG_ZONE, {-1372.10,  2498.50, -1277.50,  2615.30}, 0x00880080 },//malvada
  35. { INVALID_GANG_ZONE, {-2324.90, -2584.20, -1964.20, -2212.10}, 0x00880080 },//angel pine
  36. { INVALID_GANG_ZONE, {-901.10,  2221.80,  -592.00,  2571.90}, 0x00880080 },//Arco
  37. { INVALID_GANG_ZONE, {-2646.40,  -355.40, -2270.00,  -222.50}, 0x20A0C880 },//avispa
  38. { INVALID_GANG_ZONE, {-2831.80,  -430.20, -2646.40,  -222.50}, 0x2080C880 },
  39. { INVALID_GANG_ZONE, {-2361.50,  -417.10, -2270.00,  -355.40}, 0x2080C880 },
  40. { INVALID_GANG_ZONE, {-2667.80,  -302.10, -2646.40,  -262.30}, 0x2080C880 },
  41. { INVALID_GANG_ZONE, {-2470.00,  -355.40, -2270.00,  -318.40}, 0x2080C880 },
  42. { INVALID_GANG_ZONE, {-2550.00,  -355.40, -2470.00,  -318.40}, 0x2080C880 },//avispa
  43. { INVALID_GANG_ZONE, {-1166.90, -2641.10,  -321.70, -1856.00}, 0x00888880 },//back o byond
  44. { INVALID_GANG_ZONE, {-2741.00,  1268.40, -2533.00,  1490.40}, 0x2080C880 },//battary point
  45. { INVALID_GANG_ZONE, {-2741.00,  2175.10, -2353.10,  2722.70}, 0x8840FF60 },//Bayside
  46. { INVALID_GANG_ZONE, {-2353.10,  2275.70, -2153.10,  2475.70}, 0x4088FF60 },//Bayside Marina
  47. { INVALID_GANG_ZONE, {-399.60, -1075.50,  -319.00,  -977.50}, 0x00A80080 },//Beacon Hill
  48. { INVALID_GANG_ZONE, {964.30,  1203.20,  1197.30,  1403.20}, 0x8830FF80 },//Blackfield
  49. { INVALID_GANG_ZONE, {964.30,  1403.20,  1197.30,  1726.20}, 0x8830FF80 },//Blackfield
  50. { INVALID_GANG_ZONE, {1375.60,   596.30,  1558.00,   823.20}, 0x4098FF60 },//Blackfield Chapel
  51. { INVALID_GANG_ZONE, {1325.60,   596.30,  1375.60,   795.00}, 0x4098FF60 },//Blackfield Chapel
  52. { INVALID_GANG_ZONE, {1197.30,  1044.60,  1277.00,  1163.30}, 0x8800DD80 },//Blackfield Intersection
  53. { INVALID_GANG_ZONE, {1166.50,   795.00,  1375.60,  1044.60}, 0x8800DD80 },//Blackfield Intersection
  54. { INVALID_GANG_ZONE, {1277.00,  1044.60,  1315.30,  1087.60}, 0x8800DD80 },//Blackfield Intersection
  55. { INVALID_GANG_ZONE, {1375.60,   823.20,  1457.30,   919.40}, 0x8800DD80 },//Blackfield Intersection
  56. { INVALID_GANG_ZONE, {104.50,  -220.10,   349.60,   152.20}, 0x0000A860 },//Blueberry
  57. { INVALID_GANG_ZONE, {19.60,  -404.10,   349.60,  -220.10}, 0x0000A860 },//Blueberry
  58. { INVALID_GANG_ZONE, {-319.60,  -220.10,   104.50,   293.30}, 0x00A0A860 },//Blueberry Acres
  59. { INVALID_GANG_ZONE, {2087.30,  1543.20,  2437.30,  1703.20}, 0xFFFF0060 },//Caligula's Palace
  60. { INVALID_GANG_ZONE, {2137.40,  1703.20,  2437.30,  1783.20}, 0xFFFF0060 },//Caligula's Palace
  61. { INVALID_GANG_ZONE, {-2274.10,   744.10, -1982.30,  1358.90}, 0x00008860 },//Calton Heights
  62. { INVALID_GANG_ZONE, {-2274.10,   578.30, -2078.60,   744.10}, 0x0000B860 },//Chinatown
  63. { INVALID_GANG_ZONE, {-2867.80,   277.40, -2593.40,   458.40}, 0x1122B860 },//City Hall
  64. { INVALID_GANG_ZONE, {2087.30,   943.20,  2623.10,  1203.20}, 0x00A88860 },//Come-A-Lot
  65. { INVALID_GANG_ZONE, {1323.90, -1842.20,  1701.90, -1722.20}, 0x8A2BE280 },//commerce
  66. { INVALID_GANG_ZONE, {1323.90, -1722.20,  1440.90, -1577.50}, 0x8A2BE280 },//commerce
  67. { INVALID_GANG_ZONE, {1370.80, -1577.50,  1463.90, -1384.90}, 0x8A2BE280 },//commerce
  68. { INVALID_GANG_ZONE, {1463.90, -1577.50,  1667.90, -1430.80}, 0x8A2BE280 },//commerce
  69. { INVALID_GANG_ZONE, {1583.50, -1722.20,  1758.90, -1577.50}, 0x8A2BE280 },//commerce
  70. { INVALID_GANG_ZONE, {1667.90, -1577.50,  1812.60, -1430.80}, 0x8A2BE280 },//commerce
  71. { INVALID_GANG_ZONE, {1046.10, -1804.20,  1323.90, -1722.20}, 0x0000B860 },//Conference Center
  72. { INVALID_GANG_ZONE, {1073.20, -1842.20,  1323.90, -1804.20}, 0x0000B860 },//Conference Center
  73. { INVALID_GANG_ZONE, {-2007.80,    56.30, -1922.00,   224.70}, 0xFFCC0080 },//Cranberry Station
  74. { INVALID_GANG_ZONE, {2749.90,  1937.20,  2921.60,  2669.70}, 0x0088A860 },//Creek
  75. { INVALID_GANG_ZONE, {580.70,  -674.80,   861.00,  -404.70}, 0xFF66FF60 },//Dillimore
  76. { INVALID_GANG_ZONE, {-2270.00,  -324.10, -1794.90,  -222.50}, 0xE2C06360 },//Doherty
  77. { INVALID_GANG_ZONE, {-2173.00,  -222.50, -1794.90,   265.20}, 0xE2C06360 },//Doherty
  78. { INVALID_GANG_ZONE, {-1982.30,   744.10, -1871.70,  1274.20}, 0x1111AA60 },//Downtown
  79. { INVALID_GANG_ZONE, {-1871.70,  1176.40, -1620.30,  1274.20}, 0x1111AA60 },//Downtown
  80. { INVALID_GANG_ZONE, {-1700.00,   744.20, -1580.00,  1176.50}, 0x1111AA60 },//Downtown
  81. { INVALID_GANG_ZONE, {-1580.00,   744.20, -1499.80,  1025.90}, 0x1111AA60 },//Downtown
  82. { INVALID_GANG_ZONE, {-2078.60,   578.30, -1499.80,   744.20}, 0x1111AA0 },//Downtown
  83. { INVALID_GANG_ZONE, {-1993.20,   265.20, -1794.90,   578.30}, 0x1111AA60 },//Downtown
  84. { INVALID_GANG_ZONE, {1463.90, -1430.80,  1724.70, -1290.80}, 0xFF450080 },//down town losantos
  85. { INVALID_GANG_ZONE, {1724.70, -1430.80,  1812.60, -1250.90}, 0xFF450080 },//down town losantos
  86. { INVALID_GANG_ZONE, {1463.90, -1290.80,  1724.70, -1150.80}, 0xFF450080 },//down town losantos
  87. { INVALID_GANG_ZONE, {1370.80, -1384.90,  1463.90, -1170.80}, 0xFF450080 },//down town losantos
  88. { INVALID_GANG_ZONE, {1724.70, -1250.90,  1812.60, -1150.80}, 0xFF450080 },//down town losantos
  89. { INVALID_GANG_ZONE, {1370.80, -1170.80,  1463.90, -1130.80}, 0xFF450080 },//down town losantos
  90. { INVALID_GANG_ZONE, {1378.30, -1130.80,  1463.90, -1026.30}, 0xFF450080 },//down town losantos
  91. { INVALID_GANG_ZONE, {1391.00, -1026.30,  1463.90,  -926.90}, 0xFF450080 },//down town losantos
  92. { INVALID_GANG_ZONE, {1507.50, -1385.20,  1582.50, -1325.30}, 0xFF450080 },//down town losantos
  93. { INVALID_GANG_ZONE, {2632.80, -1852.80,  2959.30, -1668.10}, 0xFFFF0060 },//East Beach
  94. { INVALID_GANG_ZONE, {2632.80, -1668.10,  2747.70, -1393.40}, 0xFFFF0060 },//East Beach
  95. { INVALID_GANG_ZONE, {2747.70, -1668.10,  2959.30, -1498.60}, 0xFFFF0060 },//East Beach
  96. { INVALID_GANG_ZONE, {2747.70, -1498.60,  2959.30, -1120.00}, 0xFFFF0060 },//East Beach
  97. { INVALID_GANG_ZONE, {2421.00, -1628.50,  2632.80, -1454.30}, 0xEE82EE60 },//East Los Santos
  98. { INVALID_GANG_ZONE, {2222.50, -1628.50,  2421.00, -1494.00}, 0xEE82EE60 },//East Los Santos
  99. { INVALID_GANG_ZONE, {2266.20, -1494.00,  2381.60, -1372.00}, 0xEE82EE60 },//East Los Santos
  100. { INVALID_GANG_ZONE, {2381.60, -1494.00,  2421.00, -1454.30}, 0xEE82EE60 },//East Los Santos
  101. { INVALID_GANG_ZONE, {2281.40, -1372.00,  2381.60, -1135.00}, 0xEE82EE60 },//East Los Santos
  102. { INVALID_GANG_ZONE, {2381.60, -1454.30,  2462.10, -1135.00}, 0xEE82EE60 },//East Los Santos
  103. { INVALID_GANG_ZONE, {2462.10, -1454.30,  2581.70, -1135.00}, 0xEE82EE60 },//East Los Santos
  104. { INVALID_GANG_ZONE, {-1794.90,   249.90, -1242.90,   578.30}, 0x6495ED60 },//Easter Basin
  105. { INVALID_GANG_ZONE, {-1794.90,   -50.00, -1499.80,   249.90}, 0x6495ED60 },//Easter Basin
  106. { INVALID_GANG_ZONE, {-1499.80,   -50.00, -1242.90,   249.90}, 0x8A2BE260 },//Easter Bay Airport
  107. { INVALID_GANG_ZONE, {-1731.90,  -700.10, -1214.00,   -50.00}, 0x8A2BE2A0 },//eidted
  108. { INVALID_GANG_ZONE, {-1213.90,  -500.10, -1132.80,   -50.00}, 0x8A2BE2F0 },//eidted
  109. { INVALID_GANG_ZONE, {-1242.90,   -50.00, -1213.90,   578.30}, 0x8A2BE260 },
  110. { INVALID_GANG_ZONE, {-1213.90,   -50.00,  -947.90,   578.30}, 0x8A2BE260 },
  111. { INVALID_GANG_ZONE, {-1315.40,  -405.30, -1264.40,  -209.50}, 0x8A2BE260 },
  112. { INVALID_GANG_ZONE, {-1354.30,  -287.30, -1315.40,  -209.50}, 0x8A2BE260 },
  113. { INVALID_GANG_ZONE, {-1490.30,  -209.50, -1264.40,  -148.30}, 0x8A2BE260 },//Easter Bay Airport
  114. { INVALID_GANG_ZONE, {-1132.80,  -768.00,  -956.40,  -578.10}, 0xADFF2F60 },//Easter Bay Chemicals
  115. { INVALID_GANG_ZONE, {-1132.80,  -787.30,  -956.40,  -768.00}, 0xADFF2F60 },//Easter Bay Chemicals
  116. { INVALID_GANG_ZONE, {-464.50,  2217.60,  -209.00,  2580.30}, 0xFFFF0060 },//El Castillo del Diablo
  117. { INVALID_GANG_ZONE, {-208.00,  2123.00,   114.00,  2337.00}, 0x7FFF0090 },
  118. { INVALID_GANG_ZONE, {-208.00,  2337.50,     8.40,  2487.00}, 0x7FFF00A0 },//El Castillo del Diablo
  119. { INVALID_GANG_ZONE, {1812.60, -2179.20,  1970.60, -1852.80}, 0xFF450060 },//El Corona
  120. { INVALID_GANG_ZONE, {1692.60, -2179.20,  1812.60, -1842.20}, 0xFF450060 },//El Corona
  121. { INVALID_GANG_ZONE, {-1645.20,  2498.50, -1372.10,  2777.80}, 0xDDA0DD60 },//El Quebrados
  122. { INVALID_GANG_ZONE, {-1620.30,  1176.50, -1580.00,  1274.20}, 0x20A0C860 },//Esplanade East
  123. { INVALID_GANG_ZONE, {-1580.00,  1025.90, -1499.80,  1274.20}, 0x20A0C860 },//Esplanade East
  124. { INVALID_GANG_ZONE, {-1499.80,   578.30, -1339.80,  1274.20}, 0x20A0C860 },//Esplanade East
  125. { INVALID_GANG_ZONE, {-2533.00,  1358.90, -1996.60,  1501.20}, 0xA020D860 },//Esplanade North
  126. { INVALID_GANG_ZONE, {-1996.60,  1358.90, -1524.20,  1592.50}, 0xA020D860 },
  127. { INVALID_GANG_ZONE, {-1982.30,  1274.20, -1524.20,  1358.90}, 0xA020D860 },//Esplanade North
  128. { INVALID_GANG_ZONE, {-792.20,  -698.50,  -452.40,  -380.00}, 0x00880060 },//Fallen Tree
  129. { INVALID_GANG_ZONE, {434.30,   366.50,   603.00,   555.60}, 0xA8A80060 },//Fallow Bridge
  130. { INVALID_GANG_ZONE, {508.10,  -139.20,  1306.60,   119.50}, 0x00A8D860 },//Fern Ridge
  131. { INVALID_GANG_ZONE, {-1871.70,   744.10, -1701.30,  1176.40}, 0x0000A860 },//Financial
  132. { INVALID_GANG_ZONE, {1916.90,  -233.30,  2131.70,    13.80}, 0x0088B860 },//Fisher's Lagoon
  133. { INVALID_GANG_ZONE, {-187.70, -1596.70,    17.00, -1276.60}, 0x8800DD80 },//Flint Intersection
  134. { INVALID_GANG_ZONE, {-594.10, -1648.50,  -187.70, -1276.60}, 0x00CC0060 },//Flint Range
  135. { INVALID_GANG_ZONE, {-376.20,   826.30,   123.70,  1220.40}, 0x0000D860 },//Fort Carson
  136. { INVALID_GANG_ZONE, {-2270.00,  -430.20, -2178.60,  -324.10}, 0xA0CC0060 },//Foster Valley
  137. { INVALID_GANG_ZONE, {-2178.60,  -599.80, -1794.90,  -324.10}, 0xA0CC0060 },//Foster Valley
  138. { INVALID_GANG_ZONE, {-2178.60, -1115.50, -1794.90,  -599.80}, 0xA0CC0060 },//Foster Valley
  139. { INVALID_GANG_ZONE, {-2178.60, -1250.90, -1794.90, -1115.50}, 0xA0CC0060 },//Foster Valley
  140. { INVALID_GANG_ZONE, {2759.20,   296.50,  2774.20,   594.70}, 0x8800A860 },//Frederick Bridge
  141. { INVALID_GANG_ZONE, {-2741.40,  1659.60, -2616.40,  2175.10}, 0x8800A860 },//Gant Bridge
  142. { INVALID_GANG_ZONE, {-2741.00,  1490.40, -2616.40,  1659.60}, 0x8800A860 },//Gant Bridge
  143. { INVALID_GANG_ZONE, {2222.50, -1852.80,  2632.80, -1722.30}, 0xC808B860 },//Ganton
  144. { INVALID_GANG_ZONE, {2222.50, -1722.30,  2632.80, -1628.50}, 0xC808B860 },//Ganton
  145. { INVALID_GANG_ZONE, {-2411.20,  -222.50, -2173.00,   265.20}, 0x8A2BE260 },//Garcia
  146. { INVALID_GANG_ZONE, {-2395.10,  -222.50, -2354.00,  -204.70}, 0x8A2BE260 },//Garcia
  147. { INVALID_GANG_ZONE, {-1339.80,   828.10, -1213.90,  1057.00}, 0x8800A860 },//Garver Bridge
  148. { INVALID_GANG_ZONE, {-1213.90,   950.00, -1087.90,  1178.90}, 0x8800A860 },//Garver Bridge
  149. { INVALID_GANG_ZONE, {-1499.80,   696.40, -1339.80,   925.30}, 0x8800A860 },//Garver Bridge
  150. { INVALID_GANG_ZONE, {1812.60, -1449.60,  1996.90, -1350.70}, 0x00880060 },//Glen Park
  151. { INVALID_GANG_ZONE, {1812.60, -1100.80,  1994.30,  -973.30}, 0x00880060 },//Glen Park
  152. { INVALID_GANG_ZONE, {1812.60, -1350.70,  2056.80, -1100.80}, 0x00880060 },//Glen Park
  153. { INVALID_GANG_ZONE, {176.50,  1305.40,   337.60,  1520.70}, 0x08A80860 },//Green Palms
  154. { INVALID_GANG_ZONE, {964.30,  1044.60,  1197.30,  1203.20}, 0x98A80060 },//Greenglass College
  155. { INVALID_GANG_ZONE, {964.30,   930.80,  1166.50,  1044.60}, 0x98A80060 },//Greenglass College
  156. { INVALID_GANG_ZONE, {603.00,   264.30,   761.90,   366.50}, 0x20A0C860 },//Hampton Barns
  157. { INVALID_GANG_ZONE, {2576.90,    62.10,  2759.20,   385.50}, 0xA8009860 },//Hankypanky Point
  158. { INVALID_GANG_ZONE, {1777.30,   863.20,  1817.30,  2342.80}, 0xA8A80060 },//Harry Gold Parkway
  159. { INVALID_GANG_ZONE, {-2593.40,  -222.50, -2411.20,    54.70}, 0x2080C880 },//Hashbury
  160. { INVALID_GANG_ZONE, {967.30,  -450.30,  1176.70,  -217.90}, 0xC808B860 },//Hilltop Farm
  161. { INVALID_GANG_ZONE, {337.20,   710.80,   860.50,  1031.70}, 0xADFF2F60 },//Hunter Quarry
  162. { INVALID_GANG_ZONE, {1812.60, -1852.80,  1971.60, -1742.30}, 0x40E0D060 },//Idlewood
  163. { INVALID_GANG_ZONE, {1812.60, -1742.30,  1951.60, -1602.30}, 0x40E0D060 },//
  164. { INVALID_GANG_ZONE, {1951.60, -1742.30,  2124.60, -1602.30}, 0x40E0D060 },//
  165. { INVALID_GANG_ZONE, {1812.60, -1602.30,  2124.60, -1449.60}, 0x40E0D060 },//
  166. { INVALID_GANG_ZONE, {2124.60, -1742.30,  2222.50, -1494.00}, 0x40E0D060 },//
  167. { INVALID_GANG_ZONE, {1971.60, -1852.80,  2222.50, -1742.30}, 0x40E0D060 },//Idlewood
  168. { INVALID_GANG_ZONE, {1996.90, -1449.60,  2056.80, -1350.70}, 0xA844B860 },//Jefferson
  169. { INVALID_GANG_ZONE, {2124.60, -1494.00,  2266.20, -1449.60}, 0xA844B860 },//
  170. { INVALID_GANG_ZONE, {2056.80, -1372.00,  2281.40, -1210.70}, 0xA844B860 },//
  171. { INVALID_GANG_ZONE, {2056.80, -1210.70,  2185.30, -1126.30}, 0xA844B860 },//
  172. { INVALID_GANG_ZONE, {2185.30, -1210.70,  2281.40, -1154.50}, 0xA844B860 },//
  173. { INVALID_GANG_ZONE, {2056.80, -1449.60,  2266.20, -1372.00}, 0xA844B860 },//Jefferson
  174. { INVALID_GANG_ZONE, {2623.10,   943.20,  2749.90,  1055.90}, 0x7FFF0060 },//Julius Thruway East
  175. { INVALID_GANG_ZONE, {2685.10,  1055.90,  2749.90,  2626.50}, 0x7FFF0060 },//
  176. { INVALID_GANG_ZONE, {2536.40,  2442.50,  2685.10,  2542.50}, 0x7FFF0060 },//
  177. { INVALID_GANG_ZONE, {2625.10,  2202.70,  2685.10,  2442.50}, 0x7FFF0060 },//Julius Thruway East
  178. { INVALID_GANG_ZONE, {2498.20,  2542.50,  2685.10,  2626.50}, 0xFF8F0060 },//Julius Thruway North
  179. { INVALID_GANG_ZONE, {2237.40,  2542.50,  2498.20,  2663.10}, 0xFF8F0060 },//
  180. { INVALID_GANG_ZONE, {2121.40,  2508.20,  2237.40,  2663.10}, 0xFF8F0060 },//
  181. { INVALID_GANG_ZONE, {1938.80,  2508.20,  2121.40,  2624.20}, 0xFF8F0060 },//
  182. { INVALID_GANG_ZONE, {1534.50,  2433.20,  1848.40,  2583.20}, 0xFF8F0060 },//
  183. { INVALID_GANG_ZONE, {1848.40,  2478.40,  1938.80,  2553.40}, 0xFF8F0060 },//
  184. { INVALID_GANG_ZONE, {1704.50,  2342.80,  1848.40,  2433.20}, 0xFF8F0060 },//
  185. { INVALID_GANG_ZONE, {1377.30,  2433.20,  1534.50,  2507.20}, 0xFF8F0060 },//Julius Thruway North
  186. { INVALID_GANG_ZONE, {1457.30,   823.20,  2377.30,   863.20}, 0x008FFF60 },//Julius Thruway South
  187. { INVALID_GANG_ZONE, {2377.30,   788.80,  2537.30,   897.90}, 0x008FFF60 },//Julius Thruway South
  188. { INVALID_GANG_ZONE, {1197.30,  1163.30,  1236.60,  2243.20}, 0x8800A860 },//Julius Thruway West
  189. { INVALID_GANG_ZONE, {1236.60,  2142.80,  1297.40,  2243.20}, 0x8800A860 },//Julius Thruway West
  190. { INVALID_GANG_ZONE, {-2533.00,   578.30, -2274.10,   968.30}, 0x00DD1160 },//Juniper Hill
  191. { INVALID_GANG_ZONE, {-2533.00,   968.30, -2274.10,  1358.90}, 0xDD001160 },//Juniper Hollow
  192. { INVALID_GANG_ZONE, {2498.20,  2626.50,  2749.90,  2861.50}, 0xDD000060 },//K.A.C.C. Military Fuels
  193. { INVALID_GANG_ZONE, {-1339.80,   599.20, -1213.90,   828.10}, 0x4088FF60 },//Kincaid Bridge
  194. { INVALID_GANG_ZONE, {-1213.90,   721.10, -1087.90,   950.00}, 0x4088FF60 },//
  195. { INVALID_GANG_ZONE, {-1087.90,   855.30,  -961.90,   986.20}, 0x4088FF60 },//Kincaid Bridge
  196. { INVALID_GANG_ZONE, {-2329.30,   458.40, -1993.20,   578.30}, 0xADFF2F60 },//King's
  197. { INVALID_GANG_ZONE, {-2411.20,   265.20, -1993.20,   373.50}, 0xADFF2F60 },
  198. { INVALID_GANG_ZONE, {-2253.50,   373.50, -1993.20,   458.40}, 0xADFF2F60 },//King's
  199. { INVALID_GANG_ZONE, {1457.30,   863.20,  1777.40,  1143.20}, 0xFF450060 },//LVA Freight Depot
  200. { INVALID_GANG_ZONE, {1375.60,   919.40,  1457.30,  1203.20}, 0xFF450060 },//
  201. { INVALID_GANG_ZONE, {1277.00,  1087.60,  1375.60,  1203.20}, 0xFF450060 },//
  202. { INVALID_GANG_ZONE, {1315.30,  1044.60,  1375.60,  1087.60}, 0xFF450060 },//
  203. { INVALID_GANG_ZONE, {1236.60,  1163.40,  1277.00,  1203.20}, 0xFF450060 },//LVA Freight Depot
  204. { INVALID_GANG_ZONE, {-926.10,  1398.70,  -719.20,  1634.60}, 0x6495ED60 },//Las Barrancas
  205. { INVALID_GANG_ZONE, {-365.10,  2123.00,  -209.00,  2217.00}, 0x08D80860 },//Las Brujas
  206. { INVALID_GANG_ZONE, {1994.30, -1100.80,  2056.80,  -920.80}, 0x0000A860 },//Las Colinas
  207. { INVALID_GANG_ZONE, {2056.80, -1126.30,  2126.80,  -920.80}, 0x0000A860 },//
  208. { INVALID_GANG_ZONE, {2185.30, -1154.50,  2281.40,  -934.40}, 0x0000A860 },//
  209. { INVALID_GANG_ZONE, {2126.80, -1126.30,  2185.30,  -934.40}, 0x0000A860 },//
  210. { INVALID_GANG_ZONE, {2747.70, -1120.00,  2959.30,  -945.00}, 0x0000A860 },//
  211. { INVALID_GANG_ZONE, {2632.70, -1135.00,  2747.70,  -945.00}, 0x0000A860 },//
  212. { INVALID_GANG_ZONE, {2281.40, -1135.00,  2632.70,  -945.00}, 0x0000A860 },//Las Colinas
  213. { INVALID_GANG_ZONE, {-354.30,  2581.30,  -133.60,  2816.80}, 0xA0CC0060 },//Las Payasadas
  214. { INVALID_GANG_ZONE, {1236.60,  1203.20,  1457.30,  1883.10}, 0x00009860 },//Las Venturas Airport
  215. { INVALID_GANG_ZONE, {1457.30,  1203.20,  1777.30,  1883.10}, 0x00009860 },//
  216. { INVALID_GANG_ZONE, {1457.30,  1143.20,  1777.40,  1203.20}, 0x00009860 },//
  217. { INVALID_GANG_ZONE, {1515.80,  1586.40,  1729.90,  1714.50}, 0x00009860 },//Las Venturas Airport
  218. { INVALID_GANG_ZONE, {1823.00,   596.30,  1997.20,   823.20}, 0x88000060 },//Last Dime Motel
  219. { INVALID_GANG_ZONE, {-1166.90, -1856.00,  -815.60, -1602.00}, 0x12AD2360 },//Leafy Hollow
  220. { INVALID_GANG_ZONE, {-90.20,  1286.80,   100.80,  1386.10}, 0xA800A860 },//Lil' Probe Inn
  221. { INVALID_GANG_ZONE, {2749.90,   943.20,  2923.30,  1198.90}, 0x88880060 },//Linden Side
  222. { INVALID_GANG_ZONE, {2749.90,  1198.90,  2923.30,  1548.90}, 0xA8A81160 },//Linden Station
  223. { INVALID_GANG_ZONE, {2811.20,  1229.50,  2861.20,  1407.50}, 0xA8a81160 },//Linden Station
  224. { INVALID_GANG_ZONE, {1701.90, -1842.20,  1812.60, -1722.20}, 0xA8008860 },//Little Mexico
  225. { INVALID_GANG_ZONE, {1758.90, -1722.20,  1812.60, -1577.50}, 0xA8008860 },//Little Mexico
  226. { INVALID_GANG_ZONE, {2581.70, -1454.30,  2632.80, -1393.40}, 0xAAD81260 },//Los Flores
  227. { INVALID_GANG_ZONE, {2581.70, -1393.40,  2747.70, -1135.00}, 0xAAD81260 },//Los Flores
  228. { INVALID_GANG_ZONE, {1249.60, -2394.30,  1852.00, -2179.20}, 0x00009860 },//Los Santos International
  229. { INVALID_GANG_ZONE, {1852.00, -2394.30,  2089.00, -2179.20}, 0x00009860 },//
  230. { INVALID_GANG_ZONE, {1382.70, -2730.80,  2201.80, -2394.30}, 0x00009860 },//
  231. { INVALID_GANG_ZONE, {1974.60, -2394.30,  2089.00, -2256.50}, 0x00009860 },//
  232. { INVALID_GANG_ZONE, {1400.90, -2669.20,  2189.80, -2597.20}, 0x00009860 },//
  233. { INVALID_GANG_ZONE, {2051.60, -2597.20,  2152.40, -2394.30}, 0x00009860 },//Los Santos International
  234. { INVALID_GANG_ZONE, {647.70, -1804.20,   851.40, -1577.50}, 0x00008860 },//Marina
  235. { INVALID_GANG_ZONE, {647.70, -1577.50,   807.90, -1416.20}, 0x00008860 },//
  236. { INVALID_GANG_ZONE, {807.90, -1577.50,   926.90, -1416.20}, 0x00008860 },//Marina
  237. { INVALID_GANG_ZONE, {787.40, -1416.20,  1072.60, -1310.20}, 0xC808B860 },//Market
  238. { INVALID_GANG_ZONE, {952.60, -1310.20,  1072.60, -1130.80}, 0xC808B860 },//
  239. { INVALID_GANG_ZONE, {1072.60, -1416.20,  1370.80, -1130.80}, 0xC808B860 },//
  240. { INVALID_GANG_ZONE, {926.90, -1577.50,  1370.80, -1416.20}, 0xC808B860 },//Market
  241. { INVALID_GANG_ZONE, {787.40, -1410.90,   866.00, -1310.20}, 0xA8A81160 },//Market Station
  242. { INVALID_GANG_ZONE, {-222.10,   293.30,  -122.10,   476.40}, 0x4088FF60 },//Martin Bridge
  243. { INVALID_GANG_ZONE, {-2994.40,  -811.20, -2178.60,  -430.20}, 0x11DD2360 },//Missionary Hill
  244. { INVALID_GANG_ZONE, {1119.50,   119.50,  1451.40,   493.30}, 0xAA333360 },//Montgomery
  245. { INVALID_GANG_ZONE, {1451.40,   347.40,  1582.40,   420.80}, 0xAA333360 },//Montgomery
  246. { INVALID_GANG_ZONE, {1546.60,   208.10,  1745.80,   347.40}, 0x8800DD80 },//Montgomery Intersection
  247. { INVALID_GANG_ZONE, {1582.40,   347.40,  1664.60,   401.70}, 0x8800DD80 },//Montgomery Intersection
  248. { INVALID_GANG_ZONE, {1414.00,  -768.00,  1667.60,  -452.40}, 0xAA004480 },//Mulholland
  249. { INVALID_GANG_ZONE, {1281.10,  -452.40,  1641.10,  -290.90}, 0xAA004480 },//Mulholland
  250. { INVALID_GANG_ZONE, {1269.10,  -768.00,  1414.00,  -452.40}, 0xAA004480 },//Mulholland
  251. { INVALID_GANG_ZONE, {1357.00,  -926.90,  1463.90,  -768.00}, 0xAA004480 },//Mulholland
  252. { INVALID_GANG_ZONE, {1318.10,  -910.10,  1357.00,  -768.00}, 0xAA004480 },//Mulholland
  253. { INVALID_GANG_ZONE, {1169.10,  -910.10,  1318.10,  -768.00}, 0xAA004480 },//Mulholland
  254. { INVALID_GANG_ZONE, {768.60,  -954.60,   952.60,  -860.60}, 0xAA004480 },//Mulholland
  255. { INVALID_GANG_ZONE, {687.80,  -860.60,   911.80,  -768.00}, 0xAA004480 },//Mulholland
  256. { INVALID_GANG_ZONE, {737.50,  -768.00,  1142.20,  -674.80}, 0xAA004480 },//Mulholland
  257. { INVALID_GANG_ZONE, {1096.40,  -910.10,  1169.10,  -768.00}, 0xAA004480 },//Mulholland
  258. { INVALID_GANG_ZONE, {952.60,  -937.10,  1096.40,  -860.60}, 0xAA004480 },//Mulholland
  259. { INVALID_GANG_ZONE, {911.80,  -860.60,  1096.40,  -768.00}, 0xAA004480 },//Mulholland
  260. { INVALID_GANG_ZONE, {861.00,  -674.80,  1156.50,  -600.80}, 0xAA004480 },//Mulholland
  261. { INVALID_GANG_ZONE, {1463.90, -1150.80,  1812.60,  -768.00}, 0x8800DD80 },//Mulholland Intersection
  262. { INVALID_GANG_ZONE, {2285.30,  -768.00,  2770.50,  -269.70}, 0xAAD4Ab60 },//North Rock
  263. { INVALID_GANG_ZONE, {2373.70, -2697.00,  2809.20, -2330.40}, 0x00008860 },//Ocean Docks
  264. { INVALID_GANG_ZONE, {2201.80, -2418.30,  2324.00, -2095.00}, 0x00008860 },//
  265. { INVALID_GANG_ZONE, {2324.00, -2302.30,  2703.50, -2145.10}, 0x00008860 },//
  266. { INVALID_GANG_ZONE, {2089.00, -2394.30,  2201.80, -2235.80}, 0x00008860 },//
  267. { INVALID_GANG_ZONE, {2201.80, -2730.80,  2324.00, -2418.30}, 0x00008860 },//
  268. { INVALID_GANG_ZONE, {2703.50, -2302.30,  2959.30, -2126.90}, 0x00008860 },//
  269. { INVALID_GANG_ZONE, {2324.00, -2145.10,  2703.50, -2059.20}, 0x00008860 },//Ocean Docks
  270. { INVALID_GANG_ZONE, {-2994.40,   277.40, -2867.80,   458.40}, 0x88880060 },//Ocean Flats
  271. { INVALID_GANG_ZONE, {-2994.40,  -222.50, -2593.40,   277.40}, 0x88880060 },//
  272. { INVALID_GANG_ZONE, {-2994.40,  -430.20, -2831.80,  -222.50}, 0x88880060 },//Ocean Flats
  273. { INVALID_GANG_ZONE, {339.60,  1228.50,   664.30,  1635.00}, 0xDD88AA60 },//Octane Springs
  274. { INVALID_GANG_ZONE, {2162.30,  2012.10,  2685.10,  2202.70}, 0xA8000060 },//Old Venturas Strip
  275. { INVALID_GANG_ZONE, {-2994.40,   458.40, -2741.00,  1339.60}, 0xA8A80060 },//Palisades
  276. { INVALID_GANG_ZONE, {2160.20,  -149.00,  2576.90,   228.30}, 0x0000DD60 },//Palomino Creek
  277. { INVALID_GANG_ZONE, {-2741.00,   793.40, -2533.00,  1268.40}, 0xA8A80060 },//Paradiso
  278. { INVALID_GANG_ZONE, {1440.90, -1722.20,  1583.50, -1577.50}, 0x0000FF80 },//Pershing Square
  279. { INVALID_GANG_ZONE, {2437.30,  1383.20,  2624.40,  1783.20}, 0xAFAFAF60 },//Pilgrim
  280. { INVALID_GANG_ZONE, {2624.40,  1383.20,  2685.10,  1783.20}, 0xAFAFAF60 },//Pilgrim
  281. { INVALID_GANG_ZONE, {1098.30,  2243.20,  1377.30,  2507.20}, 0x8800DD80 },//Pilson Intersection
  282. { INVALID_GANG_ZONE, {1817.30,  1469.20,  2027.40,  1703.20}, 0x88000060 },//Pirates in Men's Pants
  283. { INVALID_GANG_ZONE, {2703.50, -2126.90,  2959.30, -1852.80}, 0x8800B860 },//Playa del Seville
  284. { INVALID_GANG_ZONE, {1534.50,  2583.20,  1848.40,  2863.20}, 0x88880060 },//Prickle Pine
  285. { INVALID_GANG_ZONE, {1117.40,  2507.20,  1534.50,  2707.20}, 0x88880060 },//
  286. { INVALID_GANG_ZONE, {1848.40,  2553.40,  1938.80,  2863.20}, 0x88880060 },//
  287. { INVALID_GANG_ZONE, {1938.80,  2624.20,  2121.40,  2861.50}, 0x88880060 },//Prickle Pine
  288. { INVALID_GANG_ZONE, {-2533.00,   458.40, -2329.30,   578.30}, 0xB8008860 },//Queens
  289. { INVALID_GANG_ZONE, {-2593.40,    54.70, -2411.20,   458.40}, 0xB8008860 },//
  290. { INVALID_GANG_ZONE, {-2411.20,   373.50, -2253.50,   458.40}, 0xB8008860 },//Queens
  291. { INVALID_GANG_ZONE, {1558.00,   596.30,  1823.00,   823.20}, 0xAFAFAF60 },//Randolph Industrial Estate
  292. { INVALID_GANG_ZONE, {1817.30,  2011.80,  2106.70,  2202.70}, 0xF8088860 },//Redsands East
  293. { INVALID_GANG_ZONE, {1817.30,  2202.70,  2011.90,  2342.80}, 0xF8088860 },//
  294. { INVALID_GANG_ZONE, {1848.40,  2342.80,  2011.90,  2478.40}, 0xF8088860 },//
  295. { INVALID_GANG_ZONE, {1236.60,  1883.10,  1777.30,  2142.80}, 0xF8088860 },//
  296. { INVALID_GANG_ZONE, {1297.40,  2142.80,  1777.30,  2243.20}, 0xF8088860 },//
  297. { INVALID_GANG_ZONE, {1377.30,  2243.20,  1704.50,  2433.20}, 0xF8088860 },//
  298. { INVALID_GANG_ZONE, {1704.50,  2243.20,  1777.30,  2342.80}, 0xF8088860 },//Redsands East
  299. { INVALID_GANG_ZONE, {-405.70,  1712.80,  -276.70,  1892.70}, 0x0000B860 },//Regular Tom
  300. { INVALID_GANG_ZONE, {647.50, -1118.20,   787.40,  -954.60}, 0x33AA3380 },//richman
  301. { INVALID_GANG_ZONE, {647.50,  -954.60,   768.60,  -860.60}, 0x33AA3380 },//richman
  302. { INVALID_GANG_ZONE, {225.10, -1369.60,   334.50, -1292.00}, 0x33AA3380 },//richman
  303. { INVALID_GANG_ZONE, {225.10, -1292.00,   466.20, -1235.00}, 0x33AA3380 },//richman
  304. { INVALID_GANG_ZONE, {72.60, -1404.90,   225.10, -1235.00}, 0x33AA3380 },//richman
  305. { INVALID_GANG_ZONE, {72.60, -1235.00,   321.30, -1008.10}, 0x33AA3380 },//richman
  306. { INVALID_GANG_ZONE, {321.30, -1235.00,   647.50, -1044.00}, 0x33AA3860 },//richman
  307. { INVALID_GANG_ZONE, {321.30, -1044.00,   647.50,  -860.60}, 0x33AA3860 },//richman
  308. { INVALID_GANG_ZONE, {321.30,  -860.60,   687.80,  -768.00}, 0x33AA3860 },//richman
  309. { INVALID_GANG_ZONE, {321.30,  -768.00,   700.70,  -674.80}, 0x33AA3860 },//richman
  310. { INVALID_GANG_ZONE, {-1119.00,  1178.90,  -862.00,  1351.40}, 0x8800DD80 },//Robada Intersection
  311. { INVALID_GANG_ZONE, {2237.40,  2202.70,  2536.40,  2542.50}, 0x88002860 },//Roca Escalante
  312. { INVALID_GANG_ZONE, {2536.40,  2202.70,  2625.10,  2442.50}, 0x88002860 },//Roca Escalante
  313. { INVALID_GANG_ZONE, {2537.30,   676.50,  2902.30,   943.20}, 0x0000E860 },//Rockshore East
  314. { INVALID_GANG_ZONE, {1997.20,   596.30,  2377.30,   823.20}, 0x0000E860 },//
  315. { INVALID_GANG_ZONE, {2377.30,   596.30,  2537.30,   788.80}, 0x0000E860 },//Rockshore East
  316. { INVALID_GANG_ZONE, {72.60, -1684.60,   225.10, -1544.10}, 0x2080C880 },//Rodeo
  317. { INVALID_GANG_ZONE, {72.60, -1544.10,   225.10, -1404.90}, 0x2080C880 },//
  318. { INVALID_GANG_ZONE, {225.10, -1684.60,   312.80, -1501.90}, 0x2080C880 },//
  319. { INVALID_GANG_ZONE, {225.10, -1501.90,   334.50, -1369.60}, 0x2080C880 },//
  320. { INVALID_GANG_ZONE, {334.50, -1501.90,   422.60, -1406.00}, 0x2080C880 },//
  321. { INVALID_GANG_ZONE, {312.80, -1684.60,   422.60, -1501.90}, 0x2080C880 },//
  322. { INVALID_GANG_ZONE, {422.60, -1684.60,   558.00, -1570.20}, 0x2080C880 },//
  323. { INVALID_GANG_ZONE, {558.00, -1684.60,   647.50, -1384.90}, 0x2080C880 },//
  324. { INVALID_GANG_ZONE, {466.20, -1570.20,   558.00, -1385.00}, 0x2080C880 },//
  325. { INVALID_GANG_ZONE, {422.60, -1570.20,   466.20, -1406.00}, 0x2080C880 },//
  326. { INVALID_GANG_ZONE, {466.20, -1385.00,   647.50, -1235.00}, 0x2080C880 },//
  327. { INVALID_GANG_ZONE, {334.50, -1406.00,   466.20, -1292.00}, 0x2080C880 },//Rodeo
  328. { INVALID_GANG_ZONE, {2087.30,  1383.20,  2437.30,  1543.20}, 0x0000FF60 },//Royal Casino
  329. { INVALID_GANG_ZONE, {2450.30,   385.50,  2759.20,   562.30}, 0xF8F80060 },//San Andreas Sound
  330. { INVALID_GANG_ZONE, {-2741.00,   458.40, -2533.00,   793.40}, 0x4800D860 },//Santa Flora
  331. { INVALID_GANG_ZONE, {342.60, -2173.20,   647.70, -1684.60}, 0xF8F80060 },//Santa Maria Beach
  332. { INVALID_GANG_ZONE, {72.60, -2173.20,   342.60, -1684.60}, 0xF8F80060 },//Santa Maria Beach
  333. { INVALID_GANG_ZONE, {-1632.80, -2263.40, -1601.30, -2231.70}, 0x88EE8860 },//Shady Cabin
  334. { INVALID_GANG_ZONE, {-1820.60, -2643.60, -1226.70, -1771.60}, 0x8888EE60 },//Shady Creeks
  335. { INVALID_GANG_ZONE, {-2030.10, -2174.80, -1820.60, -1771.60}, 0x8888EE60 },//Shady Creeks
  336. { INVALID_GANG_ZONE, {2749.90,  1548.90,  2923.30,  1937.20}, 0xFF450060 },//Sobell Rail Yards
  337. { INVALID_GANG_ZONE, {2121.40,  2663.10,  2498.20,  2861.50}, 0xFF450060 },//Spinybed
  338. { INVALID_GANG_ZONE, {2437.30,  1783.20,  2685.10,  2012.10}, 0xAF00DF60 },//Starfish Casino
  339. { INVALID_GANG_ZONE, {2437.30,  1858.10,  2495.00,  1970.80}, 0xAF00DF60 },//
  340. { INVALID_GANG_ZONE, {2162.30,  1883.20,  2437.30,  2012.10}, 0xAF00DF60 },//Starfish Casino
  341. { INVALID_GANG_ZONE, {1252.30, -1130.80,  1378.30, -1026.30}, 0x33CCFF80 },//temple
  342. { INVALID_GANG_ZONE, {1252.30, -1026.30,  1391.00,  -926.90}, 0x33CCFF80 },//temple
  343. { INVALID_GANG_ZONE, {1252.30,  -926.90,  1357.00,  -910.10}, 0x33CCFF80 },//temple
  344. { INVALID_GANG_ZONE, {952.60, -1130.80,  1096.40,  -937.10}, 0x33CCFF80 },//temple
  345. { INVALID_GANG_ZONE, {1096.40, -1130.80,  1252.30, -1026.30}, 0x33CCFF80 },//temple
  346. { INVALID_GANG_ZONE, {1096.40, -1026.30,  1252.30,  -910.10}, 0x33CCFF80 },//temple
  347. { INVALID_GANG_ZONE, {2087.30,  1203.20,  2640.40,  1383.20}, 0x00DFFF60 },//The Camel's Toe
  348. { INVALID_GANG_ZONE, {2162.30,  1783.20,  2437.30,  1883.20}, 0xAF00FF60 },//The Clown's Pocket
  349. { INVALID_GANG_ZONE, {2011.90,  2202.70,  2237.40,  2462.20}, 0x00FF0060 },//The Emerald Isle
  350. { INVALID_GANG_ZONE, {-1209.60, -1317.10,  -908.10,  -787.30}, 0x88FF8860 },//The Farm
  351. { INVALID_GANG_ZONE, {1817.30,   863.20,  2027.30,  1083.20}, 0xFF008860 },//The Four Dragons Casino
  352. { INVALID_GANG_ZONE, {1817.30,  1283.20,  2027.30,  1469.20}, 0xBF00AF60 },//The High Roller
  353. { INVALID_GANG_ZONE, {1664.60,   401.70,  1785.10,   567.20}, 0xAA004480 },//The Mako Span
  354. { INVALID_GANG_ZONE, {-947.90,  -304.30,  -319.60,   327.00}, 0xA8A81160 },//The Panopticon
  355. { INVALID_GANG_ZONE, {1817.30,  1083.20,  2027.30,  1283.20}, 0xFF20BB60 },//The Pink Swan
  356. { INVALID_GANG_ZONE, {-968.70,  1929.40,  -490.00,  2155.20}, 0x2388DD60 },//The Sherman Dam
  357. { INVALID_GANG_ZONE, {2027.40,   863.20,  2087.30,  1703.20}, 0xE822A860 },//The Strip
  358. { INVALID_GANG_ZONE, {2106.70,  1863.20,  2162.30,  2202.70}, 0xE822A860 },//
  359. { INVALID_GANG_ZONE, {2027.40,  1783.20,  2162.30,  1863.20}, 0xE822A860 },//
  360. { INVALID_GANG_ZONE, {2027.40,  1703.20,  2137.40,  1783.20}, 0xE822A860 },//The Strip
  361. { INVALID_GANG_ZONE, {1817.30,  1863.20,  2106.70,  2011.80}, 0xA8A80060 },//The Visage
  362. { INVALID_GANG_ZONE, {1817.30,  1703.20,  2027.40,  1863.20}, 0xA8A80060 },//The Visage
  363. { INVALID_GANG_ZONE, {1692.60, -1971.80,  1812.60, -1932.80}, 0xA8A81160 },//Unity Station
  364. { INVALID_GANG_ZONE, {-936.60,  2611.40,  -715.90,  2847.90}, 0x8800DD60 },//Valle Ocultado
  365. { INVALID_GANG_ZONE, {930.20, -2488.40,  1249.60, -2006.70}, 0xA8886860 },//Verdant Bluffs
  366. { INVALID_GANG_ZONE, {1073.20, -2006.70,  1249.60, -1842.20}, 0xA8886860 },//
  367. { INVALID_GANG_ZONE, {1249.60, -2179.20,  1692.60, -1842.20}, 0xA8886860 },//Verdant Bluffs
  368. { INVALID_GANG_ZONE, {37.00,  2339.10,   435.90,  2677.90}, 0x18A82860 },//Verdant Meadows
  369. { INVALID_GANG_ZONE, {647.70, -2173.20,   930.20, -1804.20}, 0xFFFF0060 },//Verona Beach
  370. { INVALID_GANG_ZONE, {930.20, -2006.70,  1073.20, -1804.20}, 0xFFFF0060 },//
  371. { INVALID_GANG_ZONE, {851.40, -1804.20,  1046.10, -1577.50}, 0xFFFF0060 },//
  372. { INVALID_GANG_ZONE, {1161.50, -1722.20,  1323.90, -1577.50}, 0xFFFF0060 },//
  373. { INVALID_GANG_ZONE, {1046.10, -1722.20,  1161.50, -1577.50}, 0xFFFF0060 },//Verona Beach
  374. { INVALID_GANG_ZONE, {787.40, -1310.20,   952.60, -1130.80}, 0xAA00FF80 },//vinewood
  375. { INVALID_GANG_ZONE, {787.40, -1130.80,   952.60,  -954.60}, 0xAA00FF80 },//vinewood
  376. { INVALID_GANG_ZONE, {647.50, -1227.20,   787.40, -1118.20}, 0xAA00FF80 },//vinewood
  377. { INVALID_GANG_ZONE, {647.70, -1416.20,   787.40, -1227.20}, 0xAA00FF80 },//vinewood
  378. { INVALID_GANG_ZONE, {883.30,  1726.20,  1098.30,  2507.20}, 0xA8A8A860 },//Whitewood Estates
  379. { INVALID_GANG_ZONE, {1098.30,  1726.20,  1197.30,  2243.20}, 0xA8A8A860 },//Whitewood Estates
  380. { INVALID_GANG_ZONE, {1970.60, -2179.20,  2089.00, -1852.80}, 0x40E0D060 },//Willowfield
  381. { INVALID_GANG_ZONE, {2089.00, -2235.80,  2201.80, -1989.90}, 0x40E0D060 },//
  382. { INVALID_GANG_ZONE, {2089.00, -1989.90,  2324.00, -1852.80}, 0x40E0D060 },//
  383. { INVALID_GANG_ZONE, {2201.80, -2095.00,  2324.00, -1989.90}, 0x40E0D060 },//
  384. { INVALID_GANG_ZONE, {2541.70, -1941.40,  2703.50, -1852.80}, 0x40E0D060 },//
  385. { INVALID_GANG_ZONE, {2324.00, -2059.20,  2541.70, -1852.80}, 0x40E0D060 },//
  386. { INVALID_GANG_ZONE, {2541.70, -2059.20,  2703.50, -1941.40}, 0x40E0D060 },//Willowfield
  387. { INVALID_GANG_ZONE, {1377.40,  2600.40,  1492.40,  2687.30}, 0xA8A81160 },//Yellow Bell Station
  388. { INVALID_GANG_ZONE, {-76.40,   1640.40,   411.90,  2104.50}, 0xFF000080 },//area 69
  389. { INVALID_GANG_ZONE, {2140.00,  2463.00,  2217.00,  2500.00}, 0xFF00FF80 },//clairs tuneshop
  390. // Main Zones
  391. { INVALID_GANG_ZONE, {44.60, -2892.90,  2997.00,  -768.00}, 0xF0000020 },//Los Santos
  392. { INVALID_GANG_ZONE, {869.40,   596.30,  2997.00,  2993.80}, 0xF00B020 },//Las Venturas
  393. { INVALID_GANG_ZONE, {-480.00,   596.50,   869.00,  2993.00}, 0x80808020 },//Bone County
  394. { INVALID_GANG_ZONE, {-2997.40,  1659.60,  -481.50,  2993.80}, 0x80000040 },//Tierra Robada
  395. { INVALID_GANG_ZONE, {-1213.90,   596.30,  -481.50,  1659.60}, 0x80000040 },//Tierra Robada
  396. { INVALID_GANG_ZONE, {-2997.40, -1115.50, -1213.90,  1659.60}, 0xF0000020 },//San Fierro
  397. { INVALID_GANG_ZONE, {-1213.90,  -768.00,  2997.00,   596.30}, 0x80808020 },//Red County
  398. { INVALID_GANG_ZONE, {-1213.90, -2892.90,    44.60,  -768.00}, 0x80408020 },//Flint County
  399. { INVALID_GANG_ZONE, {-2997.40, -2892.90, -1213.90, -1115.50}, 0xF0F00040 }//Whetstone
  400. };
  401. // zarea
  402. enum zareainfo {
  403.     zarea_name[27],
  404.     Float:zarea_minx,
  405.     Float:zarea_miny,
  406.     Float:zarea_minz,
  407.     Float:zarea_maxx,
  408.     Float:zarea_maxy,
  409.     Float:zarea_maxz
  410. }
  411. new Float:zarea[][zareainfo] = {
  412.  
  413. // Main zarea
  414. { "Los Santos",                     44.60, -2892.90,  -242.90,  2997.00,  -768.00,   900.00},
  415. { "Las Venturas",                  869.40,   596.30,  -242.90,  2997.00,  2994.00,   900.00},
  416. { "Bone County",                  -479.00,   596.50,  -242.90,   869.00,  2993.00,   900.00},
  417. { "Tierra Robada",               -2997.40,  1659.60,  -242.90,  -481.50,  2992.00,   900.00},
  418. { "Tierra Robada",               -1213.90,   596.30,  -242.90,  -481.50,  1659.60,   900.00},
  419. { "San Fierro",                  -2997.40, -1115.50,  -242.90, -1213.90,  1659.60,   900.00},
  420. { "Red County",                  -1213.90,  -768.00,  -242.90,  2997.00,   596.30,   900.00},
  421. { "Flint County",                -1213.90, -2892.90,  -242.90,    44.60,  -768.00,   900.00},
  422. { "Whetstone",                   -2997.40, -2892.90,  -242.90, -1213.90, -1115.50,   900.00}
  423. };
  424. // ZONES
  425. enum zoneinfo {
  426.     zone_name[27],
  427.     Float:zone_minx,
  428.     Float:zone_miny,
  429.     Float:zone_minz,
  430.     Float:zone_maxx,
  431.     Float:zone_maxy,
  432.     Float:zone_maxz
  433. }
  434. new Float:zones[][zoneinfo] = {
  435. { "Mount Chiliad",               -2861.00, -2113.70,    -10.00, -2102.0, -1308.00,   500.00},
  436. { "Yellow Bell Golf Course",      1117.20,  2708.00,    -10.00, 1533.00,  2883.00,    20.00},
  437. { "'Clair`s Tune Shop'",          2140.00,  2463.00,    -10.00, 2217.00,  2500.00,    20.00},
  438. { "'The Big Ear'",                -410.00,  1403.30,    -3.00,  -137.90,  1681.20,   200.00},
  439. { "Aldea Malvada",               -1372.10,  2498.50,     0.00, -1277.50,  2615.30,   200.00},
  440. { "Angel Pine",                  -2324.90, -2584.20,    -6.10, -1964.20, -2212.10,   200.00},
  441. { "Arco del Oeste",               -901.10,  2221.80,     0.00,  -592.00,  2571.90,   200.00},
  442. { "Avispa Country Club",         -2646.40,  -355.40,     0.00, -2270.00,  -222.50,   200.00},
  443. { "Avispa Country Club",         -2831.80,  -430.20,    -6.10, -2646.40,  -222.50,   200.00},
  444. { "Avispa Country Club",         -2361.50,  -417.10,     0.00, -2270.00,  -355.40,   200.00},
  445. { "Avispa Country Club",         -2667.80,  -302.10,   -28.80, -2646.40,  -262.30,    71.10},
  446. { "Avispa Country Club",         -2470.00,  -355.40,     0.00, -2270.00,  -318.40,    46.10},
  447. { "Avispa Country Club",         -2550.00,  -355.40,     0.00, -2470.00,  -318.40,    39.70},
  448. { "Back o Beyond",               -1166.90, -2641.10,     0.00,  -321.70, -1856.00,   200.00},
  449. { "Battery Point",               -2741.00,  1268.40,    -4.50, -2533.00,  1490.40,   200.00},
  450. { "Bayside",                     -2741.00,  2175.10,     0.00, -2353.10,  2722.70,   200.00},
  451. { "Bayside Marina",              -2353.10,  2275.70,     0.00, -2153.10,  2475.70,   200.00},
  452. { "Beacon Hill",                  -399.60, -1075.50,    -1.40,  -319.00,  -977.50,   198.50},
  453. { "Blackfield",                    964.30,  1203.20,   -89.00,  1197.30,  1403.20,   110.90},
  454. { "Blackfield",                    964.30,  1403.20,   -89.00,  1197.30,  1726.20,   110.90},
  455. { "Blackfield Chapel",            1375.60,   596.30,   -89.00,  1558.00,   823.20,   110.90},
  456. { "Blackfield Chapel",            1325.60,   596.30,   -89.00,  1375.60,   795.00,   110.90},
  457. { "Blackfield Intersection",      1197.30,  1044.60,   -89.00,  1277.00,  1163.30,   110.90},
  458. { "Blackfield Intersection",      1166.50,   795.00,   -89.00,  1375.60,  1044.60,   110.90},
  459. { "Blackfield Intersection",      1277.00,  1044.60,   -89.00,  1315.30,  1087.60,   110.90},
  460. { "Blackfield Intersection",      1375.60,   823.20,   -89.00,  1457.30,   919.40,   110.90},
  461. { "Blueberry",                     104.50,  -220.10,     2.30,   349.60,   152.20,   200.00},
  462. { "Blueberry",                      19.60,  -404.10,     3.80,   349.60,  -220.10,   200.00},
  463. { "Blueberry Acres",              -319.60,  -220.10,     0.00,   104.50,   293.30,   200.00},
  464. { "Caligula's Palace",            2087.30,  1543.20,   -89.00,  2437.30,  1703.20,   110.90},
  465. { "Caligula's Palace",            2137.40,  1703.20,   -89.00,  2437.30,  1783.20,   110.90},
  466. { "Calton Heights",              -2274.10,   744.10,    -6.10, -1982.30,  1358.90,   200.00},
  467. { "Chinatown",                   -2274.10,   578.30,    -7.60, -2078.60,   744.10,   200.00},
  468. { "City Hall",                   -2867.80,   277.40,    -9.10, -2593.40,   458.40,   200.00},
  469. { "Come-A-Lot",                   2087.30,   943.20,   -89.00,  2623.10,  1203.20,   110.90},
  470. { "Commerce",                     1323.90, -1842.20,   -89.00,  1701.90, -1722.20,   110.90},
  471. { "Commerce",                     1323.90, -1722.20,   -89.00,  1440.90, -1577.50,   110.90},
  472. { "Commerce",                     1370.80, -1577.50,   -89.00,  1463.90, -1384.90,   110.90},
  473. { "Commerce",                     1463.90, -1577.50,   -89.00,  1667.90, -1430.80,   110.90},
  474. { "Commerce",                     1583.50, -1722.20,   -89.00,  1758.90, -1577.50,   110.90},
  475. { "Commerce",                     1667.90, -1577.50,   -89.00,  1812.60, -1430.80,   110.90},
  476. { "Conference Center",            1046.10, -1804.20,   -89.00,  1323.90, -1722.20,   110.90},
  477. { "Conference Center",            1073.20, -1842.20,   -89.00,  1323.90, -1804.20,   110.90},
  478. { "Cranberry Station",           -2007.80,    56.30,   -10.00, -1922.00,   224.70,    50.00},
  479. { "Creek",                        2749.90,  1937.20,   -89.00,  2921.60,  2669.70,   110.90},
  480. { "Dillimore",                     580.70,  -674.80,    -9.50,   861.00,  -404.70,   200.00},
  481. { "Doherty",                     -2270.00,  -324.10,    -0.00, -1794.90,  -222.50,   200.00},
  482. { "Doherty",                     -2173.00,  -222.50,    -0.00, -1794.90,   265.20,   200.00},
  483. { "Downtown",                    -1982.30,   744.10,    -6.10, -1871.70,  1274.20,   200.00},
  484. { "Downtown",                    -1871.70,  1176.40,    -4.50, -1620.30,  1274.20,   200.00},
  485. { "Downtown",                    -1700.00,   744.20,    -6.10, -1580.00,  1176.50,   200.00},
  486. { "Downtown",                    -1580.00,   744.20,    -6.10, -1499.80,  1025.90,   200.00},
  487. { "Downtown",                    -2078.60,   578.30,    -7.60, -1499.80,   744.20,   200.00},
  488. { "Downtown",                    -1993.20,   265.20,    -9.10, -1794.90,   578.30,   200.00},
  489. { "Downtown Los Santos",          1463.90, -1430.80,   -89.00,  1724.70, -1290.80,   110.90},
  490. { "Downtown Los Santos",          1724.70, -1430.80,   -89.00,  1812.60, -1250.90,   110.90},
  491. { "Downtown Los Santos",          1463.90, -1290.80,   -89.00,  1724.70, -1150.80,   110.90},
  492. { "Downtown Los Santos",          1370.80, -1384.90,   -89.00,  1463.90, -1170.80,   110.90},
  493. { "Downtown Los Santos",          1724.70, -1250.90,   -89.00,  1812.60, -1150.80,   110.90},
  494. { "Downtown Los Santos",          1370.80, -1170.80,   -89.00,  1463.90, -1130.80,   110.90},
  495. { "Downtown Los Santos",          1378.30, -1130.80,   -89.00,  1463.90, -1026.30,   110.90},
  496. { "Downtown Los Santos",          1391.00, -1026.30,   -89.00,  1463.90,  -926.90,   110.90},
  497. { "Downtown Los Santos",          1507.50, -1385.20,   110.90,  1582.50, -1325.30,   335.90},
  498. { "East Beach",                   2632.80, -1852.80,   -89.00,  2959.30, -1668.10,   110.90},
  499. { "East Beach",                   2632.80, -1668.10,   -89.00,  2747.70, -1393.40,   110.90},
  500. { "East Beach",                   2747.70, -1668.10,   -89.00,  2959.30, -1498.60,   110.90},
  501. { "East Beach",                   2747.70, -1498.60,   -89.00,  2959.30, -1120.00,   110.90},
  502. { "East Los Santos",              2421.00, -1628.50,   -89.00,  2632.80, -1454.30,   110.90},
  503. { "East Los Santos",              2222.50, -1628.50,   -89.00,  2421.00, -1494.00,   110.90},
  504. { "East Los Santos",              2266.20, -1494.00,   -89.00,  2381.60, -1372.00,   110.90},
  505. { "East Los Santos",              2381.60, -1494.00,   -89.00,  2421.00, -1454.30,   110.90},
  506. { "East Los Santos",              2281.40, -1372.00,   -89.00,  2381.60, -1135.00,   110.90},
  507. { "East Los Santos",              2381.60, -1454.30,   -89.00,  2462.10, -1135.00,   110.90},
  508. { "East Los Santos",              2462.10, -1454.30,   -89.00,  2581.70, -1135.00,   110.90},
  509. { "Easter Basin",                -1794.90,   249.90,    -9.10, -1242.90,   578.30,   200.00},
  510. { "Easter Basin",                -1794.90,   -50.00,    -0.00, -1499.80,   249.90,   200.00},
  511. { "Easter Bay Airport",          -1499.80,   -50.00,    -0.00, -1242.90,   249.90,   200.00},
  512. { "Easter Bay Airport",          -1731.90,  -700.10,    -3.00, -1214.00,   -50.00,   200.00},
  513. { "Easter Bay Airport",          -1213.90,  -500.10,     0.00, -1132.80,   -50.00,   200.00},
  514. { "Easter Bay Airport",          -1242.90,   -50.00,     0.00, -1213.90,   578.30,   200.00},
  515. { "Easter Bay Airport",          -1213.90,   -50.00,    -4.50,  -947.90,   578.30,   200.00},
  516. { "Easter Bay Airport",          -1315.40,  -405.30,    15.40, -1264.40,  -209.50,    25.40},
  517. { "Easter Bay Airport",          -1354.30,  -287.30,    15.40, -1315.40,  -209.50,    25.40},
  518. { "Easter Bay Airport",          -1490.30,  -209.50,    15.40, -1264.40,  -148.30,    25.40},
  519. { "Easter Bay Chemicals",        -1132.80,  -768.00,     0.00,  -956.40,  -578.10,   200.00},
  520. { "Easter Bay Chemicals",        -1132.80,  -787.30,     0.00,  -956.40,  -768.00,   200.00},
  521. { "El Castillo del Diablo",       -464.50,  2218.00,     0.00,  -209.00,  2580.30,   200.00},
  522. { "El Castillo del Diablo",       -208.00,  2123.00,    -7.60,   114.00,  2337.00,   200.00},
  523. { "El Castillo del Diablo",       -208.00,  2337.50,     0.00,     8.40,  2487.00,   200.00},
  524. { "El Corona",                    1812.60, -2179.20,   -89.00,  1970.60, -1852.80,   110.90},
  525. { "El Corona",                    1692.60, -2179.20,   -89.00,  1812.60, -1842.20,   110.90},
  526. { "El Quebrados",                -1645.20,  2498.50,     0.00, -1372.10,  2777.80,   200.00},
  527. { "Esplanade East",              -1620.30,  1176.50,    -4.50, -1580.00,  1274.20,   200.00},
  528. { "Esplanade East",              -1580.00,  1025.90,    -6.10, -1499.80,  1274.20,   200.00},
  529. { "Esplanade East",              -1499.80,   578.30,   -79.60, -1339.80,  1274.20,    20.30},
  530. { "Esplanade North",             -2533.00,  1358.90,    -4.50, -1996.60,  1501.20,   200.00},
  531. { "Esplanade North",             -1996.60,  1358.90,    -4.50, -1524.20,  1592.50,   200.00},
  532. { "Esplanade North",             -1982.30,  1274.20,    -4.50, -1524.20,  1358.90,   200.00},
  533. { "Fallen Tree",                  -792.20,  -698.50,    -5.30,  -452.40,  -380.00,   200.00},
  534. { "Fallow Bridge",                 434.30,   366.50,     0.00,   603.00,   555.60,   200.00},
  535. { "Fern Ridge",                    508.10,  -139.20,     0.00,  1306.60,   119.50,   200.00},
  536. { "Financial",                   -1871.70,   744.10,    -6.10, -1701.30,  1176.40,   300.00},
  537. { "Fisher's Lagoon",              1916.90,  -233.30,  -100.00,  2131.70,    13.80,   200.00},
  538. { "Flint Intersection",           -187.70, -1596.70,   -89.00,    17.00, -1276.60,   110.90},
  539. { "Flint Range",                  -594.10, -1648.50,     0.00,  -187.70, -1276.60,   200.00},
  540. { "Fort Carson",                  -376.20,   826.30,    -3.00,   123.70,  1220.40,   200.00},
  541. { "Foster Valley",               -2270.00,  -430.20,    -0.00, -2178.60,  -324.10,   200.00},
  542. { "Foster Valley",               -2178.60,  -599.80,    -0.00, -1794.90,  -324.10,   200.00},
  543. { "Foster Valley",               -2178.60, -1115.50,     0.00, -1794.90,  -599.80,   200.00},
  544. { "Foster Valley",               -2178.60, -1250.90,     0.00, -1794.90, -1115.50,   200.00},
  545. { "Frederick Bridge",             2759.20,   296.50,     0.00,  2774.20,   594.70,   200.00},
  546. { "Gant Bridge",                 -2741.40,  1659.60,    -6.10, -2616.40,  2175.10,   200.00},
  547. { "Gant Bridge",                 -2741.00,  1490.40,    -6.10, -2616.40,  1659.60,   200.00},
  548. { "Ganton",                       2222.50, -1852.80,   -89.00,  2632.80, -1722.30,   110.90},
  549. { "Ganton",                       2222.50, -1722.30,   -89.00,  2632.80, -1628.50,   110.90},
  550. { "Garcia",                      -2411.20,  -222.50,    -0.00, -2173.00,   265.20,   200.00},
  551. { "Garcia",                      -2395.10,  -222.50,    -5.30, -2354.00,  -204.70,   200.00},
  552. { "Garver Bridge",               -1339.80,   828.10,   -89.00, -1213.90,  1057.00,   110.90},
  553. { "Garver Bridge",               -1213.90,   950.00,   -89.00, -1087.90,  1178.90,   110.90},
  554. { "Garver Bridge",               -1499.80,   696.40,  -179.60, -1339.80,   925.30,    20.30},
  555. { "Glen Park",                    1812.60, -1449.60,   -89.00,  1996.90, -1350.70,   110.90},
  556. { "Glen Park",                    1812.60, -1100.80,   -89.00,  1994.30,  -973.30,   110.90},
  557. { "Glen Park",                    1812.60, -1350.70,   -89.00,  2056.80, -1100.80,   110.90},
  558. { "Green Palms",                   176.50,  1305.40,    -3.00,   337.60,  1520.70,   200.00},
  559. { "Greenglass College",            964.30,  1044.60,   -89.00,  1197.30,  1203.20,   110.90},
  560. { "Greenglass College",            964.30,   930.80,   -89.00,  1166.50,  1044.60,   110.90},
  561. { "Hampton Barns",                 603.00,   264.30,     0.00,   761.90,   366.50,   200.00},
  562. { "Hankypanky Point",             2576.90,    62.10,     0.00,  2759.20,   385.50,   200.00},
  563. { "Harry Gold Parkway",           1777.30,   863.20,   -89.00,  1817.30,  2342.80,   110.90},
  564. { "Hashbury",                    -2593.40,  -222.50,    -0.00, -2411.20,    54.70,   200.00},
  565. { "Hilltop Farm",                  967.30,  -450.30,    -3.00,  1176.70,  -217.90,   200.00},
  566. { "Hunter Quarry",                 337.20,   710.80,  -115.20,   860.50,  1031.70,   203.70},
  567. { "Idlewood",                     1812.60, -1852.80,   -89.00,  1971.60, -1742.30,   110.90},
  568. { "Idlewood",                     1812.60, -1742.30,   -89.00,  1951.60, -1602.30,   110.90},
  569. { "Idlewood",                     1951.60, -1742.30,   -89.00,  2124.60, -1602.30,   110.90},
  570. { "Idlewood",                     1812.60, -1602.30,   -89.00,  2124.60, -1449.60,   110.90},
  571. { "Idlewood",                     2124.60, -1742.30,   -89.00,  2222.50, -1494.00,   110.90},
  572. { "Idlewood",                     1971.60, -1852.80,   -89.00,  2222.50, -1742.30,   110.90},
  573. { "Jefferson",                    1996.90, -1449.60,   -89.00,  2056.80, -1350.70,   110.90},
  574. { "Jefferson",                    2124.60, -1494.00,   -89.00,  2266.20, -1449.60,   110.90},
  575. { "Jefferson",                    2056.80, -1372.00,   -89.00,  2281.40, -1210.70,   110.90},
  576. { "Jefferson",                    2056.80, -1210.70,   -89.00,  2185.30, -1126.30,   110.90},
  577. { "Jefferson",                    2185.30, -1210.70,   -89.00,  2281.40, -1154.50,   110.90},
  578. { "Jefferson",                    2056.80, -1449.60,   -89.00,  2266.20, -1372.00,   110.90},
  579. { "Julius Thruway East",          2623.10,   943.20,   -89.00,  2749.90,  1055.90,   110.90},
  580. { "Julius Thruway East",          2685.10,  1055.90,   -89.00,  2749.90,  2626.50,   110.90},
  581. { "Julius Thruway East",          2536.40,  2442.50,   -89.00,  2685.10,  2542.50,   110.90},
  582. { "Julius Thruway East",          2625.10,  2202.70,   -89.00,  2685.10,  2442.50,   110.90},
  583. { "Julius Thruway North",         2498.20,  2542.50,   -89.00,  2685.10,  2626.50,   110.90},
  584. { "Julius Thruway North",         2237.40,  2542.50,   -89.00,  2498.20,  2663.10,   110.90},
  585. { "Julius Thruway North",         2121.40,  2508.20,   -89.00,  2237.40,  2663.10,   110.90},
  586. { "Julius Thruway North",         1938.80,  2508.20,   -89.00,  2121.40,  2624.20,   110.90},
  587. { "Julius Thruway North",         1534.50,  2433.20,   -89.00,  1848.40,  2583.20,   110.90},
  588. { "Julius Thruway North",         1848.40,  2478.40,   -89.00,  1938.80,  2553.40,   110.90},
  589. { "Julius Thruway North",         1704.50,  2342.80,   -89.00,  1848.40,  2433.20,   110.90},
  590. { "Julius Thruway North",         1377.30,  2433.20,   -89.00,  1534.50,  2507.20,   110.90},
  591. { "Julius Thruway South",         1457.30,   823.20,   -89.00,  2377.30,   863.20,   110.90},
  592. { "Julius Thruway South",         2377.30,   788.80,   -89.00,  2537.30,   897.90,   110.90},
  593. { "Julius Thruway West",          1197.30,  1163.30,   -89.00,  1236.60,  2243.20,   110.90},
  594. { "Julius Thruway West",          1236.60,  2142.80,   -89.00,  1297.40,  2243.20,   110.90},
  595. { "Juniper Hill",                -2533.00,   578.30,    -7.60, -2274.10,   968.30,   200.00},
  596. { "Juniper Hollow",              -2533.00,   968.30,    -6.10, -2274.10,  1358.90,   200.00},
  597. { "K.A.C.C. Military Fuels",      2498.20,  2626.50,   -89.00,  2749.90,  2861.50,   110.90},
  598. { "Kincaid Bridge",              -1339.80,   599.20,   -89.00, -1213.90,   828.10,   110.90},
  599. { "Kincaid Bridge",              -1213.90,   721.10,   -89.00, -1087.90,   950.00,   110.90},
  600. { "Kincaid Bridge",              -1087.90,   855.30,   -89.00,  -961.90,   986.20,   110.90},
  601. { "King's",                      -2329.30,   458.40,    -7.60, -1993.20,   578.30,   200.00},
  602. { "King's",                      -2411.20,   265.20,    -9.10, -1993.20,   373.50,   200.00},
  603. { "King's",                      -2253.50,   373.50,    -9.10, -1993.20,   458.40,   200.00},
  604. { "LVA Freight Depot",            1457.30,   863.20,   -89.00,  1777.40,  1143.20,   110.90},
  605. { "LVA Freight Depot",            1375.60,   919.40,   -89.00,  1457.30,  1203.20,   110.90},
  606. { "LVA Freight Depot",            1277.00,  1087.60,   -89.00,  1375.60,  1203.20,   110.90},
  607. { "LVA Freight Depot",            1315.30,  1044.60,   -89.00,  1375.60,  1087.60,   110.90},
  608. { "LVA Freight Depot",            1236.60,  1163.40,   -89.00,  1277.00,  1203.20,   110.90},
  609. { "Las Barrancas",                -926.10,  1398.70,    -3.00,  -719.20,  1634.60,   200.00},
  610. { "Las Brujas",                   -365.10,  2123.00,    -3.00,  -209.00,  2217.00,   200.00},
  611. { "Las Colinas",                  1994.30, -1100.80,   -89.00,  2056.80,  -920.80,   110.90},
  612. { "Las Colinas",                  2056.80, -1126.30,   -89.00,  2126.80,  -920.80,   110.90},
  613. { "Las Colinas",                  2185.30, -1154.50,   -89.00,  2281.40,  -934.40,   110.90},
  614. { "Las Colinas",                  2126.80, -1126.30,   -89.00,  2185.30,  -934.40,   110.90},
  615. { "Las Colinas",                  2747.70, -1120.00,   -89.00,  2959.30,  -945.00,   110.90},
  616. { "Las Colinas",                  2632.70, -1135.00,   -89.00,  2747.70,  -945.00,   110.90},
  617. { "Las Colinas",                  2281.40, -1135.00,   -89.00,  2632.70,  -945.00,   110.90},
  618. { "Las Payasadas",                -354.30,  2581.30,     2.00,  -133.60,  2816.80,   200.00},
  619. { "Las Venturas Airport",         1236.60,  1203.20,   -89.00,  1457.30,  1883.10,   110.90},
  620. { "Las Venturas Airport",         1457.30,  1203.20,   -89.00,  1777.30,  1883.10,   110.90},
  621. { "Las Venturas Airport",         1457.30,  1143.20,   -89.00,  1777.40,  1203.20,   110.90},
  622. { "Las Venturas Airport",         1515.80,  1586.40,   -12.50,  1729.90,  1714.50,    87.50},
  623. { "Last Dime Motel",              1823.00,   596.30,   -89.00,  1997.20,   823.20,   110.90},
  624. { "Leafy Hollow",                -1166.90, -1856.00,     0.00,  -815.60, -1602.00,   200.00},
  625. { "Lil' Probe Inn",                -90.20,  1286.80,    -3.00,   100.80,  1386.10,   200.00},
  626. { "Linden Side",                  2749.90,   943.20,   -89.00,  2923.30,  1198.90,   110.90},
  627. { "Linden Station",               2749.90,  1198.90,   -89.00,  2923.30,  1548.90,   110.90},
  628. { "Linden Station",               2811.20,  1229.50,   -39.50,  2861.20,  1407.50,    60.40},
  629. { "Little Mexico",                1701.90, -1842.20,   -89.00,  1812.60, -1722.20,   110.90},
  630. { "Little Mexico",                1758.90, -1722.20,   -89.00,  1812.60, -1577.50,   110.90},
  631. { "Los Flores",                   2581.70, -1454.30,   -89.00,  2632.80, -1393.40,   110.90},
  632. { "Los Flores",                   2581.70, -1393.40,   -89.00,  2747.70, -1135.00,   110.90},
  633. { "Los Santos International",     1249.60, -2394.30,   -89.00,  1852.00, -2179.20,   110.90},
  634. { "Los Santos International",     1852.00, -2394.30,   -89.00,  2089.00, -2179.20,   110.90},
  635. { "Los Santos International",     1382.70, -2730.80,   -89.00,  2201.80, -2394.30,   110.90},
  636. { "Los Santos International",     1974.60, -2394.30,   -39.00,  2089.00, -2256.50,    60.90},
  637. { "Los Santos International",     1400.90, -2669.20,   -39.00,  2189.80, -2597.20,    60.90},
  638. { "Los Santos International",     2051.60, -2597.20,   -39.00,  2152.40, -2394.30,    60.90},
  639. { "Marina",                        647.70, -1804.20,   -89.00,   851.40, -1577.50,   110.90},
  640. { "Marina",                        647.70, -1577.50,   -89.00,   807.90, -1416.20,   110.90},
  641. { "Marina",                        807.90, -1577.50,   -89.00,   926.90, -1416.20,   110.90},
  642. { "Market",                        787.40, -1416.20,   -89.00,  1072.60, -1310.20,   110.90},
  643. { "Market",                        952.60, -1310.20,   -89.00,  1072.60, -1130.80,   110.90},
  644. { "Market",                       1072.60, -1416.20,   -89.00,  1370.80, -1130.80,   110.90},
  645. { "Market",                        926.90, -1577.50,   -89.00,  1370.80, -1416.20,   110.90},
  646. { "Market Station",                787.40, -1410.90,   -34.10,   866.00, -1310.20,    65.80},
  647. { "Martin Bridge",                -222.10,   293.30,     0.00,  -122.10,   476.40,   200.00},
  648. { "Missionary Hill",             -2994.40,  -811.20,     0.00, -2178.60,  -430.20,   200.00},
  649. { "Montgomery",                   1119.50,   119.50,    -3.00,  1451.40,   493.30,   200.00},
  650. { "Montgomery",                   1451.40,   347.40,    -6.10,  1582.40,   420.80,   200.00},
  651. { "Montgomery Intersection",      1546.60,   208.10,     0.00,  1745.80,   347.40,   200.00},
  652. { "Montgomery Intersection",      1582.40,   347.40,     0.00,  1664.60,   401.70,   200.00},
  653. { "Mulholland",                   1414.00,  -768.00,   -89.00,  1667.60,  -452.40,   110.90},
  654. { "Mulholland",                   1281.10,  -452.40,   -89.00,  1641.10,  -290.90,   110.90},
  655. { "Mulholland",                   1269.10,  -768.00,   -89.00,  1414.00,  -452.40,   110.90},
  656. { "Mulholland",                   1357.00,  -926.90,   -89.00,  1463.90,  -768.00,   110.90},
  657. { "Mulholland",                   1318.10,  -910.10,   -89.00,  1357.00,  -768.00,   110.90},
  658. { "Mulholland",                   1169.10,  -910.10,   -89.00,  1318.10,  -768.00,   110.90},
  659. { "Mulholland",                    768.60,  -954.60,   -89.00,   952.60,  -860.60,   110.90},
  660. { "Mulholland",                    687.80,  -860.60,   -89.00,   911.80,  -768.00,   110.90},
  661. { "Mulholland",                    737.50,  -768.00,   -89.00,  1142.20,  -674.80,   110.90},
  662. { "Mulholland",                   1096.40,  -910.10,   -89.00,  1169.10,  -768.00,   110.90},
  663. { "Mulholland",                    952.60,  -937.10,   -89.00,  1096.40,  -860.60,   110.90},
  664. { "Mulholland",                    911.80,  -860.60,   -89.00,  1096.40,  -768.00,   110.90},
  665. { "Mulholland",                    861.00,  -674.80,   -89.00,  1156.50,  -600.80,   110.90},
  666. { "Mulholland Intersection",      1463.90, -1150.80,   -89.00,  1812.60,  -768.00,   110.90},
  667. { "North Rock",                   2285.30,  -768.00,     0.00,  2770.50,  -269.70,   200.00},
  668. { "Ocean Docks",                  2373.70, -2697.00,   -89.00,  2809.20, -2330.40,   110.90},
  669. { "Ocean Docks",                  2201.80, -2418.30,   -89.00,  2324.00, -2095.00,   110.90},
  670. { "Ocean Docks",                  2324.00, -2302.30,   -89.00,  2703.50, -2145.10,   110.90},
  671. { "Ocean Docks",                  2089.00, -2394.30,   -89.00,  2201.80, -2235.80,   110.90},
  672. { "Ocean Docks",                  2201.80, -2730.80,   -89.00,  2324.00, -2418.30,   110.90},
  673. { "Ocean Docks",                  2703.50, -2302.30,   -89.00,  2959.30, -2126.90,   110.90},
  674. { "Ocean Docks",                  2324.00, -2145.10,   -89.00,  2703.50, -2059.20,   110.90},
  675. { "Ocean Flats",                 -2994.40,   277.40,    -9.10, -2867.80,   458.40,   200.00},
  676. { "Ocean Flats",                 -2994.40,  -222.50,    -0.00, -2593.40,   277.40,   200.00},
  677. { "Ocean Flats",                 -2994.40,  -430.20,    -0.00, -2831.80,  -222.50,   200.00},
  678. { "Octane Springs",                339.60,  1228.50,     0.00,   664.30,  1635.00,   200.00},
  679. { "Old Venturas Strip",           2162.30,  2012.10,   -89.00,  2685.10,  2202.70,   110.90},
  680. { "Palisades",                   -2994.40,   458.40,    -6.10, -2741.00,  1339.60,   200.00},
  681. { "Palomino Creek",               2160.20,  -149.00,     0.00,  2576.90,   228.30,   200.00},
  682. { "Paradiso",                    -2741.00,   793.40,    -6.10, -2533.00,  1268.40,   200.00},
  683. { "Pershing Square",              1440.90, -1722.20,   -89.00,  1583.50, -1577.50,   110.90},
  684. { "Pilgrim",                      2437.30,  1383.20,   -89.00,  2624.40,  1783.20,   110.90},
  685. { "Pilgrim",                      2624.40,  1383.20,   -89.00,  2685.10,  1783.20,   110.90},
  686. { "Pilson Intersection",          1098.30,  2243.20,   -89.00,  1377.30,  2507.20,   110.90},
  687. { "Pirates in Men's Pants",       1817.30,  1469.20,   -89.00,  2027.40,  1703.20,   110.90},
  688. { "Playa del Seville",            2703.50, -2126.90,   -89.00,  2959.30, -1852.80,   110.90},
  689. { "Prickle Pine",                 1534.50,  2583.20,   -89.00,  1848.40,  2863.20,   110.90},
  690. { "Prickle Pine",                 1117.40,  2507.20,   -89.00,  1534.50,  2707.00,   110.90},
  691. { "Prickle Pine",                 1848.40,  2553.40,   -89.00,  1938.80,  2863.20,   110.90},
  692. { "Prickle Pine",                 1938.80,  2624.20,   -89.00,  2121.40,  2861.50,   110.90},
  693. { "Queens",                      -2533.00,   458.40,     0.00, -2329.30,   578.30,   200.00},
  694. { "Queens",                      -2593.40,    54.70,     0.00, -2411.20,   458.40,   200.00},
  695. { "Queens",                      -2411.20,   373.50,     0.00, -2253.50,   458.40,   200.00},
  696. { "Randolph Industrial Estate",   1558.00,   596.30,   -89.00,  1823.00,   823.20,   110.90},
  697. { "Redsands East",                1817.30,  2011.80,   -89.00,  2106.70,  2202.70,   110.90},
  698. { "Redsands East",                1817.30,  2202.70,   -89.00,  2011.90,  2342.80,   110.90},
  699. { "Redsands East",                1848.40,  2342.80,   -89.00,  2011.90,  2478.40,   110.90},
  700. { "Redsands West",                1236.60,  1883.10,   -89.00,  1777.30,  2142.80,   110.90},
  701. { "Redsands West",                1297.40,  2142.80,   -89.00,  1777.30,  2243.20,   110.90},
  702. { "Redsands West",                1377.30,  2243.20,   -89.00,  1704.50,  2433.20,   110.90},
  703. { "Redsands West",                1704.50,  2243.20,   -89.00,  1777.30,  2342.80,   110.90},
  704. { "Regular Tom",                  -405.70,  1712.80,    -3.00,  -276.70,  1892.70,   200.00},
  705. { "Richman",                       647.50, -1118.20,   -89.00,   787.40,  -954.60,   110.90},
  706. { "Richman",                       647.50,  -954.60,   -89.00,   768.60,  -860.60,   110.90},
  707. { "Richman",                       225.10, -1369.60,   -89.00,   334.50, -1292.00,   110.90},
  708. { "Richman",                       225.10, -1292.00,   -89.00,   466.20, -1235.00,   110.90},
  709. { "Richman",                        72.60, -1404.90,   -89.00,   225.10, -1235.00,   110.90},
  710. { "Richman",                        72.60, -1235.00,   -89.00,   321.30, -1008.10,   110.90},
  711. { "Richman",                       321.30, -1235.00,   -89.00,   647.50, -1044.00,   110.90},
  712. { "Richman",                       321.30, -1044.00,   -89.00,   647.50,  -860.60,   110.90},
  713. { "Richman",                       321.30,  -860.60,   -89.00,   687.80,  -768.00,   110.90},
  714. { "Richman",                       321.30,  -768.00,   -89.00,   700.70,  -674.80,   110.90},
  715. { "Robada Intersection",         -1119.00,  1178.90,   -89.00,  -862.00,  1351.40,   110.90},
  716. { "Roca Escalante",               2237.40,  2202.70,   -89.00,  2536.40,  2542.50,   110.90},
  717. { "Roca Escalante",               2536.40,  2202.70,   -89.00,  2625.10,  2442.50,   110.90},
  718. { "Rockshore East",               2537.30,   676.50,   -89.00,  2902.30,   943.20,   110.90},
  719. { "Rockshore West",               1997.20,   596.30,   -89.00,  2377.30,   823.20,   110.90},
  720. { "Rockshore West",               2377.30,   596.30,   -89.00,  2537.30,   788.80,   110.90},
  721. { "Rodeo",                          72.60, -1684.60,   -89.00,   225.10, -1544.10,   110.90},
  722. { "Rodeo",                          72.60, -1544.10,   -89.00,   225.10, -1404.90,   110.90},
  723. { "Rodeo",                         225.10, -1684.60,   -89.00,   312.80, -1501.90,   110.90},
  724. { "Rodeo",                         225.10, -1501.90,   -89.00,   334.50, -1369.60,   110.90},
  725. { "Rodeo",                         334.50, -1501.90,   -89.00,   422.60, -1406.00,   110.90},
  726. { "Rodeo",                         312.80, -1684.60,   -89.00,   422.60, -1501.90,   110.90},
  727. { "Rodeo",                         422.60, -1684.60,   -89.00,   558.00, -1570.20,   110.90},
  728. { "Rodeo",                         558.00, -1684.60,   -89.00,   647.50, -1384.90,   110.90},
  729. { "Rodeo",                         466.20, -1570.20,   -89.00,   558.00, -1385.00,   110.90},
  730. { "Rodeo",                         422.60, -1570.20,   -89.00,   466.20, -1406.00,   110.90},
  731. { "Rodeo",                         466.20, -1385.00,   -89.00,   647.50, -1235.00,   110.90},
  732. { "Rodeo",                         334.50, -1406.00,   -89.00,   466.20, -1292.00,   110.90},
  733. { "Royal Casino",                 2087.30,  1383.20,   -89.00,  2437.30,  1543.20,   110.90},
  734. { "San Andreas Sound",            2450.30,   385.50,  -100.00,  2759.20,   562.30,   200.00},
  735. { "Santa Flora",                 -2741.00,   458.40,    -7.60, -2533.00,   793.40,   200.00},
  736. { "Santa Maria Beach",             342.60, -2173.20,   -89.00,   647.70, -1684.60,   110.90},
  737. { "Santa Maria Beach",              72.60, -2173.20,   -89.00,   342.60, -1684.60,   110.90},
  738. { "Shady Cabin",                 -1632.80, -2263.40,    -3.00, -1601.30, -2231.70,   200.00},
  739. { "Shady Creeks",                -1820.60, -2643.60,    -8.00, -1226.70, -1771.60,   200.00},
  740. { "Shady Creeks",                -2030.10, -2174.80,    -6.10, -1820.60, -1771.60,   200.00},
  741. { "Sobell Rail Yards",            2749.90,  1548.90,   -89.00,  2923.30,  1937.20,   110.90},
  742. { "Spinybed",                     2121.40,  2663.10,   -89.00,  2498.20,  2861.50,   110.90},
  743. { "Starfish Casino",              2437.30,  1783.20,   -89.00,  2685.10,  2012.10,   110.90},
  744. { "Starfish Casino",              2437.30,  1858.10,   -39.00,  2495.00,  1970.80,    60.90},
  745. { "Starfish Casino",              2162.30,  1883.20,   -89.00,  2437.30,  2012.10,   110.90},
  746. { "Temple",                       1252.30, -1130.80,   -89.00,  1378.30, -1026.30,   110.90},
  747. { "Temple",                       1252.30, -1026.30,   -89.00,  1391.00,  -926.90,   110.90},
  748. { "Temple",                       1252.30,  -926.90,   -89.00,  1357.00,  -910.10,   110.90},
  749. { "Temple",                        952.60, -1130.80,   -89.00,  1096.40,  -937.10,   110.90},
  750. { "Temple",                       1096.40, -1130.80,   -89.00,  1252.30, -1026.30,   110.90},
  751. { "Temple",                       1096.40, -1026.30,   -89.00,  1252.30,  -910.10,   110.90},
  752. { "The Camel's Toe",              2087.30,  1203.20,   -89.00,  2640.40,  1383.20,   110.90},
  753. { "The Clown's Pocket",           2162.30,  1783.20,   -89.00,  2437.30,  1883.20,   110.90},
  754. { "The Emerald Isle",             2011.90,  2202.70,   -89.00,  2237.40,  2462.20,   110.90},
  755. { "The Farm",                    -1209.60, -1317.10,   114.90,  -908.10,  -787.30,   251.90},
  756. { "The Four Dragons Casino",      1817.30,   863.20,   -89.00,  2027.30,  1083.20,   110.90},
  757. { "The High Roller",              1817.30,  1283.20,   -89.00,  2027.30,  1469.20,   110.90},
  758. { "The Mako Span",                1664.60,   401.70,     0.00,  1785.10,   567.20,   200.00},
  759. { "The Panopticon",               -947.90,  -304.30,    -1.10,  -319.60,   327.00,   200.00},
  760. { "The Pink Swan",                1817.30,  1083.20,   -89.00,  2027.30,  1283.20,   110.90},
  761. { "The Sherman Dam",              -968.70,  1929.40,    -3.00,  -490.00,  2155.20,   200.00},
  762. { "The Strip",                    2027.40,   863.20,   -89.00,  2087.30,  1703.20,   110.90},
  763. { "The Strip",                    2106.70,  1863.20,   -89.00,  2162.30,  2202.70,   110.90},
  764. { "The Strip",                    2027.40,  1783.20,   -89.00,  2162.30,  1863.20,   110.90},
  765. { "The Strip",                    2027.40,  1703.20,   -89.00,  2137.40,  1783.20,   110.90},
  766. { "The Visage",                   1817.30,  1863.20,   -89.00,  2106.70,  2011.80,   110.90},
  767. { "The Visage",                   1817.30,  1703.20,   -89.00,  2027.40,  1863.20,   110.90},
  768. { "Unity Station",                1692.60, -1971.80,   -20.40,  1812.60, -1932.80,    79.50},
  769. { "Valle Ocultado",               -936.60,  2611.40,     2.00,  -715.90,  2847.90,   200.00},
  770. { "Verdant Bluffs",                930.20, -2488.40,   -89.00,  1249.60, -2006.70,   110.90},
  771. { "Verdant Bluffs",               1073.20, -2006.70,   -89.00,  1249.60, -1842.20,   110.90},
  772. { "Verdant Bluffs",               1249.60, -2179.20,   -89.00,  1692.60, -1842.20,   110.90},
  773. { "Verdant Meadows",                37.00,  2339.10,    -3.00,   435.90,  2677.90,   200.00},
  774. { "Verona Beach",                  647.70, -2173.20,   -89.00,   930.20, -1804.20,   110.90},
  775. { "Verona Beach",                  930.20, -2006.70,   -89.00,  1073.20, -1804.20,   110.90},
  776. { "Verona Beach",                  851.40, -1804.20,   -89.00,  1046.10, -1577.50,   110.90},
  777. { "Verona Beach",                 1161.50, -1722.20,   -89.00,  1323.90, -1577.50,   110.90},
  778. { "Verona Beach",                 1046.10, -1722.20,   -89.00,  1161.50, -1577.50,   110.90},
  779. { "Vinewood",                      787.40, -1310.20,   -89.00,   952.60, -1130.80,   110.90},
  780. { "Vinewood",                      787.40, -1130.80,   -89.00,   952.60,  -954.60,   110.90},
  781. { "Vinewood",                      647.50, -1227.20,   -89.00,   787.40, -1118.20,   110.90},
  782. { "Vinewood",                      647.70, -1416.20,   -89.00,   787.40, -1227.20,   110.90},
  783. { "Whitewood Estates",             883.30,  1726.20,   -89.00,  1098.30,  2507.20,   110.90},
  784. { "Whitewood Estates",            1098.30,  1726.20,   -89.00,  1197.30,  2243.20,   110.90},
  785. { "Willowfield",                  1970.60, -2179.20,   -89.00,  2089.00, -1852.80,   110.90},
  786. { "Willowfield",                  2089.00, -2235.80,   -89.00,  2201.80, -1989.90,   110.90},
  787. { "Willowfield",                  2089.00, -1989.90,   -89.00,  2324.00, -1852.80,   110.90},
  788. { "Willowfield",                  2201.80, -2095.00,   -89.00,  2324.00, -1989.90,   110.90},
  789. { "Willowfield",                  2541.70, -1941.40,   -89.00,  2703.50, -1852.80,   110.90},
  790. { "Willowfield",                  2324.00, -2059.20,   -89.00,  2541.70, -1852.80,   110.90},
  791. { "Willowfield",                  2541.70, -2059.20,   -89.00,  2703.50, -1941.40,   110.90},
  792. { "Yellow Bell Station",          1377.40,  2600.40,   -21.90,  1492.40,  2687.30,    78.00},
  793. { "DANGER AREA 69",               -76.40,   1640.00,   -31.90,   411.90,  2104.50,   110.90}
  794. };
  795. //--
  796. public OnGameModeInit( )
  797. {
  798.     for( new gz = 0; gz < sizeof( GangZones ); gz ++ )
  799.     {
  800.         GangZones[ gz ][ gzID ] = GangZoneCreate( GangZones[ gz ][ gzPos ][ 0 ], GangZones[ gz ][ gzPos ][ 1 ], GangZones[ gz ][ gzPos ][ 2 ], GangZones[ gz ][ gzPos ][ 3 ]);
  801.     }
  802. }
  803. //--
  804. public update_zarea() {
  805.  new line1[10];
  806.  new line2[10];
  807.  
  808.  for(new i=0; i<MAX_PLAYERS_; i++) {
  809.   if(IsPlayerConnected(i) && zareaupdates[i] == 1) {
  810.    if(IsPlayerInzarea(i,player_zarea[i])) {  }
  811.    else {
  812.  
  813.     new player_zarea_before;
  814.     player_zarea_before = player_zarea[i];
  815.     player_zarea[i] = -1;
  816.  
  817.  
  818.     for(new j=0; j<sizeof(zarea);j++) {
  819.      if(IsPlayerInzarea(i,j) && player_zarea[i] == -1) {
  820.  
  821.       if(player_zarea_before == -1) GameTextForPlayer(i,zarea[j][zarea_name],1500,1);
  822.       else  if(strcmp(zarea[j][zarea_name],zarea[player_zarea_before][zarea_name],true) != 0) GameTextForPlayer(i,zarea[j][zarea_name],1500,1);
  823.  
  824.       player_zarea[i] = j;
  825.       format(line1,10,"p%dzarea",i);
  826.       format(line2,10,"%d",j);
  827.       PropertySet(line1,line2);
  828.  
  829.  
  830.      }
  831.     }
  832.  
  833.  
  834.  
  835.     if(player_zarea[i] == -1) player_zarea[i] = player_zarea_before;
  836.    }
  837.  
  838.  
  839.   }
  840.  }
  841.  
  842. }
  843.  
  844. IsPlayerInzarea(playerid, zareaid) {
  845.  if(zareaid == -1) return 0;
  846.  new Float:x, Float:y, Float:z;
  847.  GetPlayerPos(playerid,x,y,z);
  848.  if(x >= zarea[zareaid][zarea_minx] && x < zarea[zareaid][zarea_maxx]
  849.  && y >= zarea[zareaid][zarea_miny] && y < zarea[zareaid][zarea_maxy]
  850.  && z >= zarea[zareaid][zarea_minz] && z < zarea[zareaid][zarea_maxz]
  851.  && z < 900.0) return 1;
  852.  return 0;
  853. }
  854. public update_zones() {
  855.  new line1[10];
  856.  new line2[10];
  857.  
  858.  for(new i=0; i<MAX_PLAYERS_; i++) {
  859.   if(IsPlayerConnected(i) && zoneupdates[i] == 1) {
  860.    if(IsPlayerInZone(i,player_zone[i])) {  }
  861.    else {
  862.  
  863.     new player_zone_before;
  864.     player_zone_before = player_zone[i];
  865.     player_zone[i] = -1;
  866.  
  867.  
  868.     for(new j=0; j<sizeof(zones);j++) {
  869.      if(IsPlayerInZone(i,j) && player_zone[i] == -1) {
  870.  
  871.       if(player_zone_before == -1) GameTextForPlayer(i,zones[j][zone_name],1500,1);
  872.       else  if(strcmp(zones[j][zone_name],zones[player_zone_before][zone_name],true) != 0) GameTextForPlayer(i,zones[j][zone_name],1500,1);
  873.  
  874.       player_zone[i] = j;
  875.       format(line1,10,"p%dzone",i);
  876.       format(line2,10,"%d",j);
  877.       PropertySet(line1,line2);
  878.  
  879.  
  880.      }
  881.     }
  882.  
  883.  
  884.  
  885.     if(player_zone[i] == -1) player_zone[i] = player_zone_before;
  886.    }
  887.  
  888.  
  889.   }
  890.  }
  891.  
  892. }
  893.  
  894. IsPlayerInZone(playerid, zoneid) {
  895.  if(zoneid == -1) return 0;
  896.  new Float:x, Float:y, Float:z;
  897.  GetPlayerPos(playerid,x,y,z);
  898.  if(x >= zones[zoneid][zone_minx] && x < zones[zoneid][zone_maxx]
  899.  && y >= zones[zoneid][zone_miny] && y < zones[zoneid][zone_maxy]
  900.  && z >= zones[zoneid][zone_minz] && z < zones[zoneid][zone_maxz]
  901.  && z < 900.0) return 1;
  902.  return 0;
  903. }
  904. public OnFilterScriptInit() {
  905.     print("\n  |--c-middia`s loaction script");
  906.     print("\n  |massive thanks credits to ");
  907.     print("  |--http://www.mabako.net/\n");
  908. }
  909. public OnPlayerConnect(playerid) {
  910.     zareaupdates[playerid] = 0;
  911.     player_zarea[playerid] = -1;
  912.     zoneupdates[playerid] = 0;
  913.     player_zone[playerid] = -1;
  914.     return 1;
  915. }
  916. public OnPlayerDeath(playerid,killerid,reason) {
  917.     zareaupdates[playerid] = 0;
  918.     player_zarea[playerid] = -1;
  919.     zoneupdates[playerid] = 0;
  920.     player_zone[playerid] = -1;
  921.     return 1;
  922. }
  923. public OnPlayerDisconnect(playerid) {
  924.     zareaupdates[playerid] = 0;
  925.     player_zarea[playerid] = -1;
  926.     zoneupdates[playerid] = 0;
  927.     player_zone[playerid] = -1;
  928.     return 1;
  929. }
  930. public OnPlayerSpawn(playerid) {
  931.     for( new gz = 0; gz < sizeof( GangZones ); gz ++ )
  932.     {
  933.         GangZoneShowForPlayer( playerid, GangZones[ gz ][ gzID ], GangZones[ gz ][ gzColor ]);
  934.     }
  935.     zareaupdates[playerid] = 1;
  936.     player_zarea[playerid] = -1;
  937.     zoneupdates[playerid] = 1;
  938.     player_zone[playerid] = -1;
  939.     if(!zareaupdate) zareaupdate = SetTimer("update_zarea",1000,4);
  940.     if(!zoneupdate) zoneupdate = SetTimer("update_zones",1000,4);
  941.     return 1;
  942. }
  943. /*
  944. public GetPlayerzarea(playerid) {
  945.  new line[10];
  946.  format(line,10,"p%dzarea",playerid);
  947.  new zareaid = strval(PropertyGet(line));
  948.  return zareaid;
  949. }
  950. */
  951. public OnPlayerCommandText(playerid,cmdtext[]) {
  952.  if(strcmp(cmdtext,"/pfind ",true,7) == 0 && strlen(cmdtext) > 7) {
  953.   new target, current_zarea, current_zone;
  954.   target = strval(cmdtext[7]);
  955.   current_zarea = player_zarea[target];
  956.   current_zone = player_zone[target];
  957. //  printf("D1: %d %d",target,current_zarea);
  958.   if(current_zone != -1 && current_zarea != -1 && IsPlayerConnected(target)) {
  959.    new playername[MAX_PLAYER_NAME],message2[256];
  960.    GetPlayerName(target,playername,MAX_PLAYER_NAME);
  961.    format(message2,sizeof(message2),"> %s's current location: %s, %s",playername,zones[current_zone][zone_name],zarea[current_zarea][zarea_name]);
  962.    SendClientMessage(playerid,0xFFFF0000,message2);
  963. //   printf("D2: %s %s",playername,message);
  964.   } else {
  965.    SendClientMessage(playerid,0xFFFF0000,"*** No Information found");
  966.   }
  967.   return 1;
  968.  } else if(strcmp(cmdtext,"/pfind",true,6) == 0 && strlen(cmdtext) <= 7) {
  969.   SendClientMessage(playerid,0xFFFF0000,"USAGE: /find [playerid");
  970.   SendClientMessage(playerid,0xFFFF0000,"Shows a player's location");
  971.   return 1;
  972.  }
  973.  return 0;
  974. }
Advertisement
Add Comment
Please, Sign In to add comment