Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #include <streamer>
- #define COLOR_ERRO 0xFF0000AA
- #define COLOR_AMARELO 0xFFFF00AA
- #define COLOR_VERDECLARO 0x00FF66AA
- new CaveiraIlha, PortaoIlha[ 4 ], StatusIlha = 0;
- public OnGameModeInit()
- {
- //OBJETOS
- CreateObject(16613, -13.09961, -1763.89941, 5.71285, 0.00000, 0.00000, 8.49792, 50000.0);
- CreateObject(5184, -151.38170, -1791.16833, 20.13850, 0.00000, 0.00000, 277.99799, 50000.0);
- CreateObject(5184, -46.79980, -1736.50000, 20.13500, 0.00000, 0.00000, 187.99260, 50000.0);
- CreateObject(5184, 17.24420, -1839.58923, 20.12000, 0.00000, 0.00000, 97.98710, 50000.0);
- CreateObject(5184, -134.22440, -1914.77222, 20.13980, 0.00000, 0.00000, 277.99799, 50000.0);
- CreateObject(5184, 34.00000, -1962.19922, 20.12510, 0.00000, 0.00000, 97.98160, 50000.0);
- CreateObject(10377, -129.89940, -1864.09961, 19.34182, 0.00000, 0.00000, 7.99260, 50000.0);
- CreateObject(5184, -94.24990, -2039.36914, 20.13330, 0.00000, 0.00000, 95.98750, 50000.0);
- CreateObject(5184, -50.99390, -1849.25781, 20.13410, 0.00000, 0.00000, 97.98710, 50000.0);
- CreateObject(5184, -34.40230, -1968.17786, 20.12822, 0.00000, 0.00000, 97.87310, 50000.0);
- CreateObject(5184, 45.39940, -2088.00000, 20.09950, 0.00000, 0.00000, 95.97660, 50000.0);
- CreateObject(5184, -19.21710, -2092.61230, 20.12673, 0.00000, 0.00000, 96.08460, 50000.0);
- CreateObject(5184, -100.31710, -2166.13574, 20.11020, 0.00000, 0.00000, 276.00000, 50000.0);
- CreateObject(5184, 9.50000, -2197.29980, 20.09190, 0.00000, 0.00000, 5.98750, 50000.0);
- CreateObject(18226, -87.99349, -1740.75110, -27.81253, 0.00000, 0.00000, 254.99974, 50000.0);
- CreateObject(18226, 4.90513, -1707.56409, -28.83098, 0.00000, 0.00000, 168.28171, 50000.0);
- CreateObject(18226, 27.27875, -1811.04919, -20.66459, 0.00000, 0.00000, 170.78979, 50000.0);
- CreateObject(18226, 50.13510, -1976.11230, -13.34693, 0.00000, 0.00000, 168.24271, 50000.0);
- CreateObject(18226, 52.54917, -2049.96533, -18.97482, 0.00000, 0.00000, 167.99194, 50000.0);
- CreateObject(18226, 63.45601, -2125.99658, -20.44074, 0.00000, 0.00000, 169.42363, 50000.0);
- CreateObject(17068, 44.00000, -2225.10010, 1.10000, 0.00000, 0.00000, 5.99854, 50000.0);
- CreateObject(17068, 23.70000, -2226.80005, 1.10000, 0.00000, 0.00000, 5.99854, 50000.0);
- CreateObject(17068, 1.90000, -2229.39990, 1.10000, 0.00000, 0.00000, 5.99854, 50000.0);
- CreateObject(17068, -19.90000, -2231.80005, 1.10000, 0.00000, 0.00000, 5.99854, 50000.0);
- CreateObject(17068, -42.00000, -2234.10010, 1.10000, 0.00000, 0.00000, 5.99854, 50000.0);
- CreateObject(18226, 81.11761, -2207.64258, -18.55202, 0.00000, 0.00000, 174.11424, 50000.0);
- CreateObject(18226, -35.26646, -2282.84766, -16.83503, 0.00000, 0.00000, 35.98572, 50000.0);
- CreateObject(18226, -84.50965, -2240.22437, -20.56483, 0.00000, 0.00000, 9.76493, 50000.0);
- CreateObject(18226, -117.29140, -2156.43750, -19.40984, 0.00000, 0.00000, 349.78424, 50000.0);
- CreateObject(18226, -126.25428, -2076.93457, -19.30482, 0.00000, 0.00000, 351.15472, 50000.0);
- CreateObject(18226, -138.52596, -1996.34595, -15.09204, 0.00000, 0.00000, 349.39609, 50000.0);
- CreateObject(18226, -166.93607, -1904.20654, -12.00911, 0.00000, 0.00000, 343.97644, 50000.0);
- CreateObject(18226, -170.70000, -1813.30005, -17.47170, 0.00000, 0.00000, 343.97641, 50000.0);
- CreateObject(16771, 4.50000, -1864.30005, 7.76723, 0.00000, 0.00000, 97.99260, 50000.0);
- CreateObject(16771, 15.10000, -1938.90002, 7.84425, 0.00000, 0.00000, 97.99255, 50000.0);
- CreateObject(9241, 19.60000, -1996.90002, 1.67715, 0.00000, 0.00000, 6.00000, 50000.0);
- CreateObject(9241, 24.90000, -2041.69995, 2.60000, 0.00000, 0.00000, 5.99805, 50000.0);
- CreateObject(9241, 29.80000, -2086.19995, 3.05000, 0.00000, 0.00000, 5.99805, 50000.0);
- CreateObject(9241, 34.80000, -2134.60010, 2.97610, 0.00000, 0.00000, 5.99760, 50000.0);
- CreateObject(9241, 39.40000, -2182.39990, 2.60000, 0.00000, 0.00000, 5.99304, 50000.0);
- CreateObject(18226, -179.89999, -1766.00000, -10.10436, 0.00000, 0.00000, 311.97644, 50000.0);
- CreateObject(18226, -165.39363, -1773.07520, -10.40685, 348.00000, 0.00000, 303.97119, 50000.0);
- CreateObject(10763, -106.30000, -1967.90002, 34.00000, 0.00000, 0.00000, 233.99930, 50000.0);
- CreateObject(3279, -107.30000, -1739.09998, 1.30000, 0.00000, 0.00000, 10.00000, 50000.0);
- CreateObject(3279, -131.30000, -1743.90002, 1.30000, 0.00000, 0.00000, 11.99756, 50000.0);
- CreateObject(18226, 93.79980, -2227.59961, -22.18486, 0.00000, 0.00000, 155.98938, 50000.0);
- CreateObject(981, -66.48777, -1813.55530, 2.30000, 0.00000, 0.00000, 8.00000, 50000.0);
- CreateObject(3526, -126.70000, -1651.00000, 1.60000, 0.00000, 0.00000, 275.99854, 50000.0);
- CreateObject(3526, -139.89999, -1652.59998, 1.60000, 0.00000, 0.00000, 275.99854, 50000.0);
- CreateObject(3852, -43.23000, -2220.19995, 2.79000, 0.00000, 0.00000, 276.00000, 50000.0);
- CreateObject(3852, 0.30000, -2214.69995, 2.78000, 0.00000, 0.00000, 275.99850, 50000.0);
- CreateObject(981, -22.65153, -2171.75317, 2.07000, 0.00000, 0.00000, 187.00000, 50000.0);
- CreateObject(11472, 11.80000, -2212.50000, 0.18000, 0.00000, 0.00000, 274.00000, 50000.0);
- CreateObject(11472, 24.30000, -2211.62988, 0.18000, 0.00000, 0.00000, 273.99899, 50000.0);
- CreateObject(11472, 36.80000, -2210.75000, 0.18000, 0.00000, 0.00000, 273.99899, 50000.0);
- CreateObject(955, -112.00000, -1852.18994, 3.50000, 0.00000, 0.00000, 98.00000, 50000.0);
- CreateObject(4691, -72.80000, -1776.69995, 1.39000, 0.00000, 0.00000, 98.00000, 50000.0);
- CreateObject(16136, -13.90000, -1767.09998, 2.10000, 0.00000, 0.00000, 9.01099, 50000.0);
- CreateObject(8251, -111.10000, -2011.09998, 4.98000, 0.00000, 0.00000, 6.00000, 50000.0);
- CreateObject(8251, -105.10000, -2065.19995, 5.20000, 0.00000, 0.00000, 5.99854, 50000.0);
- CreateObject(16599, -101.80000, -2097.19995, 6.10000, 0.00000, 0.00000, 6.16187, 50000.0);
- CreateObject(3287, -99.20000, -2110.89990, 6.10000, 0.00000, 0.00000, 0.00000, 50000.0);
- CreateObject(8357, -53.08640, -1924.53662, 1.28380, 0.00000, 0.00000, 7.00000, 50000.0);
- CreateObject(8355, -31.63132, -2098.62036, 1.25190, 0.00000, 0.00000, 187.00000, 50000.0);
- CreateObject(18226, -153.94167, -1917.84448, -23.11775, 0.00000, 0.00000, 343.97644, 50000.0);
- CreateObject(18226, -147.50000, -1979.09998, -11.89031, 0.00000, 0.00000, 343.97644, 50000.0);
- CreateObject(18226, -137.00000, -2065.00000, -13.04143, 0.00000, 0.00000, 343.97644, 50000.0);
- CreateObject(18226, -127.60000, -2145.19995, -13.68702, 0.00000, 0.00000, 343.97803, 50000.0);
- CreateObject(18226, -20.17486, -2288.97217, -26.87016, 0.00000, 0.00000, 28.60341, 50000.0);
- CreateObject(18226, -104.30201, -2223.24805, -18.98620, 0.00000, 0.00000, 3.69344, 50000.0);
- CreateObject(18226, 48.26076, -2295.09668, -14.16646, 0.00000, 0.00000, 61.98987, 50000.0);
- CreateObject(18226, 95.84357, -2220.51294, -9.46069, 0.00000, 0.00000, 167.05508, 50000.0);
- CreateObject(18226, 70.50000, -2148.30005, -19.50205, 0.00000, 0.00000, 167.99194, 50000.0);
- CreateObject(18226, 44.95196, -1958.40320, -20.94419, 0.00000, 0.00000, 159.67239, 50000.0);
- CreateObject(18226, 60.39941, -2063.59961, -14.29203, 0.00000, 0.00000, 167.99194, 50000.0);
- CreateObject(18226, 50.42467, -1910.84851, -8.54731, 0.00000, 0.00000, 167.99744, 50000.0);
- CreateObject(18226, 35.20000, -1822.19995, -13.79790, 0.00000, 0.00000, 167.99741, 50000.0);
- CreateObject(18226, 35.71230, -1895.96802, -23.14815, 0.00000, 0.00000, 167.99744, 50000.0);
- CreateObject(18226, 16.10732, -1735.10364, -22.08484, 0.00000, 0.00000, 171.45813, 50000.0);
- CreateObject(18226, -42.79125, -1717.69958, -18.95167, 0.00000, 0.00000, 245.98938, 50000.0);
- CreateObject(18226, -83.54720, -1725.23877, -10.54940, 0.00000, 0.00000, 253.99840, 50000.0);
- CreateObject(18226, -74.84549, -1730.37048, -14.87604, 0.00000, 0.00000, 253.95351, 50000.0);
- CreateObject(18226, 16.53776, -1718.88428, -14.54710, 0.00000, 0.00000, 168.28171, 50000.0);
- CreateObject(18226, 47.51482, -2293.38745, -21.31595, 0.00000, 0.00000, 68.26936, 50000.0);
- CreateObject(18226, -160.39999, -1899.30005, -23.11775, 0.00000, 0.00000, 343.97644, 50000.0);
- CreateObject(18226, 42.02142, -2297.30127, -20.64790, 0.00000, 0.00000, 61.98987, 50000.0);
- // VEÍCULOS
- //Barcos
- AddStaticVehicleEx (452, 39.868511, -2225.372802, -0.348297, 185, 1, 1, 60);
- AddStaticVehicleEx (446, 18.429105, -2226.423339, -0.391875, 185, 1, 1, 60);
- AddStaticVehicleEx (595, -45.400684, -2234.975341, 0.093851, 185, 3, 1, 60);
- AddStaticVehicleEx (493, -2.433027, -2226.688232, -0.056759, 185, 3, 1, 60);
- AddStaticVehicleEx (454, -25.702039, -2231.077880, -0.012113, 185, 1, 1, 60);
- //Aviões
- AddStaticVehicleEx (519, 8.865216, -1863.725585, 3.156188, 98, 1, 1, 60);
- AddStaticVehicleEx (519, 17.774501, -1938.827148, 3.211332, 98, 1, 1, 60);
- AddStaticVehicleEx (476, -105.391189, -2064.957763, 2.966126, 273, 3, 1, 60);
- AddStaticVehicleEx (511, -2.308230, -1813.079467, 3.610127, 97, 1, 3, 60);
- AddStaticVehicleEx (513, -110.083343, -2010.618041, 2.795043, 272, 1, 3, 60);
- //Helicópteros
- AddStaticVehicleEx (487, 19.405151, -1996.904663, 3.681953, 95, 1, 6, 60);
- AddStaticVehicleEx (447, 24.273792, -2041.893554, 4.417486, 95, 1, 0, 60);
- AddStaticVehicleEx (548, 29.229291, -2086.204345, 6.517590, 95, 1, 0, 60);
- AddStaticVehicleEx (417, 32.858577, -2134.893066, 4.894884, 95, 1, 0, 60);
- AddStaticVehicleEx (563, 38.634292, -2182.517333, 5.118448, 95, 1, 0, 60);
- //Carros & Motos
- AddStaticVehicleEx (411, -101.737358, -1777.379516, 1.979269, 187, 2, 6, 60);
- AddStaticVehicleEx (415, -54.004772, -1804.073730, 2.022464, 7, 1, 1, 60);
- AddStaticVehicleEx (560, -76.155357, -1765.734619, 1.957139, 7, 9, 6, 60);
- AddStaticVehicleEx (495, -47.791969, -1757.542480, 2.601310, 97, 54, 6, 60);
- AddStaticVehicleEx (522, -84.058021, -1803.138427, 1.822946, 187, 137, 0, 60);
- //PORTÕES
- //BASE CSI
- StatusIlha = 0; //Status : 0 = Fechada // 1 = Aberta // 2 = Abrindo // 3 = Fechando //
- CaveiraIlha = CreateDynamicObject(8483,82.79980469,-2288.69921875,5.09999990,0.00000000,0.00000000,311.99523926); //object(pirateland02_lvs)(1)
- // Portão esquerdo
- PortaoIlha[ 0 ] = CreateDynamicObject(2990,-116.50000000,-1728.09960938,5.19999981,0.00000000,0.00000000,187.99804688);
- // Portão direito
- PortaoIlha[ 1 ] = CreateDynamicObject(2990,-126.50000000,-1729.50781250,5.19999981,0.00000000,0.00000000,187.99255371); //object(wongs_gate) (2)
- // Submarino
- PortaoIlha[ 2 ] = CreateDynamicObject(9958,-58.59999847,-1673.80004883,-1.89999998,0.00000000,0.00000000,264.99023438); //object(submarr_sfe) (1)
- // Ponte
- PortaoIlha[ 3 ] = CreateDynamicObject(18450,-115.59999847,-1766.00000000,-0.50000000,0.00000000,0.00000000,278.74511719); //object(cs_roadbridge04) (1)
- return 1;
- }
- //FORWARDS
- forward IlhaSubirSubmarino();
- public IlhaSubirSubmarino()
- {
- MoveDynamicObject( PortaoIlha[ 2 ], -58.599609375,-1673.7998046875,5.5999999046326, 1.0 );
- return 1;
- }
- forward IlhaDescerSubmarino();
- public IlhaDescerSubmarino()
- {
- MoveDynamicObject( PortaoIlha[ 2 ], -58.59999847,-1673.80004883,-1.89999998, 1.0 );
- return 1;
- }
- forward IlhaAbrirPonte();
- public IlhaAbrirPonte()
- {
- MoveDynamicObject( PortaoIlha[ 3 ], -127.50000000,-1689.39941406,0.98000002, 4.0 );
- return 1;
- }
- forward IlhaFecharPonte();
- public IlhaFecharPonte()
- {
- MoveDynamicObject( PortaoIlha[ 3 ], -115.59999847412, -1766, -0.5, 4.0 );
- return 1;
- }
- forward IlhaAbrirPortoes();
- public IlhaAbrirPortoes()
- {
- // Portão esquerdo Ilha
- MoveDynamicObject( PortaoIlha[ 0 ], -109.30000305,-1727.19995117,5.19999981, 2.0 );
- // Portão direito Ilha
- MoveDynamicObject( PortaoIlha[ 1 ], -133.69999695,-1730.50000000,5.19999981, 2.0 );
- StatusIlha = 1;
- return 1;
- }
- forward IlhaFecharPortoes();
- public IlhaFecharPortoes()
- {
- // Portão esquerdo Ilha
- MoveDynamicObject( PortaoIlha[ 0 ], -116.5,-1728.099609375,5.1999998092651, 3.0 );
- // Portão direito Ilha
- MoveDynamicObject( PortaoIlha[ 1 ], -126.5,-1729.5078125,5.1999998092651, 3.0 );
- StatusIlha = 0;
- return 1;
- }
- //COMANDOS
- CMD:abilha(playerid, params[])
- {
- if( StatusIlha == 1 )
- {
- SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha já está aberta!" );
- return 1;
- }
- if( StatusIlha == 2 )
- {
- SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha já está sendo aberta!" );
- return 1;
- }
- if( StatusIlha == 3 )
- {
- SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha está sendo fechada, aguarde para poder abrir!" );
- return 1;
- }
- StatusIlha = 2;
- SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Abrindo a ilha." );
- //
- IlhaAbrirPonte();
- IlhaSubirSubmarino();
- SetTimer( "IlhaAbrirPortoes", 15000, false );
- return 1;
- }
- CMD:fbilha(playerid, params[])
- {
- if( StatusIlha == 0 )
- {
- SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha já está fechada!" );
- return 1;
- }
- if( StatusIlha == 2 )
- {
- SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha está sendo aberta, aguarde para poder fechar!" );
- return 1;
- }
- if( StatusIlha == 3 )
- {
- SendClientMessage( playerid, COLOR_ERRO, "[ x ] A ilha já está sendo fechada!" );
- return 1;
- }
- StatusIlha = 3;
- SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Fechando a ilha." );
- //
- IlhaFecharPonte();
- IlhaDescerSubmarino();
- SetTimer( "IlhaFecharPortoes", 15000, false );
- return 1;
- }
- CMD:abcaveira(playerid, params[])
- {
- SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Abrindo a caveira da ilha." );
- MoveDynamicObject( CaveiraIlha, 82.800003051758,-2288.6999511719,-10.39999961853, 2.0 );
- return 1;
- }
- CMD:fbcaveira(playerid, params[])
- {
- SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Fechando a caveira da ilha." );
- MoveDynamicObject( CaveiraIlha, 82.7998046875,-2288.69921875,5.0999999046326, 2.0 );
- return 1;
- }
- CMD:ilha(playerid, params[])
- {
- SetPlayerPos(playerid, -137.3118,-1634.1235,3.3750);
- SendClientMessage(playerid, COLOR_VERDECLARO, "[ > ] Você se teleportou para a Ilha!" );
- return 1;
- }
- //Fim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement