Advertisement
Guest User

dw_veh

a guest
Jan 20th, 2013
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 48.72 KB | None | 0 0
  1. new strplaca[MAX_VEHICLES][33];
  2. new Float:Cord[4];
  3. new carid[MAX_PLAYERS];
  4. new bool:estado;
  5.  
  6. public OnPlayerConnect(playerid) {
  7.     carid[playerid] = -1;
  8.     return CallLocalFunction("D_OnPlayerConnect", "i", playerid);
  9. }
  10.  
  11. #define OnPlayerConnect D_OnPlayerConnect
  12. forward D_OnPlayerConnect(playerid);
  13.  
  14. public OnVehicleSpawn(vehicleid) {
  15.     SetVehiclePos(vehicleid, Cord[0], Cord[1], Cord[2]); SetVehicleZAngle(vehicleid, Cord[3]); SetVehicleNumberPlate(vehicleid, strplaca[vehicleid]);
  16.     return CallLocalFunction("D_OnVehicleSpawn", "i", vehicleid);
  17. }
  18.  
  19. #define OnVehicleSpawn D_OnVehicleSpawn
  20. forward D_OnVehicleSpawn(vehicleid);
  21.  
  22. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
  23.     if(estado == true) {
  24.         if(!ispassenger) SetTimerEx("InfoVehicle", 6000, false, "ii", playerid, vehicleid);
  25.     }
  26.     return CallLocalFunction("D_OnPlayerEnterVehicle", "iii", playerid, vehicleid, ispassenger);
  27. }
  28.  
  29. #define OnPlayerEnterVehicle D_OnPlayerEnterVehicle
  30. forward D_OnPlayerEnterVehicle(playerid, vehicleid, ispassenger);
  31.  
  32. public OnPlayerExitVehicle(playerid, vehicleid) {
  33.     if(estado == true) {
  34.         if((carid[playerid] != -1) && (!IsPlayerUnderwater(playerid))) GetVehiclePos(vehicleid, Cord[0], Cord[1], Cord[2]); GetVehicleZAngle(playerid, Cord[3]);
  35.     } else { carid[playerid] = -1; }
  36.     return CallLocalFunction("D_OnPlayerExitVehicle", "ii", playerid, vehicleid);
  37. }
  38.  
  39. #define OnPlayerExitVehicle D_OnPlayerExitVehicle
  40. forward D_OnPlayerExitVehicle(playerid, vehicleid);
  41.  
  42. InfoVehicle(playerid, vehicleid); public InfoVehicle(playerid, vehicleid) {
  43.     if( (IsPlayerInVehicle(playerid, vehicleid)) && (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) ) carid[playerid] = vehicleid;
  44.     return 1;
  45. }
  46.  
  47. stock EnableCarSpawn() {
  48.     estado = true;
  49.     return 1;
  50. }
  51.  
  52. stock DisableCarSpawn() {
  53.     estado = false;
  54.     return 1;
  55. }
  56.  
  57. stock WriteVehiclePlate(vehicleid, string[]) {
  58.     if(strlen(string) > 32) return 0;
  59.     format(strplaca[vehicleid], 33, string);
  60.     SetVehicleToRespawn(vehicleid);
  61.     return 1;
  62. }
  63.  
  64. #define DEFAULT 0
  65. #define VEHID 1
  66.  
  67. stock IsVehicleOccupied(vehicleid, return_ = DEFAULT) {
  68.     new bool:ocupado = false;
  69.     for(new i; i < MAX_PLAYERS; i++) {
  70.         if((IsPlayerInVehicle(i, vehicleid)) && (GetPlayerState(i) == PLAYER_STATE_DRIVER)) {
  71.             ocupado = true;
  72.             break;
  73.         }
  74.         if((return_ == DEFAULT) && (ocupado == true)) return true;
  75.         else if((return_ == VEHID) return i;
  76.     }
  77.     return false;
  78. }
  79.  
  80. stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
  81. {
  82.         new Float:xx, Float:yy, Float:zz;
  83.         GetPlayerPos(playerid, xx, yy, zz);
  84.         if(xx > minx && xx < maxx && yy > miny && yy < maxy) return 1;
  85.         return 0;
  86. }
  87.  
  88. stock IsPlayerUnderwater(playerid)// retirado de BocianJD - Autores: Sacky, Jan "DracoBlue" Schütze, Alex "Y_Less" Cole - http://pastebin.com/t2chEUMZ
  89. {
  90.         new Float:x, Float:y, Float:z;
  91.         GetPlayerPos(playerid, x, y, z);
  92.         if(IsPlayerInArea(playerid, -1584, -1360, -1826, -1642) && z <= -1) return 1;
  93.         if(IsPlayerInArea(playerid, -3000, -2832, 354, 2942) && z <= -1) return 1;
  94.         if(IsPlayerInArea(playerid, -2832, -2704, 1296, 2192) && z <= -1) return 1;
  95.         if(IsPlayerInArea(playerid, -2704, -2240, 1360, 2224) && z <= -1) return 1;
  96.         if(IsPlayerInArea(playerid, -2240, -2000, 1432, 2224) && z <= -1) return 1;
  97.         if(IsPlayerInArea(playerid, -2064, -2000, 1312, 1432) && z <= -1) return 1;
  98.         if(IsPlayerInArea(playerid, -2000, -1712, 1392, 1792) && z <= -1) return 1;
  99.         if(IsPlayerInArea(playerid, -2000, -1724, 1792, 2016) && z <= -1) return 1;
  100.         if(IsPlayerInArea(playerid, -2000, -1836, 2016, 2176) && z <= -1) return 1;
  101.         if(IsPlayerInArea(playerid, -2000, -1920, 2176, 2224) && z <= -1) return 1;
  102.         if(IsPlayerInArea(playerid, -2208, -2000, 2224, 2432) && z <= -1) return 1;
  103.         if(IsPlayerInArea(playerid, -2208, -2000, 2432, 2576) && z <= -1) return 1;
  104.         if(IsPlayerInArea(playerid, -2352, -2208, 2448, 2576) && z <= -1) return 1;
  105.         if(IsPlayerInArea(playerid, -2312, -2208, 2344, 2448) && z <= -1) return 1;
  106.         if(IsPlayerInArea(playerid, -1712, -1600, 1360, 1792) && z <= -1) return 1;
  107.         if(IsPlayerInArea(playerid, -1664, -1600, 1280, 1360) && z <= -1) return 1;
  108.         if(IsPlayerInArea(playerid, -1600, -1440, 1280, 1696) && z <= -1) return 1;
  109.         if(IsPlayerInArea(playerid, -1600, -1488, 1696, 1744) && z <= -1) return 1;
  110.         if(IsPlayerInArea(playerid, -1440, -1232, 1440, 1696) && z <= -1) return 1;
  111.         if(IsPlayerInArea(playerid, -1232, -1136, 1440, 1616) && z <= -1) return 1;
  112.         if(IsPlayerInArea(playerid, -1440, -1136, 1280, 1440) && z <= -1) return 1;
  113.         if(IsPlayerInArea(playerid, -1136, -1104, 1248, 1424) && z <= -1) return 1;
  114.         if(IsPlayerInArea(playerid, -1520, -1104, 1104, 1248) && z <= -1) return 1;
  115.         if(IsPlayerInArea(playerid, -1520, -1136, 1248, 1280) && z <= -1) return 1;
  116.         if(IsPlayerInArea(playerid, -1600, -1520, 1200, 1280) && z <= -1) return 1;
  117.         if(IsPlayerInArea(playerid, -1104, -932, 944, 1136) && z <= -1) return 1;
  118.         if(IsPlayerInArea(playerid, -1424, -1104, 944, 1104) && z <= -1) return 1;
  119.         if(IsPlayerInArea(playerid, -1520, -1424, 1008, 1104) && z <= -1) return 1;
  120.         if(IsPlayerInArea(playerid, -1424, -896, 784, 944) && z <= -1) return 1;
  121.         if(IsPlayerInArea(playerid, -1488, -896, 560, 784) && z <= -1) return 1;
  122.         if(IsPlayerInArea(playerid, -1536, -1488, 560, 672) && z <= -1) return 1;
  123.         if(IsPlayerInArea(playerid, -896, -768, 208, 732) && z <= -1) return 1;
  124.         if(IsPlayerInArea(playerid, -1600, -896, 208, 560) && z <= -1) return 1;
  125.         if(IsPlayerInArea(playerid, -992, -912, -144, 208) && z <= -1) return 1;
  126.         if(IsPlayerInArea(playerid, -1748, -1180, -816, -592) && z <= -1) return 1;
  127.         if(IsPlayerInArea(playerid, -1458, -1054, -592, -432) && z <= -1) return 1;
  128.         if(IsPlayerInArea(playerid, -3000, -2880, -1186, -822) && z <= -1) return 1;
  129.         if(IsPlayerInArea(playerid, -2880, -2768, -1168, -896) && z <= -1) return 1;
  130.         if(IsPlayerInArea(playerid, -2768, -2656, -1106, -830) && z <= -1) return 1;
  131.         if(IsPlayerInArea(playerid, -2656, -2512, -1024, -816) && z <= -1) return 1;
  132.         if(IsPlayerInArea(playerid, -2512, -2400, -976, -816) && z <= -1) return 1;
  133.         if(IsPlayerInArea(playerid, -2400, -2256, -1056, -864) && z <= -1) return 1;
  134.         if(IsPlayerInArea(playerid, -2256, -2144, -1198, -950) && z <= -1) return 1;
  135.         if(IsPlayerInArea(playerid, -2144, -2000, -1408, -1072) && z <= -1) return 1;
  136.         if(IsPlayerInArea(playerid, -2000, -1856, -1536, -1280) && z <= -1) return 1;
  137.         if(IsPlayerInArea(playerid, -1856, -1728, -1648, -1440) && z <= -1) return 1;
  138.         if(IsPlayerInArea(playerid, -1728, -1584, -1728, -1520) && z <= -1) return 1;
  139.         if(IsPlayerInArea(playerid, -1360, -1216, -2052, -1696) && z <= -1) return 1;
  140.         if(IsPlayerInArea(playerid, -1440, -1360, -2110, -1950) && z <= -1) return 1;
  141.         if(IsPlayerInArea(playerid, -1484, -1440, -2180, -2036) && z <= -1) return 1;
  142.         if(IsPlayerInArea(playerid, -1572, -1484, -2352, -2096) && z <= -1) return 1;
  143.         if(IsPlayerInArea(playerid, -1216, -1104, -2208, -1864) && z <= -1) return 1;
  144.         if(IsPlayerInArea(playerid, -1232, -1120, -2304, -2208) && z <= -1) return 1;
  145.         if(IsPlayerInArea(playerid, -1270, -1178, -2480, -2304) && z <= -1) return 1;
  146.         if(IsPlayerInArea(playerid, -1260, -1188, -2560, -2480) && z <= -1) return 1;
  147.         if(IsPlayerInArea(playerid, -1262, -1146, -2640, -2560) && z <= -1) return 1;
  148.         if(IsPlayerInArea(playerid, -1216, -1080, -2752, -2640) && z <= -1) return 1;
  149.         if(IsPlayerInArea(playerid, -1200, -928, -2896, -2752) && z <= -1) return 1;
  150.         if(IsPlayerInArea(playerid, -2016, -1520, -3000, -2704) && z <= -1) return 1;
  151.         if(IsPlayerInArea(playerid, -1520, -1376, -3000, -2894) && z <= -1) return 1;
  152.         if(IsPlayerInArea(playerid, -2256, -2016, -3000, -2772) && z <= -1) return 1;
  153.         if(IsPlayerInArea(playerid, -2448, -2256, -3000, -2704) && z <= -1) return 1;
  154.         if(IsPlayerInArea(playerid, -3000, -2448, -3000, -2704) && z <= -1) return 1;
  155.         if(IsPlayerInArea(playerid, -3000, -2516, -2704, -2576) && z <= -1) return 1;
  156.         if(IsPlayerInArea(playerid, -3000, -2600, -2576, -2448) && z <= -1) return 1;
  157.         if(IsPlayerInArea(playerid, -3000, -2628, -2448, -2144) && z <= -1) return 1;
  158.         if(IsPlayerInArea(playerid, -3000, -2670, -2144, -2032) && z <= -1) return 1;
  159.         if(IsPlayerInArea(playerid, -3000, -2802, -2032, -1904) && z <= -1) return 1;
  160.         if(IsPlayerInArea(playerid, -3000, -2920, -1904, -1376) && z <= -1) return 1;
  161.         if(IsPlayerInArea(playerid, -3000, -2936, -1376, -1186) && z <= -1) return 1;
  162.         if(IsPlayerInArea(playerid, -768, -720, 208, 672) && z <= -1) return 1;
  163.         if(IsPlayerInArea(playerid, -720, -656, 256, 672) && z <= -1) return 1;
  164.         if(IsPlayerInArea(playerid, -656, -496, 276, 576) && z <= -1) return 1;
  165.         if(IsPlayerInArea(playerid, -496, -384, 298, 566) && z <= -1) return 1;
  166.         if(IsPlayerInArea(playerid, -384, -224, 254, 530) && z <= -1) return 1;
  167.         if(IsPlayerInArea(playerid, -224, -64, 212, 528) && z <= -1) return 1;
  168.         if(IsPlayerInArea(playerid, -64, 64, 140, 544) && z <= -1) return 1;
  169.         if(IsPlayerInArea(playerid, 64, 304, 140, 544) && z <= -1) return 1;
  170.         if(IsPlayerInArea(playerid, 120, 304, 544, 648) && z <= -1) return 1;
  171.         if(IsPlayerInArea(playerid, 304, 384, 164, 608) && z <= -1) return 1;
  172.         if(IsPlayerInArea(playerid, 384, 464, 222, 630) && z <= -1) return 1;
  173.         if(IsPlayerInArea(playerid, 464, 544, 304, 656) && z <= -1) return 1;
  174.         if(IsPlayerInArea(playerid, 544, 800, 362, 646) && z <= -1) return 1;
  175.         if(IsPlayerInArea(playerid, 800, 944, 432, 704) && z <= -1) return 1;
  176.         if(IsPlayerInArea(playerid, 944, 976, 480, 720) && z <= -1) return 1;
  177.         if(IsPlayerInArea(playerid, 976, 1040, 528, 704) && z <= -1) return 1;
  178.         if(IsPlayerInArea(playerid, 1040, 1280, 560, 672) && z <= -1) return 1;
  179.         if(IsPlayerInArea(playerid, 1280, 1472, 480, 640) && z <= -1) return 1;
  180.         if(IsPlayerInArea(playerid, 1472, 1616, 432, 640) && z <= -1) return 1;
  181.         if(IsPlayerInArea(playerid, 1616, 1824, 416, 608) && z <= -1) return 1;
  182.         if(IsPlayerInArea(playerid, 1824, 2160, 400, 576) && z <= -1) return 1;
  183.         if(IsPlayerInArea(playerid, 2160, 2432, 400, 512) && z <= -1) return 1;
  184.         if(IsPlayerInArea(playerid, 2432, 2560, 368, 544) && z <= -1) return 1;
  185.         if(IsPlayerInArea(playerid, 2560, 2720, 336, 576) && z <= -1) return 1;
  186.         if(IsPlayerInArea(playerid, 2720, 2816, 196, 560) && z <= -1) return 1;
  187.         if(IsPlayerInArea(playerid, 2816, 3000, 160, 576) && z <= -1) return 1;
  188.         if(IsPlayerInArea(playerid, 2860, 3000, -80, 160) && z <= -1) return 1;
  189.         if(IsPlayerInArea(playerid, -1376, -544, -3000, -2896) && z <= -1) return 1;
  190.         if(IsPlayerInArea(playerid, -928, -544, -2896, -2800) && z <= -1) return 1;
  191.         if(IsPlayerInArea(playerid, -544, -320, -3000, -2824) && z <= -1) return 1;
  192.         if(IsPlayerInArea(playerid, -320, -192, -3000, -2876) && z <= -1) return 1;
  193.         if(IsPlayerInArea(playerid, -192, 160, -3000, -2920) && z <= -1) return 1;
  194.         if(IsPlayerInArea(playerid, -128, 160, -2920, -2872) && z <= -1) return 1;
  195.         if(IsPlayerInArea(playerid, -60, 160, -2872, -2816) && z <= -1) return 1;
  196.         if(IsPlayerInArea(playerid, -4, 160, -2816, -2672) && z <= -1) return 1;
  197.         if(IsPlayerInArea(playerid, 40, 160, -2672, -2256) && z <= -1) return 1;
  198.         if(IsPlayerInArea(playerid, 16, 40, -2560, -2256) && z <= -1) return 1;
  199.         if(IsPlayerInArea(playerid, -32, 16, -2440, -2256) && z <= -1) return 1;
  200.         if(IsPlayerInArea(playerid, -32, 16, -2488, -2440) && z <= -1) return 1;
  201.         if(IsPlayerInArea(playerid, -96, -32, -2440, -2256) && z <= -1) return 1;
  202.         if(IsPlayerInArea(playerid, -168, -96, -2384, -2256) && z <= -1) return 1;
  203.         if(IsPlayerInArea(playerid, -224, 160, -2256, -2080) && z <= -1) return 1;
  204.         if(IsPlayerInArea(playerid, -248, 160, -2080, -1968) && z <= -1) return 1;
  205.         if(IsPlayerInArea(playerid, -280, -128, -1968, -1824) && z <= -1) return 1;
  206.         if(IsPlayerInArea(playerid, -264, -248, -2016, -1968) && z <= -1) return 1;
  207.         if(IsPlayerInArea(playerid, -264, -128, -1824, -1640) && z <= -1) return 1;
  208.         if(IsPlayerInArea(playerid, -128, 124, -1768, -1648) && z <= -1) return 1;
  209.         if(IsPlayerInArea(playerid, -128, 140, -1792, -1768) && z <= -1) return 1;
  210.         if(IsPlayerInArea(playerid, -128, 148, -1968, -1792) && z <= -1) return 1;
  211.         if(IsPlayerInArea(playerid, 160, 592, -2128, -1976) && z <= -1) return 1;
  212.         if(IsPlayerInArea(playerid, 480, 592, -1976, -1896) && z <= -1) return 1;
  213.         if(IsPlayerInArea(playerid, 352, 480, -1976, -1896) && z <= -1) return 1;
  214.         if(IsPlayerInArea(playerid, 232, 352, -1976, -1880) && z <= -1) return 1;
  215.         if(IsPlayerInArea(playerid, 160, 232, -1976, -1872) && z <= -1) return 1;
  216.         if(IsPlayerInArea(playerid, 160, 592, -2784, -2128) && z <= -1) return 1;
  217.         if(IsPlayerInArea(playerid, 160, 592, -3000, -2784) && z <= -1) return 1;
  218.         if(IsPlayerInArea(playerid, 352, 544, -1896, -1864) && z <= -1) return 1;
  219.         if(IsPlayerInArea(playerid, 592, 976, -2112, -1896) && z <= -1) return 1;
  220.         if(IsPlayerInArea(playerid, 736, 904, -1896, -1864) && z <= -1) return 1;
  221.         if(IsPlayerInArea(playerid, 704, 736, -1896, -1728) && z <= -1) return 1;
  222.         if(IsPlayerInArea(playerid, 736, 752, -1864, -1728) && z <= -1) return 1;
  223.         if(IsPlayerInArea(playerid, 688, 752, -1728, -1480) && z <= -1) return 1;
  224.         if(IsPlayerInArea(playerid, 592, 976, -2192, -2112) && z <= -1) return 1;
  225.         if(IsPlayerInArea(playerid, 592, 1008, -2328, -2192) && z <= -1) return 1;
  226.         if(IsPlayerInArea(playerid, 592, 1008, -3000, -2328) && z <= -1) return 1;
  227.         if(IsPlayerInArea(playerid, 1008, 1072, -3000, -2368) && z <= -1) return 1;
  228.         if(IsPlayerInArea(playerid, 1008, 1064, -2368, -2320) && z <= -1) return 1;
  229.         if(IsPlayerInArea(playerid, 1072, 1288, -2672, -2412) && z <= -1) return 1;
  230.         if(IsPlayerInArea(playerid, 1072, 1288, -2768, -2672) && z <= -1) return 1;
  231.         if(IsPlayerInArea(playerid, 1072, 1288, -3000, -2768) && z <= -1) return 1;
  232.         if(IsPlayerInArea(playerid, 1288, 1448, -3000, -2760) && z <= -1) return 1;
  233.         if(IsPlayerInArea(playerid, 1288, 1392, -2760, -2688) && z <= -1) return 1;
  234.         if(IsPlayerInArea(playerid, 1448, 1720, -3000, -2754) && z <= -1) return 1;
  235.         if(IsPlayerInArea(playerid, 1720, 2064, -3000, -2740) && z <= -1) return 1;
  236.         if(IsPlayerInArea(playerid, 2064, 2144, -3000, -2742) && z <= -1) return 1;
  237.         if(IsPlayerInArea(playerid, 2144, 2208, -3000, -2700) && z <= -1) return 1;
  238.         if(IsPlayerInArea(playerid, 2208, 2272, -3000, -2684) && z <= -1) return 1;
  239.         if(IsPlayerInArea(playerid, 2272, 2376, -3000, -2312) && z <= -1) return 1;
  240.         if(IsPlayerInArea(playerid, 2376, 2472, -2480, -2240) && z <= -1) return 1;
  241.         if(IsPlayerInArea(playerid, 2472, 2776, -2376, -2240) && z <= -1) return 1;
  242.         if(IsPlayerInArea(playerid, 2776, 2856, -2336, -2192) && z <= -1) return 1;
  243.         if(IsPlayerInArea(playerid, 2808, 3000, -2560, -2336) && z <= -1) return 1;
  244.         if(IsPlayerInArea(playerid, 2856, 3000, -2336, -2136) && z <= -1) return 1;
  245.         if(IsPlayerInArea(playerid, 2888, 3000, -2136, -1840) && z <= -1) return 1;
  246.         if(IsPlayerInArea(playerid, 2872, 2888, -1880, -1840) && z <= -1) return 1;
  247.         if(IsPlayerInArea(playerid, 2864, 3000, -1840, -1720) && z <= -1) return 1;
  248.         if(IsPlayerInArea(playerid, 2888, 3000, -1720, -1664) && z <= -1) return 1;
  249.         if(IsPlayerInArea(playerid, 2896, 3000, -1664, -1592) && z <= -1) return 1;
  250.         if(IsPlayerInArea(playerid, 2920, 3000, -1592, -1504) && z <= -1) return 1;
  251.         if(IsPlayerInArea(playerid, 2940, 3000, -1504, -1344) && z <= -1) return 1;
  252.         if(IsPlayerInArea(playerid, 2908, 3000, -1344, -1096) && z <= -1) return 1;
  253.         if(IsPlayerInArea(playerid, 2912, 3000, -1096, -800) && z <= -1) return 1;
  254.         if(IsPlayerInArea(playerid, 2918, 3000, -800, -472) && z <= -1) return 1;
  255.         if(IsPlayerInArea(playerid, 2872, 3000, -472, -376) && z <= -1) return 1;
  256.         if(IsPlayerInArea(playerid, 2912, 3000, -376, -80) && z <= -1) return 1;
  257.         if(IsPlayerInArea(playerid, 2864, 2912, -376, -80) && z <= -1) return 1;
  258.         if(IsPlayerInArea(playerid, 2560, 2680, -2560, -2456) && z <= -1) return 1;
  259.         if(IsPlayerInArea(playerid, -992, -848, -422, -238) && z <= -1) return 1;
  260.         if(IsPlayerInArea(playerid, -848, -512, -384, -256) && z <= -1) return 1;
  261.         if(IsPlayerInArea(playerid, -512, -320, -400, -272) && z <= -1) return 1;
  262.         if(IsPlayerInArea(playerid, -320, -208, -400, -304) && z <= -1) return 1;
  263.         if(IsPlayerInArea(playerid, -384, -100, -528, -460) && z <= -1) return 1;
  264.         if(IsPlayerInArea(playerid, -384, -64, -704, -528) && z <= -1) return 1;
  265.         if(IsPlayerInArea(playerid, -336, -80, -816, -704) && z <= -1) return 1;
  266.         if(IsPlayerInArea(playerid, -208, -48, -936, -816) && z <= -1) return 1;
  267.         if(IsPlayerInArea(playerid, -48, 144, -936, -874) && z <= -1) return 1;
  268.         if(IsPlayerInArea(playerid, 32, 128, -1024, -936) && z <= -1) return 1;
  269.         if(IsPlayerInArea(playerid, -16, 96, -1104, -1024) && z <= -1) return 1;
  270.         if(IsPlayerInArea(playerid, 0, 144, -1200, -1104) && z <= -1) return 1;
  271.         if(IsPlayerInArea(playerid, -16, 128, -1296, -1200) && z <= -1) return 1;
  272.         if(IsPlayerInArea(playerid, -16, 112, -1440, -1296) && z <= -1) return 1;
  273.         if(IsPlayerInArea(playerid, 0, 96, -1552, -1440) && z <= -1) return 1;
  274.         if(IsPlayerInArea(playerid, -128, 96, -1648, -1552) && z <= -1) return 1;
  275.         if(IsPlayerInArea(playerid, -64, 32, -672, -576) && z <= -1) return 1;
  276.         if(IsPlayerInArea(playerid, -64, 96, -576, -496) && z <= -1) return 1;
  277.         if(IsPlayerInArea(playerid, 16, 144, -496, -392) && z <= -1) return 1;
  278.         if(IsPlayerInArea(playerid, 144, 240, -448, -384) && z <= -1) return 1;
  279.         if(IsPlayerInArea(playerid, 240, 304, -432, -320) && z <= -1) return 1;
  280.         if(IsPlayerInArea(playerid, 304, 352, -384, -288) && z <= -1) return 1;
  281.         if(IsPlayerInArea(playerid, 352, 400, -332, -252) && z <= -1) return 1;
  282.         if(IsPlayerInArea(playerid, 400, 464, -298, -234) && z <= -1) return 1;
  283.         if(IsPlayerInArea(playerid, 464, 576, -288, -208) && z <= -1) return 1;
  284.         if(IsPlayerInArea(playerid, 576, 688, -272, -192) && z <= -1) return 1;
  285.         if(IsPlayerInArea(playerid, 688, 768, -256, -144) && z <= -1) return 1;
  286.         if(IsPlayerInArea(playerid, 768, 800, -212, -124) && z <= -1) return 1;
  287.         if(IsPlayerInArea(playerid, 800, 976, -180, -92) && z <= -1) return 1;
  288.         if(IsPlayerInArea(playerid, 976, 1200, -160, -64) && z <= -1) return 1;
  289.         if(IsPlayerInArea(playerid, 1200, 1264, -244, -108) && z <= -1) return 1;
  290.         if(IsPlayerInArea(playerid, 1264, 1344, -330, -158) && z <= -1) return 1;
  291.         if(IsPlayerInArea(playerid, 1344, 1456, -320, -208) && z <= -1) return 1;
  292.         if(IsPlayerInArea(playerid, 1456, 1520, -282, -198) && z <= -1) return 1;
  293.         if(IsPlayerInArea(playerid, 1520, 1648, -208, -80) && z <= -1) return 1;
  294.         if(IsPlayerInArea(playerid, 1568, 1648, -80, 16) && z <= -1) return 1;
  295.         if(IsPlayerInArea(playerid, 1648, 1792, -64, 16) && z <= -1) return 1;
  296.         if(IsPlayerInArea(playerid, 1792, 1888, -128, 0) && z <= -1) return 1;
  297.         if(IsPlayerInArea(playerid, 1888, 2016, -268, -20) && z <= -1) return 1;
  298.         if(IsPlayerInArea(playerid, 2016, 2144, -256, -16) && z <= -1) return 1;
  299.         if(IsPlayerInArea(playerid, 2144, 2224, -272, -96) && z <= -1) return 1;
  300.         if(IsPlayerInArea(playerid, 2224, 2288, -272, -144) && z <= -1) return 1;
  301.         if(IsPlayerInArea(playerid, 2048, 2144, -16, 112) && z <= -1) return 1;
  302.         if(IsPlayerInArea(playerid, 2096, 2224, 112, 240) && z <= -1) return 1;
  303.         if(IsPlayerInArea(playerid, 2098, 2242, 240, 400) && z <= -1) return 1;
  304.         if(IsPlayerInArea(playerid, 2160, 2432, 512, 576) && z <= -1) return 1;
  305.         if(IsPlayerInArea(playerid, 2432, 2560, 544, 592) && z <= -1) return 1;
  306.         if(IsPlayerInArea(playerid, 2560, 2720, 576, 608) && z <= -1) return 1;
  307.         if(IsPlayerInArea(playerid, 2720, 2816, 560, 608) && z <= -1) return 1;
  308.         if(IsPlayerInArea(playerid, 2816, 3000, 576, 752) && z <= -1) return 1;
  309.         if(IsPlayerInArea(playerid, -656, -496, 576, 672) && z <= -1) return 1;
  310.         if(IsPlayerInArea(playerid, -740, -484, 672, 784) && z <= -1) return 1;
  311.         if(IsPlayerInArea(playerid, -720, -384, 784, 1008) && z <= -1) return 1;
  312.         if(IsPlayerInArea(playerid, -640, -400, 1008, 1216) && z <= -1) return 1;
  313.         if(IsPlayerInArea(playerid, -880, -688, 1296, 1408) && z <= -1) return 1;
  314.         if(IsPlayerInArea(playerid, -688, -400, 1216, 1424) && z <= -1) return 1;
  315.         if(IsPlayerInArea(playerid, -672, -448, 1424, 1616) && z <= -1) return 1;
  316.         if(IsPlayerInArea(playerid, -832, -512, 1616, 1728) && z <= -1) return 1;
  317.         if(IsPlayerInArea(playerid, -984, -832, 1632, 1712) && z <= -1) return 1;
  318.         if(IsPlayerInArea(playerid, -832, -576, 1728, 2032) && z <= -1) return 1;
  319.         if(IsPlayerInArea(playerid, -1248, -1088, 2536, 2824) && z <= 39) return 1;
  320.         if(IsPlayerInArea(playerid, -1088, -1040, 2544, 2800) && z <= 39) return 1;
  321.         if(IsPlayerInArea(playerid, -1040, -832, 2544, 2760) && z <= 39) return 1;
  322.         if(IsPlayerInArea(playerid, -1088, -832, 2416, 2544) && z <= 39) return 1;
  323.         if(IsPlayerInArea(playerid, -1040, -864, 2304, 2416) && z <= 39) return 1;
  324.         if(IsPlayerInArea(playerid, -1024, -864, 2144, 2304) && z <= 39) return 1;
  325.         if(IsPlayerInArea(playerid, -1072, -1024, 2152, 2264) && z <= 39) return 1;
  326.         if(IsPlayerInArea(playerid, -1200, -1072, 2114, 2242) && z <= 39) return 1;
  327.         if(IsPlayerInArea(playerid, -976, -848, 2016, 2144) && z <= 39) return 1;
  328.         if(IsPlayerInArea(playerid, -864, -448, 2144, 2272) && z <= 39) return 1;
  329.         if(IsPlayerInArea(playerid, -700, -484, 2272, 2320) && z <= 39) return 1;
  330.         if(IsPlayerInArea(playerid, -608, -528, 2320, 2352) && z <= 39) return 1;
  331.         if(IsPlayerInArea(playerid, -848, -816, 2044, 2144) && z <= 39) return 1;
  332.         if(IsPlayerInArea(playerid, -816, -496, 2060, 2144) && z <= 39) return 1;
  333.         if(IsPlayerInArea(playerid, -604, -484, 2036, 2060) && z <= 39) return 1;
  334.         if(IsPlayerInArea(playerid, 2376, 3000, -3000, -2688) && z <= -1) return 1;
  335.         if(IsPlayerInArea(playerid, 2520, 3000, -2688, -2560) && z <= -1) return 1;
  336.         if(IsPlayerInArea(playerid, -1328, -1200, 2082, 2210) && z <= 39) return 1;
  337.         if(IsPlayerInArea(playerid, -1400, -1328, 2074, 2150) && z <= 39) return 1;
  338.         if(IsPlayerInArea(playerid, -1248, -992, -144, 208) && z <= -1) return 1;
  339.         if(IsPlayerInArea(playerid, -1176, -992, -432, -144) && z <= -1) return 1;
  340.         if(IsPlayerInArea(playerid, -1792, -1728, -592, -144) && z <= -1) return 1;
  341.         if(IsPlayerInArea(playerid, -1792, -1600, 170, 274) && z <= -1) return 1;
  342.         if(IsPlayerInArea(playerid, -1600, -1256, 168, 208) && z <= -1) return 1;
  343.         if(IsPlayerInArea(playerid, -1574, -1550, -44, 108) && z <= -1) return 1;
  344.         if(IsPlayerInArea(playerid, 1928, 2012, -1222, -1178) && z <= 17) return 1;
  345.         if(IsPlayerInArea(playerid, -464, -280, -1908, -1832) && z <= -1) return 1;
  346.         if(IsPlayerInArea(playerid, 2248, 2260, -1182, -1170) && z <= 22) return 1;
  347.         if(IsPlayerInArea(playerid, 2292, 2328, -1432, -1400) && z <= 21) return 1;
  348.         if(IsPlayerInArea(playerid, 1888, 2036, 1468, 1700) && z <= 7) return 1;
  349.         if(IsPlayerInArea(playerid, 2090, 2146, 1670, 1694) && z <= 8) return 1;
  350.         if(IsPlayerInArea(playerid, 2110, 2178, 1234, 1330) && z <= 6) return 1;
  351.         if(IsPlayerInArea(playerid, 2108, 2180, 1084, 1172) && z <= 6) return 1;
  352.         if(IsPlayerInArea(playerid, 2506, 2554, 1546, 1586) && z <= 7) return 1;
  353.         if(IsPlayerInArea(playerid, 1270, 1290, -812, -800) && z <= 85) return 1;
  354.         if(IsPlayerInArea(playerid, 1084, 1104, -684, -660) && z <= 111) return 1;
  355.         if(IsPlayerInArea(playerid, 502, 522, -1114, -1098) && z <= 77) return 1;
  356.         if(IsPlayerInArea(playerid, 214, 246, -1208, -1180) && z <= 73) return 1;
  357.         if(IsPlayerInArea(playerid, 218, 238, -1180, -1172) && z <= 73) return 1;
  358.         if(IsPlayerInArea(playerid, 178, 206, -1244, -1216) && z <= 76) return 1;
  359.         if(IsPlayerInArea(playerid, 1744, 1792, 2780, 2868) && z <= 7) return 1;
  360.         if(IsPlayerInArea(playerid, -2832, 3000, 2888, 3000) && z <= -1) return 1;
  361.         if(IsPlayerInArea(playerid, -2778, -2662, -522, -414) && z <= 1) return 1;
  362.         if(IsPlayerInArea(playerid, 1520, 1572, -252, -208) && z <= -1) return 1;
  363.         if(IsPlayerInArea(playerid, 2922, 3000, 752, 2888) && z <= -1) return 1;
  364.         if(IsPlayerInArea(playerid, -3000, -2910, -446, 354) && z <= -1) return 1;
  365.         if(IsPlayerInArea(playerid, -2434, -2294, 2224, 2340) && z <= -1) return 1;
  366.         if(IsPlayerInArea(playerid, -2294, -2208, 2224, 2312) && z <= -1) return 1;
  367.         if(IsPlayerInArea(playerid, 2058, 2110, 1868, 1964) && z <= 8) return 1;
  368.         if(IsPlayerInArea(playerid, -3000, -2832, 2942, 3000) && z <= -1) return 1;
  369.         if(IsPlayerInArea(playerid, -550, -494, 2004, 2036) && z <= 39) return 1;
  370.         if(IsPlayerInArea(playerid, -896, -776, 842, 954) && z <= -1) return 1;
  371.         if(IsPlayerInArea(playerid, -2240, -2088, 1336, 1432) && z <= -1) return 1;
  372.         if(IsPlayerInArea(playerid, -3000, -2930, -822, -446) && z <= -1) return 1;
  373.         if(IsPlayerInArea(playerid, -2660, -2520, 2224, 2264) && z <= -1) return 1;
  374.         if(IsPlayerInArea(playerid, -378, -138, -460, -400) && z <= -1) return 1;
  375.         if(IsPlayerInArea(playerid, 1836, 1888, 1468, 1568) && z <= 7) return 1;
  376.         if(IsPlayerInArea(playerid, 890, 902, -1106, -1098) && z <= 21) return 1;
  377.         if(IsPlayerInArea(playerid, 1202, 1278, -2414, -2334) && z <= 7) return 1;
  378.         if(IsPlayerInArea(playerid, 1072, 1128, -2412, -2372) && z <= -1) return 1;
  379.         if(IsPlayerInArea(playerid, -848, -664, -2082, -1866) && z <= 4) return 1;
  380.         if(IsPlayerInArea(playerid, -664, -464, -1924, -1864) && z <= 4) return 1;
  381.         if(IsPlayerInArea(playerid, -1484, -1424, 784, 840) && z <= -1) return 1;
  382.         if(IsPlayerInArea(playerid, -496, -432, 566, 642) && z <= -1) return 1;
  383.         if(IsPlayerInArea(playerid, 250, 818, 2808, 2888) && z <= -1) return 1;
  384.         if(IsPlayerInArea(playerid, 2502, 2670, -2240, -2120) && z <= -1) return 1;
  385.         if(IsPlayerInArea(playerid, 1270, 1290, -780, -768) && z <= 1081) return 1;
  386.         if(IsPlayerInArea(playerid, 88, 120, 544, 572) && z <= -1) return 1;
  387.         if(IsPlayerInArea(playerid, 1856, 1888, -202, -158) && z <= -1) return 1;
  388.         if(IsPlayerInArea(playerid, -2048, -2004, -962, -758) && z <= 29) return 1;
  389.         if(IsPlayerInArea(playerid, 2564, 2604, 2370, 2398) && z <= 15) return 1;
  390.         if(IsPlayerInArea(playerid, -2522, -2382, -310, -234) && z <= 34) return 1;
  391.         if(IsPlayerInArea(playerid, 2872, 2888, -2136, -2120) && z <= -1) return 1;
  392.         if(IsPlayerInArea(playerid, 2760, 2776, -2240, -2232) && z <= -1) return 1;
  393.         if(IsPlayerInArea(playerid, -2992, -2832, 1184, 2112) && z <= -1) return 1;
  394.         if(IsPlayerInArea(playerid, -2832, -2704, 1296, 2192) && z <= -1) return 1;
  395.         if(IsPlayerInArea(playerid, -2704, -2240, 1360, 2224) && z <= -1) return 1;
  396.         if(IsPlayerInArea(playerid, -2240, -2000, 1440, 2224) && z <= -1) return 1;
  397.         if(IsPlayerInArea(playerid, -2064, -2000, 1312, 1440) && z <= -1) return 1;
  398.         if(IsPlayerInArea(playerid, -2000, -1712, 1392, 1792) && z <= -1) return 1;
  399.         if(IsPlayerInArea(playerid, -2000, -1760, 1792, 2016) && z <= -1) return 1;
  400.         if(IsPlayerInArea(playerid, -2000, -1856, 2016, 2176) && z <= -1) return 1;
  401.         if(IsPlayerInArea(playerid, -2000, -1920, 2176, 2224) && z <= -1) return 1;
  402.         if(IsPlayerInArea(playerid, -2208, -2000, 2224, 2432) && z <= -1) return 1;
  403.         if(IsPlayerInArea(playerid, -2208, -2000, 2432, 2560) && z <= -1) return 1;
  404.         if(IsPlayerInArea(playerid, -2352, -2208, 2448, 2560) && z <= -1) return 1;
  405.         if(IsPlayerInArea(playerid, -2304, -2208, 2352, 2448) && z <= -1) return 1;
  406.         if(IsPlayerInArea(playerid, -1712, -1600, 1360, 1792) && z <= -1) return 1;
  407.         if(IsPlayerInArea(playerid, -1664, -1600, 1280, 1360) && z <= -1) return 1;
  408.         if(IsPlayerInArea(playerid, -1600, -1440, 1280, 1696) && z <= -1) return 1;
  409.         if(IsPlayerInArea(playerid, -1600, -1536, 1696, 1728) && z <= -1) return 1;
  410.         if(IsPlayerInArea(playerid, -1440, -1232, 1440, 1680) && z <= -1) return 1;
  411.         if(IsPlayerInArea(playerid, -1232, -1136, 1440, 1616) && z <= -1) return 1;
  412.         if(IsPlayerInArea(playerid, -1440, -1136, 1280, 1440) && z <= -1) return 1;
  413.         if(IsPlayerInArea(playerid, -1136, -1104, 1248, 1424) && z <= -1) return 1;
  414.         if(IsPlayerInArea(playerid, -1520, -1104, 1104, 1248) && z <= -1) return 1;
  415.         if(IsPlayerInArea(playerid, -1520, -1136, 1248, 1280) && z <= -1) return 1;
  416.         if(IsPlayerInArea(playerid, -1600, -1520, 1200, 1280) && z <= -1) return 1;
  417.         if(IsPlayerInArea(playerid, -1104, -960, 944, 1136) && z <= -1) return 1;
  418.         if(IsPlayerInArea(playerid, -1424, -1104, 944, 1104) && z <= -1) return 1;
  419.         if(IsPlayerInArea(playerid, -1520, -1424, 1008, 1104) && z <= -1) return 1;
  420.         if(IsPlayerInArea(playerid, -1424, -896, 784, 944) && z <= -1) return 1;
  421.         if(IsPlayerInArea(playerid, -1488, -896, 560, 784) && z <= -1) return 1;
  422.         if(IsPlayerInArea(playerid, -1536, -1488, 560, 672) && z <= -1) return 1;
  423.         if(IsPlayerInArea(playerid, -896, -768, 208, 720) && z <= -1) return 1;
  424.         if(IsPlayerInArea(playerid, -1600, -896, 208, 560) && z <= -1) return 1;
  425.         if(IsPlayerInArea(playerid, -992, -912, -144, 208) && z <= -1) return 1;
  426.         if(IsPlayerInArea(playerid, -1744, -1184, -816, -592) && z <= -1) return 1;
  427.         if(IsPlayerInArea(playerid, -1456, -1056, -592, -432) && z <= -1) return 1;
  428.         if(IsPlayerInArea(playerid, -3000, -2880, -1184, -816) && z <= -1) return 1;
  429.         if(IsPlayerInArea(playerid, -2880, -2768, -1168, -896) && z <= -1) return 1;
  430.         if(IsPlayerInArea(playerid, -2768, -2656, -1088, -848) && z <= -1) return 1;
  431.         if(IsPlayerInArea(playerid, -2656, -2512, -1024, -816) && z <= -1) return 1;
  432.         if(IsPlayerInArea(playerid, -2512, -2400, -976, -816) && z <= -1) return 1;
  433.         if(IsPlayerInArea(playerid, -2400, -2256, -1056, -864) && z <= -1) return 1;
  434.         if(IsPlayerInArea(playerid, -2256, -2144, -1184, -976) && z <= -1) return 1;
  435.         if(IsPlayerInArea(playerid, -2144, -2000, -1408, -1072) && z <= -1) return 1;
  436.         if(IsPlayerInArea(playerid, -2000, -1856, -1536, -1280) && z <= -1) return 1;
  437.         if(IsPlayerInArea(playerid, -1856, -1728, -1648, -1440) && z <= -1) return 1;
  438.         if(IsPlayerInArea(playerid, -1728, -1584, -1728, -1520) && z <= -1) return 1;
  439.         if(IsPlayerInArea(playerid, -1584, -1344, -1792, -1648) && z <= -1) return 1;
  440.         if(IsPlayerInArea(playerid, -1344, -1216, -2032, -1712) && z <= -1) return 1;
  441.         if(IsPlayerInArea(playerid, -1440, -1344, -2112, -1968) && z <= -1) return 1;
  442.         if(IsPlayerInArea(playerid, -1488, -1440, -2192, -2048) && z <= -1) return 1;
  443.         if(IsPlayerInArea(playerid, -1568, -1488, -2352, -2096) && z <= -1) return 1;
  444.         if(IsPlayerInArea(playerid, -1216, -1104, -2208, -1888) && z <= -1) return 1;
  445.         if(IsPlayerInArea(playerid, -1232, -1120, -2304, -2208) && z <= -1) return 1;
  446.         if(IsPlayerInArea(playerid, -1248, -1184, -2480, -2304) && z <= -1) return 1;
  447.         if(IsPlayerInArea(playerid, -1248, -1200, -2560, -2480) && z <= -1) return 1;
  448.         if(IsPlayerInArea(playerid, -1248, -1152, -2640, -2560) && z <= -1) return 1;
  449.         if(IsPlayerInArea(playerid, -1200, -1088, -2752, -2640) && z <= -1) return 1;
  450.         if(IsPlayerInArea(playerid, -1200, -928, -2896, -2752) && z <= -1) return 1;
  451.         if(IsPlayerInArea(playerid, -2016, -1520, -2976, -2704) && z <= -1) return 1;
  452.         if(IsPlayerInArea(playerid, -1520, -1376, -2976, -2896) && z <= -1) return 1;
  453.         if(IsPlayerInArea(playerid, -2256, -2016, -2992, -2768) && z <= -1) return 1;
  454.         if(IsPlayerInArea(playerid, -2448, -2256, -2992, -2704) && z <= -1) return 1;
  455.         if(IsPlayerInArea(playerid, -2912, -2448, -2992, -2704) && z <= -1) return 1;
  456.         if(IsPlayerInArea(playerid, -3000, -2516, -2704, -2576) && z <= -1) return 1;
  457.         if(IsPlayerInArea(playerid, -3000, -2600, -2576, -2448) && z <= -1) return 1;
  458.         if(IsPlayerInArea(playerid, -3000, -2628, -2448, -2144) && z <= -1) return 1;
  459.         if(IsPlayerInArea(playerid, -3000, -2670, -2144, -2032) && z <= -1) return 1;
  460.         if(IsPlayerInArea(playerid, -3000, -2836, -2032, -1904) && z <= -1) return 1;
  461.         if(IsPlayerInArea(playerid, -3000, -2924, -1904, -1376) && z <= -1) return 1;
  462.         if(IsPlayerInArea(playerid, -3000, -2960, -1376, -1184) && z <= -1) return 1;
  463.         if(IsPlayerInArea(playerid, -2960, -2936, -1244, -1184) && z <= -1) return 1;
  464.         if(IsPlayerInArea(playerid, -768, -720, 224, 656) && z <= -1) return 1;
  465.         if(IsPlayerInArea(playerid, -720, -656, 256, 672) && z <= -1) return 1;
  466.         if(IsPlayerInArea(playerid, -656, -496, 288, 576) && z <= -1) return 1;
  467.         if(IsPlayerInArea(playerid, -496, -384, 304, 560) && z <= -1) return 1;
  468.         if(IsPlayerInArea(playerid, -384, -224, 272, 512) && z <= -1) return 1;
  469.         if(IsPlayerInArea(playerid, -224, -64, 224, 480) && z <= -1) return 1;
  470.         if(IsPlayerInArea(playerid, -64, 64, 160, 496) && z <= -1) return 1;
  471.         if(IsPlayerInArea(playerid, 64, 304, 144, 544) && z <= -1) return 1;
  472.         if(IsPlayerInArea(playerid, 144, 304, 544, 608) && z <= -1) return 1;
  473.         if(IsPlayerInArea(playerid, 304, 384, 176, 608) && z <= -1) return 1;
  474.         if(IsPlayerInArea(playerid, 384, 464, 240, 624) && z <= -1) return 1;
  475.         if(IsPlayerInArea(playerid, 464, 544, 304, 624) && z <= -1) return 1;
  476.         if(IsPlayerInArea(playerid, 544, 800, 368, 640) && z <= -1) return 1;
  477.         if(IsPlayerInArea(playerid, 800, 944, 432, 672) && z <= -1) return 1;
  478.         if(IsPlayerInArea(playerid, 944, 976, 480, 688) && z <= -1) return 1;
  479.         if(IsPlayerInArea(playerid, 976, 1040, 528, 688) && z <= -1) return 1;
  480.         if(IsPlayerInArea(playerid, 1040, 1280, 560, 656) && z <= -1) return 1;
  481.         if(IsPlayerInArea(playerid, 1280, 1472, 480, 640) && z <= -1) return 1;
  482.         if(IsPlayerInArea(playerid, 1472, 1616, 432, 640) && z <= -1) return 1;
  483.         if(IsPlayerInArea(playerid, 1616, 1824, 416, 608) && z <= -1) return 1;
  484.         if(IsPlayerInArea(playerid, 1824, 2160, 400, 576) && z <= -1) return 1;
  485.         if(IsPlayerInArea(playerid, 2160, 2432, 400, 512) && z <= -1) return 1;
  486.         if(IsPlayerInArea(playerid, 2432, 2560, 368, 544) && z <= -1) return 1;
  487.         if(IsPlayerInArea(playerid, 2560, 2720, 336, 576) && z <= -1) return 1;
  488.         if(IsPlayerInArea(playerid, 2720, 2816, 304, 560) && z <= -1) return 1;
  489.         if(IsPlayerInArea(playerid, 2816, 2992, 160, 576) && z <= -1) return 1;
  490.         if(IsPlayerInArea(playerid, 2864, 2992, -80, 160) && z <= -1) return 1;
  491.         if(IsPlayerInArea(playerid, -1376, -544, -2976, -2896) && z <= -1) return 1;
  492.         if(IsPlayerInArea(playerid, -928, -544, -2896, -2800) && z <= -1) return 1;
  493.         if(IsPlayerInArea(playerid, -544, -320, -2976, -2840) && z <= -1) return 1;
  494.         if(IsPlayerInArea(playerid, -320, -192, -2976, -2880) && z <= -1) return 1;
  495.         if(IsPlayerInArea(playerid, -192, 160, -2976, -2920) && z <= -1) return 1;
  496.         if(IsPlayerInArea(playerid, -104, 160, -2920, -2872) && z <= -1) return 1;
  497.         if(IsPlayerInArea(playerid, -32, 160, -2872, -2816) && z <= -1) return 1;
  498.         if(IsPlayerInArea(playerid, 16, 160, -2816, -2672) && z <= -1) return 1;
  499.         if(IsPlayerInArea(playerid, 40, 160, -2672, -2256) && z <= -1) return 1;
  500.         if(IsPlayerInArea(playerid, 16, 40, -2536, -2256) && z <= -1) return 1;
  501.         if(IsPlayerInArea(playerid, -32, 16, -2440, -2256) && z <= -1) return 1;
  502.         if(IsPlayerInArea(playerid, -16, 16, -2488, -2440) && z <= -1) return 1;
  503.         if(IsPlayerInArea(playerid, -96, -32, -2424, -2256) && z <= -1) return 1;
  504.         if(IsPlayerInArea(playerid, -168, -96, -2384, -2256) && z <= -1) return 1;
  505.         if(IsPlayerInArea(playerid, -224, 160, -2256, -2080) && z <= -1) return 1;
  506.         if(IsPlayerInArea(playerid, -248, 160, -2080, -1968) && z <= -1) return 1;
  507.         if(IsPlayerInArea(playerid, -280, -128, -1968, -1824) && z <= -1) return 1;
  508.         if(IsPlayerInArea(playerid, -264, -248, -2016, -1968) && z <= -1) return 1;
  509.         if(IsPlayerInArea(playerid, -264, -128, -1824, -1648) && z <= -1) return 1;
  510.         if(IsPlayerInArea(playerid, -128, 112, -1768, -1648) && z <= -1) return 1;
  511.         if(IsPlayerInArea(playerid, -128, 120, -1792, -1768) && z <= -1) return 1;
  512.         if(IsPlayerInArea(playerid, -128, 136, -1968, -1792) && z <= -1) return 1;
  513.         if(IsPlayerInArea(playerid, 160, 592, -2128, -1976) && z <= -1) return 1;
  514.         if(IsPlayerInArea(playerid, 480, 592, -1976, -1896) && z <= -1) return 1;
  515.         if(IsPlayerInArea(playerid, 352, 480, -1976, -1896) && z <= -1) return 1;
  516.         if(IsPlayerInArea(playerid, 232, 352, -1976, -1880) && z <= -1) return 1;
  517.         if(IsPlayerInArea(playerid, 160, 232, -1976, -1872) && z <= -1) return 1;
  518.         if(IsPlayerInArea(playerid, 136, 160, -1968, -1872) && z <= -1) return 1;
  519.         if(IsPlayerInArea(playerid, 160, 592, -2784, -2128) && z <= -1) return 1;
  520.         if(IsPlayerInArea(playerid, 160, 592, -2976, -2784) && z <= -1) return 1;
  521.         if(IsPlayerInArea(playerid, 352, 544, -1896, -1864) && z <= -1) return 1;
  522.         if(IsPlayerInArea(playerid, 592, 976, -2112, -1896) && z <= -1) return 1;
  523.         if(IsPlayerInArea(playerid, 736, 904, -1896, -1864) && z <= -1) return 1;
  524.         if(IsPlayerInArea(playerid, 704, 736, -1888, -1728) && z <= -1) return 1;
  525.         if(IsPlayerInArea(playerid, 736, 752, -1808, -1728) && z <= -1) return 1;
  526.         if(IsPlayerInArea(playerid, 696, 744, -1728, -1480) && z <= -1) return 1;
  527.         if(IsPlayerInArea(playerid, 592, 976, -2192, -2112) && z <= -1) return 1;
  528.         if(IsPlayerInArea(playerid, 592, 1008, -2328, -2192) && z <= -1) return 1;
  529.         if(IsPlayerInArea(playerid, 592, 1008, -2976, -2328) && z <= -1) return 1;
  530.         if(IsPlayerInArea(playerid, 1008, 1072, -2976, -2368) && z <= -1) return 1;
  531.         if(IsPlayerInArea(playerid, 1008, 1064, -2368, -2328) && z <= -1) return 1;
  532.         if(IsPlayerInArea(playerid, 1072, 1288, -2672, -2376) && z <= -1) return 1;
  533.         if(IsPlayerInArea(playerid, 1072, 1288, -2768, -2672) && z <= -1) return 1;
  534.         if(IsPlayerInArea(playerid, 1072, 1288, -2976, -2768) && z <= -1) return 1;
  535.         if(IsPlayerInArea(playerid, 1288, 1448, -2976, -2760) && z <= -1) return 1;
  536.         if(IsPlayerInArea(playerid, 1288, 1392, -2760, -2688) && z <= -1) return 1;
  537.         if(IsPlayerInArea(playerid, 1448, 1720, -2976, -2760) && z <= -1) return 1;
  538.         if(IsPlayerInArea(playerid, 1720, 2064, -2976, -2760) && z <= -1) return 1;
  539.         if(IsPlayerInArea(playerid, 2064, 2144, -2976, -2744) && z <= -1) return 1;
  540.         if(IsPlayerInArea(playerid, 2144, 2208, -2976, -2704) && z <= -1) return 1;
  541.         if(IsPlayerInArea(playerid, 2208, 2272, -2976, -2696) && z <= -1) return 1;
  542.         if(IsPlayerInArea(playerid, 2272, 2376, -2976, -2312) && z <= -1) return 1;
  543.         if(IsPlayerInArea(playerid, 2376, 2472, -2464, -2240) && z <= -1) return 1;
  544.         if(IsPlayerInArea(playerid, 2472, 2776, -2376, -2240) && z <= -1) return 1;
  545.         if(IsPlayerInArea(playerid, 2776, 2856, -2336, -2192) && z <= -1) return 1;
  546.         if(IsPlayerInArea(playerid, 2808, 3000, -2560, -2336) && z <= -1) return 1;
  547.         if(IsPlayerInArea(playerid, 2856, 3000, -2336, -2136) && z <= -1) return 1;
  548.         if(IsPlayerInArea(playerid, 2888, 3000, -2136, -1840) && z <= -1) return 1;
  549.         if(IsPlayerInArea(playerid, 2872, 2888, -1880, -1840) && z <= -1) return 1;
  550.         if(IsPlayerInArea(playerid, 2864, 3000, -1840, -1720) && z <= -1) return 1;
  551.         if(IsPlayerInArea(playerid, 2888, 3000, -1720, -1664) && z <= -1) return 1;
  552.         if(IsPlayerInArea(playerid, 2896, 3000, -1664, -1592) && z <= -1) return 1;
  553.         if(IsPlayerInArea(playerid, 2920, 3000, -1592, -1504) && z <= -1) return 1;
  554.         if(IsPlayerInArea(playerid, 2944, 3000, -1504, -1344) && z <= -1) return 1;
  555.         if(IsPlayerInArea(playerid, 2944, 3000, -1344, -1096) && z <= -1) return 1;
  556.         if(IsPlayerInArea(playerid, 2936, 2944, -1280, -1096) && z <= -1) return 1;
  557.         if(IsPlayerInArea(playerid, 2928, 2936, -1224, -1096) && z <= -1) return 1;
  558.         if(IsPlayerInArea(playerid, 2920, 2928, -1160, -1096) && z <= -1) return 1;
  559.         if(IsPlayerInArea(playerid, 2912, 2920, -1128, -1096) && z <= -1) return 1;
  560.         if(IsPlayerInArea(playerid, 2912, 3000, -1096, -800) && z <= -1) return 1;
  561.         if(IsPlayerInArea(playerid, 2936, 3000, -800, -472) && z <= -1) return 1;
  562.         if(IsPlayerInArea(playerid, 2920, 3000, -472, -376) && z <= -1) return 1;
  563.         if(IsPlayerInArea(playerid, 2912, 3000, -376, -80) && z <= -1) return 1;
  564.         if(IsPlayerInArea(playerid, 2864, 2912, -344, -80) && z <= -1) return 1;
  565.         if(IsPlayerInArea(playerid, 2560, 2680, -2560, -2456) && z <= -1) return 1;
  566.         if(IsPlayerInArea(playerid, -992, -848, -384, -240) && z <= -1) return 1;
  567.         if(IsPlayerInArea(playerid, -848, -512, -384, -256) && z <= -1) return 1;
  568.         if(IsPlayerInArea(playerid, -512, -320, -400, -288) && z <= -1) return 1;
  569.         if(IsPlayerInArea(playerid, -320, -208, -400, -304) && z <= -1) return 1;
  570.         if(IsPlayerInArea(playerid, -384, -112, -528, -400) && z <= -1) return 1;
  571.         if(IsPlayerInArea(playerid, -384, -64, -704, -528) && z <= -1) return 1;
  572.         if(IsPlayerInArea(playerid, -336, -80, -816, -704) && z <= -1) return 1;
  573.         if(IsPlayerInArea(playerid, -208, -48, -928, -816) && z <= -1) return 1;
  574.         if(IsPlayerInArea(playerid, -48, 144, -928, -880) && z <= -1) return 1;
  575.         if(IsPlayerInArea(playerid, 32, 128, -1024, -928) && z <= -1) return 1;
  576.         if(IsPlayerInArea(playerid, -16, 96, -1104, -1024) && z <= -1) return 1;
  577.         if(IsPlayerInArea(playerid, 0, 144, -1200, -1104) && z <= -1) return 1;
  578.         if(IsPlayerInArea(playerid, -16, 128, -1296, -1200) && z <= -1) return 1;
  579.         if(IsPlayerInArea(playerid, -16, 96, -1440, -1296) && z <= -1) return 1;
  580.         if(IsPlayerInArea(playerid, 0, 80, -1552, -1440) && z <= -1) return 1;
  581.         if(IsPlayerInArea(playerid, -128, 96, -1648, -1552) && z <= -1) return 1;
  582.         if(IsPlayerInArea(playerid, -64, 32, -672, -576) && z <= -1) return 1;
  583.         if(IsPlayerInArea(playerid, -48, 80, -576, -496) && z <= -1) return 1;
  584.         if(IsPlayerInArea(playerid, 16, 144, -496, -400) && z <= -1) return 1;
  585.         if(IsPlayerInArea(playerid, 144, 240, -448, -384) && z <= -1) return 1;
  586.         if(IsPlayerInArea(playerid, 240, 304, -432, -320) && z <= -1) return 1;
  587.         if(IsPlayerInArea(playerid, 304, 352, -384, -288) && z <= -1) return 1;
  588.         if(IsPlayerInArea(playerid, 352, 400, -336, -272) && z <= -1) return 1;
  589.         if(IsPlayerInArea(playerid, 400, 464, -304, -240) && z <= -1) return 1;
  590.         if(IsPlayerInArea(playerid, 464, 576, -288, -208) && z <= -1) return 1;
  591.         if(IsPlayerInArea(playerid, 576, 688, -272, -192) && z <= -1) return 1;
  592.         if(IsPlayerInArea(playerid, 688, 768, -256, -144) && z <= -1) return 1;
  593.         if(IsPlayerInArea(playerid, 768, 800, -208, -128) && z <= -1) return 1;
  594.         if(IsPlayerInArea(playerid, 800, 976, -176, -96) && z <= -1) return 1;
  595.         if(IsPlayerInArea(playerid, 976, 1200, -160, -64) && z <= -1) return 1;
  596.         if(IsPlayerInArea(playerid, 1200, 1264, -240, -112) && z <= -1) return 1;
  597.         if(IsPlayerInArea(playerid, 1264, 1344, -320, -176) && z <= -1) return 1;
  598.         if(IsPlayerInArea(playerid, 1344, 1456, -320, -208) && z <= -1) return 1;
  599.         if(IsPlayerInArea(playerid, 1456, 1520, -256, -192) && z <= -1) return 1;
  600.         if(IsPlayerInArea(playerid, 1520, 1648, -208, -80) && z <= -1) return 1;
  601.         if(IsPlayerInArea(playerid, 1568, 1648, -80, 16) && z <= -1) return 1;
  602.         if(IsPlayerInArea(playerid, 1648, 1792, -64, 16) && z <= -1) return 1;
  603.         if(IsPlayerInArea(playerid, 1792, 1888, -128, 0) && z <= -1) return 1;
  604.         if(IsPlayerInArea(playerid, 1888, 2016, -256, -32) && z <= -1) return 1;
  605.         if(IsPlayerInArea(playerid, 2016, 2144, -256, -16) && z <= -1) return 1;
  606.         if(IsPlayerInArea(playerid, 2144, 2224, -272, -96) && z <= -1) return 1;
  607.         if(IsPlayerInArea(playerid, 2224, 2288, -272, -144) && z <= -1) return 1;
  608.         if(IsPlayerInArea(playerid, 2288, 2528, -272, -192) && z <= -1) return 1;
  609.         if(IsPlayerInArea(playerid, 2528, 2640, -272, -224) && z <= -1) return 1;
  610.         if(IsPlayerInArea(playerid, 2048, 2144, -16, 112) && z <= -1) return 1;
  611.         if(IsPlayerInArea(playerid, 2096, 2224, 112, 240) && z <= -1) return 1;
  612.         if(IsPlayerInArea(playerid, 2080, 2224, 240, 400) && z <= -1) return 1;
  613.         if(IsPlayerInArea(playerid, 2224, 2256, 320, 400) && z <= -1) return 1;
  614.         if(IsPlayerInArea(playerid, 2160, 2432, 512, 576) && z <= -1) return 1;
  615.         if(IsPlayerInArea(playerid, 2432, 2560, 544, 592) && z <= -1) return 1;
  616.         if(IsPlayerInArea(playerid, 2560, 2720, 576, 608) && z <= -1) return 1;
  617.         if(IsPlayerInArea(playerid, 2720, 2816, 560, 608) && z <= -1) return 1;
  618.         if(IsPlayerInArea(playerid, 2816, 2992, 576, 752) && z <= -1) return 1;
  619.         if(IsPlayerInArea(playerid, -656, -496, 576, 672) && z <= -1) return 1;
  620.         if(IsPlayerInArea(playerid, -736, -496, 672, 784) && z <= -1) return 1;
  621.         if(IsPlayerInArea(playerid, -720, -384, 784, 1008) && z <= -1) return 1;
  622.         if(IsPlayerInArea(playerid, -640, -400, 1008, 1216) && z <= -1) return 1;
  623.         if(IsPlayerInArea(playerid, -880, -688, 1296, 1408) && z <= -1) return 1;
  624.         if(IsPlayerInArea(playerid, -688, -432, 1216, 1424) && z <= -1) return 1;
  625.         if(IsPlayerInArea(playerid, -672, -448, 1424, 1616) && z <= -1) return 1;
  626.         if(IsPlayerInArea(playerid, -832, -512, 1616, 1728) && z <= -1) return 1;
  627.         if(IsPlayerInArea(playerid, -976, -832, 1632, 1712) && z <= -1) return 1;
  628.         if(IsPlayerInArea(playerid, -832, -576, 1728, 2032) && z <= -1) return 1;
  629.         if(IsPlayerInArea(playerid, -1248, -1088, 2544, 2832) && z <= 39) return 1;
  630.         if(IsPlayerInArea(playerid, -1088, -1040, 2544, 2784) && z <= 39) return 1;
  631.         if(IsPlayerInArea(playerid, -1040, -832, 2544, 2736) && z <= 39) return 1;
  632.         if(IsPlayerInArea(playerid, -1088, -832, 2416, 2544) && z <= 39) return 1;
  633.         if(IsPlayerInArea(playerid, -1040, -864, 2304, 2416) && z <= 39) return 1;
  634.         if(IsPlayerInArea(playerid, -1024, -864, 2144, 2304) && z <= 39) return 1;
  635.         if(IsPlayerInArea(playerid, -1072, -1024, 2160, 2256) && z <= 39) return 1;
  636.         if(IsPlayerInArea(playerid, -1200, -1072, 2114, 2242) && z <= 39) return 1;
  637.         if(IsPlayerInArea(playerid, -976, -848, 2016, 2144) && z <= 39) return 1;
  638.         if(IsPlayerInArea(playerid, -864, -480, 2144, 2272) && z <= 39) return 1;
  639.         if(IsPlayerInArea(playerid, -688, -496, 2272, 2320) && z <= 39) return 1;
  640.         if(IsPlayerInArea(playerid, -608, -528, 2320, 2352) && z <= 39) return 1;
  641.         if(IsPlayerInArea(playerid, -848, -816, 2048, 2144) && z <= 39) return 1;
  642.         if(IsPlayerInArea(playerid, -816, -496, 2064, 2144) && z <= 39) return 1;
  643.         if(IsPlayerInArea(playerid, -576, -512, 2032, 2064) && z <= -1) return 1;
  644.         if(IsPlayerInArea(playerid, 2376, 3000, -3000, -2696) && z <= -1) return 1;
  645.         if(IsPlayerInArea(playerid, 2520, 3000, -2696, -2560) && z <= -1) return 1;
  646.         if(IsPlayerInArea(playerid, -1328, -1200, 2082, 2210) && z <= 39) return 1;
  647.         if(IsPlayerInArea(playerid, -1456, -1328, 2048, 2176) && z <= 39) return 1;
  648.         if(IsPlayerInArea(playerid, -1248, -992, -144, 208) && z <= -1) return 1;
  649.         if(IsPlayerInArea(playerid, -1176, -992, -432, -144) && z <= -1) return 1;
  650.         if(IsPlayerInArea(playerid, -1792, -1728, -592, -144) && z <= -1) return 1;
  651.         if(IsPlayerInArea(playerid, -1792, -1600, 170, 274) && z <= -1) return 1;
  652.         if(IsPlayerInArea(playerid, -1600, -1256, 168, 208) && z <= -1) return 1;
  653.         if(IsPlayerInArea(playerid, -1574, -1550, -50, 102) && z <= -1) return 1;
  654.         return 0;
  655. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement