Advertisement
OtaconEvil

[MAP] new boat | By OTACON

Nov 28th, 2015
720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 20.08 KB | None | 0 0
  1. /*
  2.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  3.     *
  4.     * Estè Simple MAPA esta hecho especialmente para www.forum.sa-mp.com
  5.     * NO Publicar estè MAPA en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  6.     *
  7.     * Codigo Creado Por OTACON
  8.     *
  9.     * CREDITOS:
  10.     *     OTACON: Realizacion y Idea de creacion del code.
  11.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  12.     *
  13.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  14.     *
  15.     *            Prohibido TOTALMENTE el Robo de Créditos o la
  16.     *              Publicación de este MAPA sin Mi Permiso.
  17. */
  18. /*
  19.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  20.     *
  21.     * This simple MAP is made especially for www.forum.sa-mp.com
  22.     * DO NOT Post the map in Other SAMP forums and impersonating the creator of the CODE.
  23.     *
  24.     * Code Created By OTACON
  25.     *
  26.     * CREDITS:
  27.     *     OTACON: Idea Making and code creation.
  28.     *     YOUR: Modification freely respecting the above ;).
  29.     *
  30.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  31.     *
  32.     *                    FULLY spaces Theft Credit or
  33.     *             Publication of this MAP without my permission.
  34. */
  35.  
  36. /*
  37. https://www.youtube.com/watch?v=aTezQ1jZ2kk
  38. */
  39.  
  40. #include <a_samp>
  41. #include <zcmd>
  42.  
  43. new Barco[200],
  44. VehicleBarco;
  45.  
  46. COMMAND:test(playerid, params[]){
  47.     PutPlayerInVehicle(playerid, VehicleBarco, 0);
  48.     return true;
  49. }
  50.  
  51. public OnFilterScriptInit(){
  52.     AddPlayerClass(23,230.9010,-1918.2328,4.1588,178.6758,0,0,0,0,0,0); //
  53.  
  54.     VehicleBarco=AddStaticVehicleEx(453, 230.5303, -1957.7584, -0.0118, 180.0000, -1, -1, 99999);
  55.     Barco[0]=CreateObject(19300, 230.38831, -1931.31982, 2.88890,   0.00000, 0.00000, 0.00000);
  56.     //base
  57.     Barco[1]=CreateObject(19452, 225.66840, -1935.92871, 0.15590,   0.00000, 0.00000, 0.00000);
  58.     Barco[2]=CreateObject(19452, 225.66840, -1926.35181, 0.15590,   0.00000, 0.00000, 0.00000);
  59.     Barco[3]=CreateObject(19433, 225.67039, -1923.29260, 2.34090,   90.00000, 0.00000, 0.00000);
  60.     Barco[4]=CreateObject(19433, 225.67039, -1926.76587, 2.34090,   90.00000, 0.00000, 0.00000);
  61.     Barco[5]=CreateObject(19433, 225.67039, -1930.22485, 2.34090,   90.00000, 0.00000, 0.00000);
  62.     Barco[6]=CreateObject(19433, 225.67039, -1933.70740, 2.34090,   90.00000, 0.00000, 0.00000);
  63.     Barco[7]=CreateObject(19433, 225.67039, -1937.19128, 2.34090,   90.00000, 0.00000, 0.00000);
  64.     Barco[8]=CreateObject(19433, 225.67239, -1939.00220, 2.33890,   90.00000, 0.00000, 0.00000);
  65.     Barco[9]=CreateObject(19376, 230.37827, -1942.06860, 0.67590,   0.00000, -62.00000, 90.00000);
  66.     Barco[10]=CreateObject(19452, 235.15469, -1935.92871, 0.15590,   0.00000, 0.00000, 0.00000);
  67.     Barco[11]=CreateObject(19452, 235.15469, -1926.35181, 0.15590,   0.00000, 0.00000, 0.00000);
  68.     Barco[12]=CreateObject(19433, 235.15269, -1939.00220, 2.33890,   90.00000, 0.00000, 0.00000);
  69.     Barco[13]=CreateObject(19433, 235.15269, -1933.70740, 2.34090,   90.00000, 0.00000, 0.00000);
  70.     Barco[14]=CreateObject(19433, 235.15269, -1930.22485, 2.34090,   90.00000, 0.00000, 0.00000);
  71.     Barco[15]=CreateObject(19433, 235.15269, -1926.76587, 2.34090,   90.00000, 0.00000, 0.00000);
  72.     Barco[16]=CreateObject(19433, 235.15070, -1937.19128, 2.34090,   90.00000, 0.00000, 0.00000);
  73.     Barco[17]=CreateObject(19433, 235.15269, -1923.29260, 2.34090,   90.00000, 0.00000, 0.00000);
  74.     Barco[18]=CreateObject(19376, 230.37830, -1920.35535, 0.67590,   0.00000, 62.00000, 90.00000);
  75.     Barco[19]=CreateObject(19433, 225.67039, -1923.29260, 3.93490,   90.00000, 0.00000, 0.00000);
  76.     Barco[20]=CreateObject(19433, 225.67039, -1926.76587, 3.93490,   90.00000, 0.00000, 0.00000);
  77.     Barco[21]=CreateObject(19433, 225.67039, -1930.22485, 3.21890,   90.00000, 0.00000, 0.00000);
  78.     Barco[22]=CreateObject(19433, 225.67039, -1933.70740, 3.21890,   90.00000, 0.00000, 0.00000);
  79.     Barco[23]=CreateObject(19433, 225.67039, -1937.19128, 3.21890,   90.00000, 0.00000, 0.00000);
  80.     Barco[24]=CreateObject(19433, 225.67239, -1939.00220, 3.21890,   90.00000, 0.00000, 0.00000);
  81.     Barco[25]=CreateObject(19433, 235.15269, -1923.29260, 3.93490,   90.00000, 0.00000, 0.00000);
  82.     Barco[26]=CreateObject(19433, 235.15269, -1926.76587, 3.93490,   90.00000, 0.00000, 0.00000);
  83.     Barco[27]=CreateObject(19433, 235.15269, -1930.22485, 3.21890,   90.00000, 0.00000, 0.00000);
  84.     Barco[28]=CreateObject(19433, 235.15269, -1933.70740, 3.21890,   90.00000, 0.00000, 0.00000);
  85.     Barco[29]=CreateObject(19433, 235.15070, -1937.19128, 3.21890,   90.00000, 0.00000, 0.00000);
  86.     Barco[30]=CreateObject(19433, 235.15269, -1939.00220, 3.21890,   90.00000, 0.00000, 0.00000);
  87.     Barco[31]=CreateObject(19433, 225.67039, -1919.83264, 3.93490,   90.00000, 0.00000, 0.00000);
  88.     Barco[32]=CreateObject(19433, 225.66840, -1917.55139, 3.93290,   90.00000, 0.00000, 0.00000);
  89.     Barco[33]=CreateObject(19433, 235.15269, -1919.83264, 3.93490,   90.00000, 0.00000, 0.00000);
  90.     Barco[34]=CreateObject(19433, 235.15070, -1917.55139, 3.93290,   90.00000, 0.00000, 0.00000);
  91.     Barco[35]=CreateObject(19433, 227.34143, -1915.88098, 3.93290,   90.00000, 0.00000, 90.00000);
  92.     Barco[36]=CreateObject(19433, 233.44460, -1915.88098, 3.93290,   90.00000, 0.00000, 90.00000);
  93.     Barco[37]=CreateObject(19433, 230.26300, -1915.88306, 3.93090,   90.00000, 0.00000, 90.00000);
  94.     Barco[38]=CreateObject(19433, 235.15269, -1942.48291, 3.93490,   90.00000, 0.00000, 0.00000);
  95.     Barco[39]=CreateObject(19433, 235.15070, -1944.92200, 3.93290,   90.00000, 0.00000, 0.00000);
  96.     Barco[40]=CreateObject(19433, 225.67239, -1944.92200, 3.93290,   90.00000, 0.00000, 0.00000);
  97.     Barco[41]=CreateObject(19433, 225.67239, -1942.48291, 3.93490,   90.00000, 0.00000, 0.00000);
  98.     Barco[42]=CreateObject(19433, 227.34140, -1946.58435, 3.93290,   90.00000, 0.00000, 90.00000);
  99.     Barco[43]=CreateObject(19433, 230.24304, -1946.58313, 3.93090,   90.00000, 0.00000, 90.00000);
  100.     Barco[44]=CreateObject(19433, 233.44460, -1946.58313, 3.93290,   90.00000, 0.00000, 90.00000);
  101.     Barco[45]=CreateObject(19360, 235.10690, -1941.58154, 2.16690,   62.00000, 0.00000, 0.00000);
  102.     Barco[46]=CreateObject(19433, 235.10782, -1944.42712, 2.76890,   62.00000, 0.00000, 0.00000);
  103.     Barco[47]=CreateObject(19433, 235.11203, -1917.90881, 2.76890,   -62.00000, 0.00000, 0.00000);
  104.     Barco[48]=CreateObject(19360, 235.14188, -1920.81897, 2.16690,   -62.00000, 0.00000, 0.00000);
  105.     Barco[49]=CreateObject(19360, 225.65639, -1920.79553, 2.16690,   -62.00000, 0.00000, 0.00000);
  106.     Barco[50]=CreateObject(19433, 225.65585, -1917.99878, 2.76890,   -62.00000, 0.00000, 0.00000);
  107.     Barco[51]=CreateObject(19360, 225.65094, -1941.57092, 2.16690,   62.00000, 0.00000, 0.00000);
  108.     Barco[52]=CreateObject(19433, 225.67049, -1944.45386, 2.76890,   62.00000, 0.00000, 0.00000);
  109.     for(new index=1; index<53; index++) SetObjectMaterial(Barco[index], 0, 10793, "car_ship_sfse", "freighterhull1", -1);
  110.     //piso general
  111.     Barco[53]=CreateObject(19376, 230.41229, -1921.10034, 3.07290,   0.00000, 90.00000, 90.00000);
  112.     Barco[54]=CreateObject(19376, 230.41229, -1941.29565, 3.07290,   0.00000, 90.00000, 90.00000);
  113.     Barco[55]=CreateObject(19376, 230.41229, -1931.31982, 3.07090,   0.00000, 90.00000, 90.00000);
  114.     for(new index=53; index<56; index++) SetObjectMaterial(Barco[index], 0, 10793, "car_ship_sfse", "ws_shipmetal1", -1);
  115.     //piso/techo interiores
  116.     Barco[56]=CreateObject(19365, 231.74831, -1923.50415, 6.54490,   0.00000, 90.00000, 0.00000);
  117.     Barco[57]=CreateObject(19365, 231.74831, -1926.69019, 6.54490,   0.00000, 90.00000, 0.00000);
  118.     Barco[58]=CreateObject(19365, 231.74831, -1929.84204, 6.54490,   0.00000, 90.00000, 0.00000);
  119.     Barco[59]=CreateObject(19365, 231.74831, -1933.00964, 6.54490,   0.00000, 90.00000, 0.00000);
  120.     Barco[60]=CreateObject(19365, 231.74831, -1936.20874, 6.54490,   0.00000, 90.00000, 0.00000);
  121.     Barco[61]=CreateObject(19365, 231.74831, -1939.37183, 6.54490,   0.00000, 90.00000, 0.00000);
  122.     Barco[62]=CreateObject(19365, 229.04970, -1923.50415, 6.54690,   0.00000, 90.00000, 0.00000);
  123.     Barco[63]=CreateObject(19365, 229.04970, -1926.69019, 6.54690,   0.00000, 90.00000, 0.00000);
  124.     Barco[64]=CreateObject(19365, 229.04970, -1929.84204, 6.54690,   0.00000, 90.00000, 0.00000);
  125.     Barco[65]=CreateObject(19365, 229.04970, -1933.00964, 6.54690,   0.00000, 90.00000, 0.00000);
  126.     Barco[66]=CreateObject(19365, 229.04970, -1936.18872, 6.54690,   0.00000, 90.00000, 0.00000);
  127.     Barco[67]=CreateObject(19365, 229.04970, -1939.37183, 6.54690,   0.00000, 90.00000, 0.00000);
  128.     Barco[68]=CreateObject(19365, 229.04970, -1923.50415, 3.13290,   0.00000, 90.00000, 0.00000);
  129.     Barco[69]=CreateObject(19365, 231.74831, -1923.50415, 3.13090,   0.00000, 90.00000, 0.00000);
  130.     Barco[70]=CreateObject(19365, 229.04970, -1926.69019, 3.13290,   0.00000, 90.00000, 0.00000);
  131.     Barco[71]=CreateObject(19365, 231.74831, -1926.69019, 3.13090,   0.00000, 90.00000, 0.00000);
  132.     Barco[72]=CreateObject(19365, 229.04970, -1929.84204, 3.13290,   0.00000, 90.00000, 0.00000);
  133.     Barco[73]=CreateObject(19365, 231.74831, -1929.84204, 3.13090,   0.00000, 90.00000, 0.00000);
  134.     Barco[74]=CreateObject(19365, 229.04970, -1933.00964, 3.13290,   0.00000, 90.00000, 0.00000);
  135.     Barco[75]=CreateObject(19365, 231.74831, -1933.00964, 3.13090,   0.00000, 90.00000, 0.00000);
  136.     Barco[76]=CreateObject(19365, 229.04970, -1936.18872, 3.13290,   0.00000, 90.00000, 0.00000);
  137.     Barco[77]=CreateObject(19365, 231.74831, -1936.20874, 3.13090,   0.00000, 90.00000, 0.00000);
  138.     Barco[78]=CreateObject(19365, 229.04970, -1939.37183, 3.13290,   0.00000, 90.00000, 0.00000);
  139.     Barco[79]=CreateObject(19365, 231.74831, -1939.37183, 3.13090,   0.00000, 90.00000, 0.00000);
  140.     Barco[80]=CreateObject(19365, 230.41220, -1936.06018, 10.00090,   0.00000, 90.00000, 90.00000);
  141.     Barco[81]=CreateObject(19365, 230.41220, -1932.58130, 10.00090,   0.00000, 90.00000, 90.00000);
  142.     Barco[82]=CreateObject(19365, 230.41220, -1929.09167, 10.00090,   0.00000, 90.00000, 90.00000);
  143.     Barco[83]=CreateObject(19365, 230.41220, -1926.86633, 9.99890,   0.00000, 90.00000, 90.00000);
  144.     for(new index=56; index<84; index++) SetObjectMaterial(Barco[index], 0, 10793, "car_ship_sfse", "ws_shipmetal1", -1);
  145.     //paredes
  146.     Barco[84]=CreateObject(19366, 230.41209, -1937.76428, 8.32890,   0.11800, 0.00000, 90.00000);
  147.     Barco[85]=CreateObject(19366, 231.93370, -1933.00964, 8.32890,   0.00000, 0.00000, 0.00000);
  148.     Barco[86]=CreateObject(19366, 231.93370, -1929.84204, 8.32890,   0.00000, 0.00000, 0.00000);
  149.     Barco[87]=CreateObject(19366, 228.89680, -1929.84204, 8.32890,   0.00000, 0.00000, 0.00000);
  150.     Barco[88]=CreateObject(19366, 228.89680, -1933.00964, 8.32890,   0.00000, 0.00000, 0.00000);
  151.     Barco[89]=CreateObject(19366, 230.39233, -1925.17468, 8.32890,   0.11800, 0.00000, 90.00000);
  152.     Barco[90]=CreateObject(19366, 233.41029, -1933.00964, 4.86690,   0.00000, 0.00000, 0.00000);
  153.     Barco[91]=CreateObject(19366, 233.41029, -1929.84204, 4.86690,   0.00000, 0.00000, 0.00000);
  154.     Barco[92]=CreateObject(19366, 227.38570, -1929.84204, 4.86690,   0.00000, 0.00000, 0.00000);
  155.     Barco[93]=CreateObject(19366, 227.38570, -1933.00964, 4.86690,   0.00000, 0.00000, 0.00000);
  156.     Barco[94]=CreateObject(19366, 233.41026, -1939.36621, 4.86690,   0.00000, 0.00000, 0.00000);
  157.     Barco[95]=CreateObject(19366, 227.38570, -1939.36621, 4.86690,   0.00000, 0.00000, 0.00000);
  158.     Barco[96]=CreateObject(19366, 227.38570, -1923.50964, 4.86690,   0.00000, 0.00000, 0.00000);
  159.     Barco[97]=CreateObject(19366, 233.41029, -1923.50964, 4.86690,   0.00000, 0.00000, 0.00000);
  160.     Barco[98]=CreateObject(19366, 231.93370, -1936.18872, 8.32890,   0.00000, 0.00000, 0.00000);
  161.     Barco[99]=CreateObject(19366, 231.93370, -1926.71021, 8.32890,   0.00000, 0.00000, 0.00000);
  162.     Barco[100]=CreateObject(19366, 228.89680, -1926.71021, 8.32890,   0.00000, 0.00000, 0.00000);
  163.     Barco[101]=CreateObject(19366, 228.89680, -1936.18872, 8.32890,   0.00000, 0.00000, 0.00000);
  164.     Barco[102]=CreateObject(19366, 228.90965, -1940.88916, 4.86690,   0.00000, 0.00000, 90.00000);
  165.     Barco[103]=CreateObject(19366, 231.89230, -1940.90845, 4.86690,   0.00000, 0.00000, 90.00000);
  166.     Barco[104]=CreateObject(19366, 231.89230, -1921.98669, 4.86690,   0.00000, 0.00000, 90.00000);
  167.     Barco[105]=CreateObject(19366, 228.90970, -1921.98669, 4.86690,   0.00000, 0.00000, 90.00000);
  168.     for(new index=84; index<106; index++) SetObjectMaterial(Barco[index], 0, 10793, "car_ship_sfse", "freighter4", -1);
  169.     Barco[106]=CreateObject(19366, 233.41029, -1936.18872, 4.86690,   0.00000, 0.00000, 0.00000);
  170.     Barco[107]=CreateObject(19366, 227.38570, -1936.18872, 4.86690,   0.00000, 0.00000, 0.00000);
  171.     Barco[108]=CreateObject(19366, 233.41029, -1926.71021, 4.86690,   0.00000, 0.00000, 0.00000);
  172.     Barco[109]=CreateObject(19366, 227.38570, -1926.71021, 4.86690,   0.00000, 0.00000, 0.00000);
  173.     for(new index=106; index<110; index++) SetObjectMaterial(Barco[index], 0, 10793, "car_ship_sfse", "freighter1", -1);
  174.     //otros
  175.     Barco[110]=CreateObject(1691, 230.41220, -1934.75061, 10.51210,   0.00000, 0.00000, 0.00000);
  176.     Barco[111]=CreateObject(1691, 230.41220, -1928.28247, 10.51210,   0.00000, 0.00000, 0.00000);
  177.     //ventanas
  178.     Barco[112]=CreateObject(19466, 228.80161, -1929.84204, 8.44370,   0.00000, 0.00000, 0.00000);
  179.     Barco[113]=CreateObject(19466, 228.80161, -1933.01013, 8.44370,   0.00000, 0.00000, 0.00000);
  180.     Barco[114]=CreateObject(19466, 232.03790, -1929.84204, 8.44370,   0.00000, 0.00000, 0.00000);
  181.     Barco[115]=CreateObject(19466, 232.03790, -1933.01013, 8.44370,   0.00000, 0.00000, 0.00000);
  182.     Barco[116]=CreateObject(19466, 230.41209, -1937.86096, 8.44370,   0.00000, 0.00000, 90.00000);
  183.     Barco[117]=CreateObject(19466, 230.41209, -1925.07153, 8.44370,   0.00000, 0.00000, 90.00000);
  184.     Barco[118]=CreateObject(19466, 227.26270, -1929.89075, 5.36770,   0.00000, 0.00000, 0.00000);
  185.     Barco[119]=CreateObject(19466, 227.26270, -1933.00964, 5.36770,   0.00000, 0.00000, 0.00000);
  186.     Barco[120]=CreateObject(19466, 227.26270, -1939.36621, 5.36770,   0.00000, 0.00000, 0.00000);
  187.     Barco[121]=CreateObject(19466, 227.26270, -1923.50964, 5.36770,   0.00000, 0.00000, 0.00000);
  188.     Barco[122]=CreateObject(19466, 233.59550, -1923.50964, 5.36770,   0.00000, 0.00000, 0.00000);
  189.     Barco[123]=CreateObject(19466, 233.59550, -1929.89075, 5.36770,   0.00000, 0.00000, 0.00000);
  190.     Barco[124]=CreateObject(19466, 233.59550, -1933.00964, 5.36770,   0.00000, 0.00000, 0.00000);
  191.     Barco[125]=CreateObject(19466, 233.59550, -1939.36621, 5.36770,   0.00000, 0.00000, 0.00000);
  192.     for(new index=112; index<126; index++) SetObjectMaterial(Barco[index], 0, 10793, "car_ship_sfse", "alleywin5", -1);
  193.     //escaleras
  194.     Barco[126]=CreateObject(13011, 232.74440, -1941.54980, 3.27170,   0.00000, 0.00000, 90.00000);
  195.     Barco[127]=CreateObject(13011, 232.60080, -1932.43689, 6.70770,   0.00000, 0.00000, 180.00000);
  196.     Barco[128]=CreateObject(13011, 224.63190, -1933.98389, 0.06270,   0.00000, 0.00000, 0.00000);
  197.  
  198.     Barco[129]=CreateObject(19466, 227.41521, -1937.62842, 6.76670,   0.00000, 0.00000, 0.00000);
  199.     Barco[130]=CreateObject(19466, 227.41521, -1935.42798, 6.76670,   0.00000, 0.00000, 0.00000);
  200.     Barco[131]=CreateObject(19466, 227.41521, -1933.20984, 6.76670,   0.00000, 0.00000, 0.00000);
  201.     Barco[132]=CreateObject(19466, 227.41521, -1930.98987, 6.76670,   0.00000, 0.00000, 0.00000);
  202.     Barco[133]=CreateObject(19466, 227.41521, -1928.78906, 6.76670,   0.00000, 0.00000, 0.00000);
  203.     Barco[134]=CreateObject(19466, 227.41521, -1926.54773, 6.76670,   0.00000, 0.00000, 0.00000);
  204.     Barco[135]=CreateObject(19466, 227.41521, -1924.30774, 6.76670,   0.00000, 0.00000, 0.00000);
  205.     Barco[136]=CreateObject(19466, 227.41521, -1923.06775, 6.76670,   0.00000, 0.00000, 0.00000);
  206.     Barco[137]=CreateObject(19466, 233.45520, -1923.06775, 6.76670,   0.00000, 0.00000, 0.00000);
  207.     Barco[138]=CreateObject(19466, 233.45520, -1924.30774, 6.76670,   0.00000, 0.00000, 0.00000);
  208.     Barco[139]=CreateObject(19466, 233.45520, -1926.54773, 6.76670,   0.00000, 0.00000, 0.00000);
  209.     Barco[140]=CreateObject(19466, 233.45520, -1928.78906, 6.76670,   0.00000, 0.00000, 0.00000);
  210.     Barco[141]=CreateObject(19466, 233.45520, -1930.98987, 6.76670,   0.00000, 0.00000, 0.00000);
  211.     Barco[142]=CreateObject(19466, 233.45520, -1933.20984, 6.76670,   0.00000, 0.00000, 0.00000);
  212.     Barco[143]=CreateObject(19466, 233.45520, -1935.42798, 6.76670,   0.00000, 0.00000, 0.00000);
  213.     Barco[144]=CreateObject(19466, 227.40590, -1939.86865, 6.76670,   0.00000, 0.00000, 0.00000);
  214.     Barco[145]=CreateObject(19466, 233.45520, -1937.62842, 6.76670,   0.00000, 0.00000, 0.00000);
  215.     Barco[146]=CreateObject(19466, 233.45520, -1939.86865, 6.76670,   0.00000, 0.00000, 0.00000);
  216.     Barco[147]=CreateObject(19466, 228.54590, -1921.94788, 6.76670,   0.00000, 0.00000, 90.00000);
  217.     Barco[148]=CreateObject(19466, 230.75970, -1921.94788, 6.76670,   0.00000, 0.00000, 90.00000);
  218.     Barco[149]=CreateObject(19466, 232.33701, -1921.94788, 6.76670,   0.00000, 0.00000, 90.00000);
  219.     Barco[150]=CreateObject(19466, 232.33569, -1940.97375, 6.76670,   0.00000, 0.00000, 90.00000);
  220.     Barco[151]=CreateObject(19466, 230.59460, -1940.97375, 6.76670,   0.00000, 0.00000, 90.00000);
  221.     Barco[152]=CreateObject(19466, 230.87340, -1937.78064, 10.22870,   0.00000, 0.00000, 90.00000);
  222.     Barco[153]=CreateObject(19466, 229.93159, -1937.77991, 10.22670,   0.00000, 0.00000, 90.00000);
  223.     Barco[154]=CreateObject(19466, 228.82021, -1936.64355, 10.22670,   0.00000, 0.00000, 0.00000);
  224.     Barco[155]=CreateObject(19466, 228.82021, -1934.40381, 10.22670,   0.00000, 0.00000, 0.00000);
  225.     Barco[156]=CreateObject(19466, 228.82021, -1932.16309, 10.22670,   0.00000, 0.00000, 0.00000);
  226.     Barco[157]=CreateObject(19466, 228.82021, -1929.94238, 10.22670,   0.00000, 0.00000, 0.00000);
  227.     Barco[158]=CreateObject(19466, 228.82021, -1927.70190, 10.22670,   0.00000, 0.00000, 0.00000);
  228.     Barco[159]=CreateObject(19466, 228.82021, -1926.26123, 10.22670,   0.00000, 0.00000, 0.00000);
  229.     Barco[160]=CreateObject(19466, 230.87340, -1925.14270, 10.22870,   0.00000, 0.00000, 90.00000);
  230.     Barco[161]=CreateObject(19466, 229.93159, -1925.14270, 10.22670,   0.00000, 0.00000, 90.00000);
  231.     Barco[162]=CreateObject(19466, 231.98759, -1927.70190, 10.22670,   0.00000, 0.00000, 0.00000);
  232.     Barco[163]=CreateObject(19466, 231.98759, -1926.26123, 10.22670,   0.00000, 0.00000, 0.00000);
  233.     Barco[164]=CreateObject(19466, 231.98759, -1929.94238, 10.22670,   0.00000, 0.00000, 0.00000);
  234.     Barco[165]=CreateObject(19466, 231.98759, -1932.16309, 10.22670,   0.00000, 0.00000, 0.00000);
  235.     Barco[166]=CreateObject(19466, 231.98759, -1934.40381, 10.22670,   0.00000, 0.00000, 0.00000);
  236.     for(new index=129; index<167; index++) SetObjectMaterial(Barco[index], 0, 13011, "sw_block12", "des_rails1", -1);
  237.  
  238.     //nombre barco
  239.     new boatdata[25],vehicleid=25;
  240.     format(boatdata,sizeof(boatdata),"BOAT %d:",vehicleid);
  241.     Barco[167]=CreateObject(19360, 225.44031, -1920.67236, 3.93490,   0.00000, 0.00000, 0.00000);
  242.     Barco[168]=CreateObject(19360, 225.44031, -1923.29260, 3.93490,   0.00000, 0.00000, 0.00000);
  243.     Barco[169]=CreateObject(19360, 235.40550, -1923.29260, 3.93490,   0.00000, 0.00000, 0.00000);
  244.     Barco[170]=CreateObject(19360, 235.40550, -1920.67236, 3.93490,   0.00000, 0.00000, 0.00000);
  245.     SetObjectMaterialText(Barco[167], boatdata, 0, 50, "Arial", 20, 1, 0xFFFFFFD3, 0, 1);
  246.     SetObjectMaterialText(Barco[168], "THE TROLL", 0, 50, "Arial", 20, 1, 0xFFFFFFD3, 0, 1);
  247.     SetObjectMaterialText(Barco[169], boatdata, 0, 50, "Arial", 20, 1, 0xFFFFFFD3, 0, 1);
  248.     SetObjectMaterialText(Barco[170], "THE TROLL", 0, 50, "Arial", 20, 1, 0xFFFFFFD3, 0, 1);
  249.    
  250.     //bordes
  251.     Barco[171]=CreateObject(14397, 225.35614, -1917.35925, 2.20150,   0.00000, 0.00000, 90.00000);
  252.     Barco[172]=CreateObject(14397, 225.35609, -1931.18323, 2.20150,   0.00000, 0.00000, 90.00000);
  253.     Barco[173]=CreateObject(14397, 234.75571, -1931.18323, 2.20150,   0.00000, 0.00000, 90.00000);
  254.     Barco[174]=CreateObject(14397, 234.75571, -1917.35925, 2.20150,   0.00000, 0.00000, 90.00000);
  255.     for(new index=171; index<175; index++) SetObjectMaterial(Barco[index], 0, 10793, "car_ship_sfse", "freighterhull1", -1);
  256.    
  257.     new Float:pos[4][6];
  258.     for(new index=1; index<175; index++){
  259.         GetObjectPos(Barco[0],pos[0][0],pos[0][1],pos[0][2]);
  260.         GetObjectPos(Barco[index],pos[1][0],pos[1][1],pos[1][2]);
  261.         GetObjectRot(Barco[index],pos[2][0],pos[2][1],pos[2][2]);
  262.         AttachObjectToObject(Barco[index], Barco[0], floatsub(pos[1][0], pos[0][0]),floatsub(pos[1][1], pos[0][1]),floatsub(pos[1][2], pos[0][2]), pos[2][0],pos[2][1],pos[2][2], 1);
  263.     }
  264.     AttachObjectToVehicle(Barco[0], VehicleBarco, 0,-25,2,0,0,0);
  265.     LinkVehicleToInterior(VehicleBarco, 6);
  266.     return true;
  267. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement