Advertisement
CrowleyNWD

[Map] Ilha • Base/QG (COMPLETO)

Oct 4th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.08 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <streamer>
  4.  
  5. #define COLOR_ERRO 0xFF0000AA
  6. #define COLOR_AMARELO 0xFFFF00AA
  7. #define COLOR_VERDECLARO 0x00FF66AA
  8.  
  9. new CaveiraIlha, PortaoIlha[ 4 ], StatusIlha = 0;
  10.  
  11. public OnGameModeInit()
  12. {
  13.  
  14. //OBJETOS
  15. CreateObject(16613, -13.09961, -1763.89941, 5.71285, 0.00000, 0.00000, 8.49792, 50000.0);
  16. CreateObject(5184, -151.38170, -1791.16833, 20.13850, 0.00000, 0.00000, 277.99799, 50000.0);
  17. CreateObject(5184, -46.79980, -1736.50000, 20.13500, 0.00000, 0.00000, 187.99260, 50000.0);
  18. CreateObject(5184, 17.24420, -1839.58923, 20.12000, 0.00000, 0.00000, 97.98710, 50000.0);
  19. CreateObject(5184, -134.22440, -1914.77222, 20.13980, 0.00000, 0.00000, 277.99799, 50000.0);
  20. CreateObject(5184, 34.00000, -1962.19922, 20.12510, 0.00000, 0.00000, 97.98160, 50000.0);
  21. CreateObject(10377, -129.89940, -1864.09961, 19.34182, 0.00000, 0.00000, 7.99260, 50000.0);
  22. CreateObject(5184, -94.24990, -2039.36914, 20.13330, 0.00000, 0.00000, 95.98750, 50000.0);
  23. CreateObject(5184, -50.99390, -1849.25781, 20.13410, 0.00000, 0.00000, 97.98710, 50000.0);
  24. CreateObject(5184, -34.40230, -1968.17786, 20.12822, 0.00000, 0.00000, 97.87310, 50000.0);
  25. CreateObject(5184, 45.39940, -2088.00000, 20.09950, 0.00000, 0.00000, 95.97660, 50000.0);
  26. CreateObject(5184, -19.21710, -2092.61230, 20.12673, 0.00000, 0.00000, 96.08460, 50000.0);
  27. CreateObject(5184, -100.31710, -2166.13574, 20.11020, 0.00000, 0.00000, 276.00000, 50000.0);
  28. CreateObject(5184, 9.50000, -2197.29980, 20.09190, 0.00000, 0.00000, 5.98750, 50000.0);
  29. CreateObject(18226, -87.99349, -1740.75110, -27.81253, 0.00000, 0.00000, 254.99974, 50000.0);
  30. CreateObject(18226, 4.90513, -1707.56409, -28.83098, 0.00000, 0.00000, 168.28171, 50000.0);
  31. CreateObject(18226, 27.27875, -1811.04919, -20.66459, 0.00000, 0.00000, 170.78979, 50000.0);
  32. CreateObject(18226, 50.13510, -1976.11230, -13.34693, 0.00000, 0.00000, 168.24271, 50000.0);
  33. CreateObject(18226, 52.54917, -2049.96533, -18.97482, 0.00000, 0.00000, 167.99194, 50000.0);
  34. CreateObject(18226, 63.45601, -2125.99658, -20.44074, 0.00000, 0.00000, 169.42363, 50000.0);
  35. CreateObject(17068, 44.00000, -2225.10010, 1.10000, 0.00000, 0.00000, 5.99854, 50000.0);
  36. CreateObject(17068, 23.70000, -2226.80005, 1.10000, 0.00000, 0.00000, 5.99854, 50000.0);
  37. CreateObject(17068, 1.90000, -2229.39990, 1.10000, 0.00000, 0.00000, 5.99854, 50000.0);
  38. CreateObject(17068, -19.90000, -2231.80005, 1.10000, 0.00000, 0.00000, 5.99854, 50000.0);
  39. CreateObject(17068, -42.00000, -2234.10010, 1.10000, 0.00000, 0.00000, 5.99854, 50000.0);
  40. CreateObject(18226, 81.11761, -2207.64258, -18.55202, 0.00000, 0.00000, 174.11424, 50000.0);
  41. CreateObject(18226, -35.26646, -2282.84766, -16.83503, 0.00000, 0.00000, 35.98572, 50000.0);
  42. CreateObject(18226, -84.50965, -2240.22437, -20.56483, 0.00000, 0.00000, 9.76493, 50000.0);
  43. CreateObject(18226, -117.29140, -2156.43750, -19.40984, 0.00000, 0.00000, 349.78424, 50000.0);
  44. CreateObject(18226, -126.25428, -2076.93457, -19.30482, 0.00000, 0.00000, 351.15472, 50000.0);
  45. CreateObject(18226, -138.52596, -1996.34595, -15.09204, 0.00000, 0.00000, 349.39609, 50000.0);
  46. CreateObject(18226, -166.93607, -1904.20654, -12.00911, 0.00000, 0.00000, 343.97644, 50000.0);
  47. CreateObject(18226, -170.70000, -1813.30005, -17.47170, 0.00000, 0.00000, 343.97641, 50000.0);
  48. CreateObject(16771, 4.50000, -1864.30005, 7.76723, 0.00000, 0.00000, 97.99260, 50000.0);
  49. CreateObject(16771, 15.10000, -1938.90002, 7.84425, 0.00000, 0.00000, 97.99255, 50000.0);
  50. CreateObject(9241, 19.60000, -1996.90002, 1.67715, 0.00000, 0.00000, 6.00000, 50000.0);
  51. CreateObject(9241, 24.90000, -2041.69995, 2.60000, 0.00000, 0.00000, 5.99805, 50000.0);
  52. CreateObject(9241, 29.80000, -2086.19995, 3.05000, 0.00000, 0.00000, 5.99805, 50000.0);
  53. CreateObject(9241, 34.80000, -2134.60010, 2.97610, 0.00000, 0.00000, 5.99760, 50000.0);
  54. CreateObject(9241, 39.40000, -2182.39990, 2.60000, 0.00000, 0.00000, 5.99304, 50000.0);
  55. CreateObject(18226, -179.89999, -1766.00000, -10.10436, 0.00000, 0.00000, 311.97644, 50000.0);
  56. CreateObject(18226, -165.39363, -1773.07520, -10.40685, 348.00000, 0.00000, 303.97119, 50000.0);
  57. CreateObject(10763, -106.30000, -1967.90002, 34.00000, 0.00000, 0.00000, 233.99930, 50000.0);
  58. CreateObject(3279, -107.30000, -1739.09998, 1.30000, 0.00000, 0.00000, 10.00000, 50000.0);
  59. CreateObject(3279, -131.30000, -1743.90002, 1.30000, 0.00000, 0.00000, 11.99756, 50000.0);
  60. CreateObject(18226, 93.79980, -2227.59961, -22.18486, 0.00000, 0.00000, 155.98938, 50000.0);
  61. CreateObject(981, -66.48777, -1813.55530, 2.30000, 0.00000, 0.00000, 8.00000, 50000.0);
  62. CreateObject(3526, -126.70000, -1651.00000, 1.60000, 0.00000, 0.00000, 275.99854, 50000.0);
  63. CreateObject(3526, -139.89999, -1652.59998, 1.60000, 0.00000, 0.00000, 275.99854, 50000.0);
  64. CreateObject(3852, -43.23000, -2220.19995, 2.79000, 0.00000, 0.00000, 276.00000, 50000.0);
  65. CreateObject(3852, 0.30000, -2214.69995, 2.78000, 0.00000, 0.00000, 275.99850, 50000.0);
  66. CreateObject(981, -22.65153, -2171.75317, 2.07000, 0.00000, 0.00000, 187.00000, 50000.0);
  67. CreateObject(11472, 11.80000, -2212.50000, 0.18000, 0.00000, 0.00000, 274.00000, 50000.0);
  68. CreateObject(11472, 24.30000, -2211.62988, 0.18000, 0.00000, 0.00000, 273.99899, 50000.0);
  69. CreateObject(11472, 36.80000, -2210.75000, 0.18000, 0.00000, 0.00000, 273.99899, 50000.0);
  70. CreateObject(955, -112.00000, -1852.18994, 3.50000, 0.00000, 0.00000, 98.00000, 50000.0);
  71. CreateObject(4691, -72.80000, -1776.69995, 1.39000, 0.00000, 0.00000, 98.00000, 50000.0);
  72. CreateObject(16136, -13.90000, -1767.09998, 2.10000, 0.00000, 0.00000, 9.01099, 50000.0);
  73. CreateObject(8251, -111.10000, -2011.09998, 4.98000, 0.00000, 0.00000, 6.00000, 50000.0);
  74. CreateObject(8251, -105.10000, -2065.19995, 5.20000, 0.00000, 0.00000, 5.99854, 50000.0);
  75. CreateObject(16599, -101.80000, -2097.19995, 6.10000, 0.00000, 0.00000, 6.16187, 50000.0);
  76. CreateObject(3287, -99.20000, -2110.89990, 6.10000, 0.00000, 0.00000, 0.00000, 50000.0);
  77. CreateObject(8357, -53.08640, -1924.53662, 1.28380, 0.00000, 0.00000, 7.00000, 50000.0);
  78. CreateObject(8355, -31.63132, -2098.62036, 1.25190, 0.00000, 0.00000, 187.00000, 50000.0);
  79. CreateObject(18226, -153.94167, -1917.84448, -23.11775, 0.00000, 0.00000, 343.97644, 50000.0);
  80. CreateObject(18226, -147.50000, -1979.09998, -11.89031, 0.00000, 0.00000, 343.97644, 50000.0);
  81. CreateObject(18226, -137.00000, -2065.00000, -13.04143, 0.00000, 0.00000, 343.97644, 50000.0);
  82. CreateObject(18226, -127.60000, -2145.19995, -13.68702, 0.00000, 0.00000, 343.97803, 50000.0);
  83. CreateObject(18226, -20.17486, -2288.97217, -26.87016, 0.00000, 0.00000, 28.60341, 50000.0);
  84. CreateObject(18226, -104.30201, -2223.24805, -18.98620, 0.00000, 0.00000, 3.69344, 50000.0);
  85. CreateObject(18226, 48.26076, -2295.09668, -14.16646, 0.00000, 0.00000, 61.98987, 50000.0);
  86. CreateObject(18226, 95.84357, -2220.51294, -9.46069, 0.00000, 0.00000, 167.05508, 50000.0);
  87. CreateObject(18226, 70.50000, -2148.30005, -19.50205, 0.00000, 0.00000, 167.99194, 50000.0);
  88. CreateObject(18226, 44.95196, -1958.40320, -20.94419, 0.00000, 0.00000, 159.67239, 50000.0);
  89. CreateObject(18226, 60.39941, -2063.59961, -14.29203, 0.00000, 0.00000, 167.99194, 50000.0);
  90. CreateObject(18226, 50.42467, -1910.84851, -8.54731, 0.00000, 0.00000, 167.99744, 50000.0);
  91. CreateObject(18226, 35.20000, -1822.19995, -13.79790, 0.00000, 0.00000, 167.99741, 50000.0);
  92. CreateObject(18226, 35.71230, -1895.96802, -23.14815, 0.00000, 0.00000, 167.99744, 50000.0);
  93. CreateObject(18226, 16.10732, -1735.10364, -22.08484, 0.00000, 0.00000, 171.45813, 50000.0);
  94. CreateObject(18226, -42.79125, -1717.69958, -18.95167, 0.00000, 0.00000, 245.98938, 50000.0);
  95. CreateObject(18226, -83.54720, -1725.23877, -10.54940, 0.00000, 0.00000, 253.99840, 50000.0);
  96. CreateObject(18226, -74.84549, -1730.37048, -14.87604, 0.00000, 0.00000, 253.95351, 50000.0);
  97. CreateObject(18226, 16.53776, -1718.88428, -14.54710, 0.00000, 0.00000, 168.28171, 50000.0);
  98. CreateObject(18226, 47.51482, -2293.38745, -21.31595, 0.00000, 0.00000, 68.26936, 50000.0);
  99. CreateObject(18226, -160.39999, -1899.30005, -23.11775, 0.00000, 0.00000, 343.97644, 50000.0);
  100. CreateObject(18226, 42.02142, -2297.30127, -20.64790, 0.00000, 0.00000, 61.98987, 50000.0);
  101.  
  102.  
  103. // VEÍCULOS
  104.  
  105. //Barcos
  106. AddStaticVehicleEx (452, 39.868511, -2225.372802, -0.348297, 185, 1, 1, 60);
  107. AddStaticVehicleEx (446, 18.429105, -2226.423339, -0.391875, 185, 1, 1, 60);
  108. AddStaticVehicleEx (595, -45.400684, -2234.975341, 0.093851, 185, 3, 1, 60);
  109. AddStaticVehicleEx (493, -2.433027, -2226.688232, -0.056759, 185, 3, 1, 60);
  110. AddStaticVehicleEx (454, -25.702039, -2231.077880, -0.012113, 185, 1, 1, 60);
  111.  
  112. //Aviões
  113. AddStaticVehicleEx (519, 8.865216, -1863.725585, 3.156188, 98, 1, 1, 60);
  114. AddStaticVehicleEx (519, 17.774501, -1938.827148, 3.211332, 98, 1, 1, 60);
  115. AddStaticVehicleEx (476, -105.391189, -2064.957763, 2.966126, 273, 3, 1, 60);
  116. AddStaticVehicleEx (511, -2.308230, -1813.079467, 3.610127, 97, 1, 3, 60);
  117. AddStaticVehicleEx (513, -110.083343, -2010.618041, 2.795043, 272, 1, 3, 60);
  118.  
  119. //Helicópteros
  120. AddStaticVehicleEx (487, 19.405151, -1996.904663, 3.681953, 95, 1, 6, 60);
  121. AddStaticVehicleEx (447, 24.273792, -2041.893554, 4.417486, 95, 1, 0, 60);
  122. AddStaticVehicleEx (548, 29.229291, -2086.204345, 6.517590, 95, 1, 0, 60);
  123. AddStaticVehicleEx (417, 32.858577, -2134.893066, 4.894884, 95, 1, 0, 60);
  124. AddStaticVehicleEx (563, 38.634292, -2182.517333, 5.118448, 95, 1, 0, 60);
  125.  
  126. //Carros & Motos
  127. AddStaticVehicleEx (411, -101.737358, -1777.379516, 1.979269, 187, 2, 6, 60);
  128. AddStaticVehicleEx (415, -54.004772, -1804.073730, 2.022464, 7, 1, 1, 60);
  129. AddStaticVehicleEx (560, -76.155357, -1765.734619, 1.957139, 7, 9, 6, 60);
  130. AddStaticVehicleEx (495, -47.791969, -1757.542480, 2.601310, 97, 54, 6, 60);
  131. AddStaticVehicleEx (522, -84.058021, -1803.138427, 1.822946, 187, 137, 0, 60);
  132.  
  133.  
  134. //PORTÕES
  135.  
  136. //BASE CSI
  137.  
  138. StatusIlha = 0; //Status : 0 = Fechada // 1 = Aberta // 2 = Abrindo // 3 = Fechando //
  139. CaveiraIlha = CreateDynamicObject(8483,82.79980469,-2288.69921875,5.09999990,0.00000000,0.00000000,311.99523926); //object(pirateland02_lvs)(1)
  140.  
  141. // Portão esquerdo
  142.  
  143. PortaoIlha[ 0 ] = CreateDynamicObject(2990,-116.50000000,-1728.09960938,5.19999981,0.00000000,0.00000000,187.99804688);
  144.  
  145. // Portão direito
  146.  
  147. PortaoIlha[ 1 ] = CreateDynamicObject(2990,-126.50000000,-1729.50781250,5.19999981,0.00000000,0.00000000,187.99255371); //object(wongs_gate) (2)
  148.  
  149. // Submarino
  150.  
  151. PortaoIlha[ 2 ] = CreateDynamicObject(9958,-58.59999847,-1673.80004883,-1.89999998,0.00000000,0.00000000,264.99023438); //object(submarr_sfe) (1)
  152.  
  153. // Ponte
  154.  
  155. PortaoIlha[ 3 ] = CreateDynamicObject(18450,-115.59999847,-1766.00000000,-0.50000000,0.00000000,0.00000000,278.74511719); //object(cs_roadbridge04) (1)
  156.  
  157. return 1;
  158. }
  159.  
  160.  
  161. //FORWARDS
  162.  
  163. forward IlhaSubirSubmarino();
  164. public IlhaSubirSubmarino()
  165. {
  166. MoveDynamicObject( PortaoIlha[ 2 ], -58.599609375,-1673.7998046875,5.5999999046326, 1.0 );
  167. return 1;
  168. }
  169.  
  170. forward IlhaDescerSubmarino();
  171. public IlhaDescerSubmarino()
  172. {
  173. MoveDynamicObject( PortaoIlha[ 2 ], -58.59999847,-1673.80004883,-1.89999998, 1.0 );
  174. return 1;
  175. }
  176.  
  177. forward IlhaAbrirPonte();
  178. public IlhaAbrirPonte()
  179. {
  180. MoveDynamicObject( PortaoIlha[ 3 ], -127.50000000,-1689.39941406,0.98000002, 4.0 );
  181. return 1;
  182. }
  183.  
  184. forward IlhaFecharPonte();
  185. public IlhaFecharPonte()
  186. {
  187. MoveDynamicObject( PortaoIlha[ 3 ], -115.59999847412, -1766, -0.5, 4.0 );
  188. return 1;
  189. }
  190.  
  191. forward IlhaAbrirPortoes();
  192. public IlhaAbrirPortoes()
  193. {
  194. // Portão esquerdo Ilha
  195. MoveDynamicObject( PortaoIlha[ 0 ], -109.30000305,-1727.19995117,5.19999981, 2.0 );
  196. // Portão direito Ilha
  197. MoveDynamicObject( PortaoIlha[ 1 ], -133.69999695,-1730.50000000,5.19999981, 2.0 );
  198. StatusIlha = 1;
  199. return 1;
  200. }
  201.  
  202. forward IlhaFecharPortoes();
  203. public IlhaFecharPortoes()
  204. {
  205. // Portão esquerdo Ilha
  206. MoveDynamicObject( PortaoIlha[ 0 ], -116.5,-1728.099609375,5.1999998092651, 3.0 );
  207. // Portão direito Ilha
  208. MoveDynamicObject( PortaoIlha[ 1 ], -126.5,-1729.5078125,5.1999998092651, 3.0 );
  209. StatusIlha = 0;
  210. return 1;
  211. }
  212.  
  213. //COMANDOS
  214.  
  215. CMD:abilha(playerid, params[])
  216. {
  217. if( StatusIlha == 1 )
  218. {
  219. SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha já está aberta!" );
  220. return 1;
  221. }
  222. if( StatusIlha == 2 )
  223. {
  224. SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha já está sendo aberta!" );
  225. return 1;
  226. }
  227. if( StatusIlha == 3 )
  228. {
  229. SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha está sendo fechada, aguarde para poder abrir!" );
  230. return 1;
  231. }
  232. StatusIlha = 2;
  233. SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Abrindo a ilha." );
  234. //
  235. IlhaAbrirPonte();
  236. IlhaSubirSubmarino();
  237. SetTimer( "IlhaAbrirPortoes", 15000, false );
  238. return 1;
  239. }
  240.  
  241.  
  242. CMD:fbilha(playerid, params[])
  243. {
  244. if( StatusIlha == 0 )
  245. {
  246. SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha já está fechada!" );
  247. return 1;
  248. }
  249. if( StatusIlha == 2 )
  250. {
  251. SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha está sendo aberta, aguarde para poder fechar!" );
  252. return 1;
  253. }
  254. if( StatusIlha == 3 )
  255. {
  256. SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha já está sendo fechada!" );
  257. return 1;
  258. }
  259. StatusIlha = 3;
  260. SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Fechando a ilha." );
  261. //
  262. IlhaFecharPonte();
  263. IlhaDescerSubmarino();
  264. SetTimer( "IlhaFecharPortoes", 15000, false );
  265. return 1;
  266. }
  267.  
  268.  
  269. CMD:abcaveira(playerid, params[])
  270. {
  271. SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Abrindo a caveira da ilha." );
  272. MoveDynamicObject( CaveiraIlha, 82.800003051758,-2288.6999511719,-10.39999961853, 2.0 );
  273. return 1;
  274. }
  275.  
  276. CMD:fbcaveira(playerid, params[])
  277. {
  278. SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Fechando a caveira da ilha." );
  279. MoveDynamicObject( CaveiraIlha, 82.7998046875,-2288.69921875,5.0999999046326, 2.0 );
  280. return 1;
  281. }
  282.  
  283. CMD:ilha(playerid, params[])
  284. {
  285. SetPlayerPos(playerid, -137.3118,-1634.1235,3.3750);
  286. SendClientMessage(playerid, COLOR_VERDECLARO, "[ > ] Você se teleportou para a Ilha!" );
  287. return 1;
  288. }
  289.  
  290. //Fim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement