OtaconEvil

[FS] cámping | By OTACON

Jan 30th, 2016
4,156
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  3.     *
  4.     * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
  5.     * NO Publicar estè FILTERSCRIPT 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 FILTERSCRIPT sin Mi Permiso.
  17. */
  18. /*
  19.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  20.     *
  21.     * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
  22.     * DO NOT Post the FILTERSCRIPT 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 FILTERSCRIPT without my permission.
  34. */
  35.  
  36. /*
  37.  
  38. https://www.youtube.com/watch?v=uM43Rlo613Y
  39.  
  40. */
  41.  
  42. #include <a_samp>
  43. #include <zcmd>
  44. #include <streamer>
  45.  
  46. #define MAX_CAMP_CARP   (100)
  47. #define MAX_CAMP_OBJECT (80)
  48. new Campamento[MAX_CAMP_CARP][MAX_CAMP_OBJECT],
  49. ContarCampamento;
  50.  
  51. COMMAND:camp1(playerid, params[]){
  52.     new Float:pos[4];
  53.     GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
  54.     GetPlayerFacingAngle(playerid,pos[3]);
  55.     pos[0] = pos[0] + (2.0 * floatsin(-pos[3], degrees));
  56.     pos[1] = pos[1] + (2.0 * floatcos(-pos[3], degrees));
  57.    
  58.     CreateObjectCamp(pos[0],pos[1],pos[2],pos[3]);
  59.     return true;
  60. }
  61. COMMAND:camp2(playerid, params[]){
  62.     DestroyObjectCamp();
  63.     return true;
  64. }
  65.  
  66. stock CreateObjectCamp(Float:x,Float:y,Float:z,Float:a){
  67.     if(ContarCampamento>=MAX_CAMP_CARP)return false;
  68.     ContarCampamento++;
  69.     //otros
  70.     Campamento[ContarCampamento][0]=CreateObject(19300, 309.64999, 1827.71790, 16.63540,   0.00000, 0.00000, 0.00000);
  71.     Campamento[ContarCampamento][1]=CreateObject(841, 309.22369, 1831.88953, 16.69970,   0.00000, 0.00000, 0.00000);
  72.     Campamento[ContarCampamento][2]=CreateObject(841, 309.22369, 1831.88953, 16.69970,   0.00000, 0.00000, 76.00000);
  73.     Campamento[ContarCampamento][3]=CreateObject(841, 309.22369, 1831.88953, 16.69970,   0.00000, 0.00000, 149.00000);
  74.     Campamento[ContarCampamento][5]=CreateObject(18688, 309.12091, 1831.89697, 15.53580,   0.00000, 0.00000, 0.00000);
  75.     Campamento[ContarCampamento][6]=CreateObject(1281, 307.06400, 1825.51147, 17.43860,   0.00000, 0.00000, 90.00000);
  76.     Campamento[ContarCampamento][7]=CreateObject(3119, 306.98322, 1825.67725, 17.72950,   0.00000, 0.00000, -55.00000);
  77.     Campamento[ContarCampamento][8]=CreateObject(1370, 314.04535, 1824.03284, 17.20480,   0.00000, 0.00000, 0.00000);
  78.     Campamento[ContarCampamento][9]=CreateObject(1220, 313.99738, 1822.29041, 17.00860,   0.00000, 0.00000, 0.00000);
  79.     Campamento[ContarCampamento][10]=CreateObject(1220, 314.13629, 1823.18933, 17.00860,   0.00000, 0.00000, -11.00000);
  80.     Campamento[ContarCampamento][11]=CreateObject(1220, 314.00919, 1827.55420, 17.00860,   0.00000, 0.00000, 0.00000);
  81.     Campamento[ContarCampamento][12]=CreateObject(1220, 310.41464, 1827.40930, 17.00860,   0.00000, 0.00000, 0.00000);
  82.     Campamento[ContarCampamento][13]=CreateObject(3119, 314.37982, 1830.49329, 16.94750,   0.00000, 0.00000, -156.00000);
  83.     Campamento[ContarCampamento][14]=CreateObject(1220, 314.07486, 1828.73547, 17.00860,   0.00000, 0.00000, 40.00000);
  84.     Campamento[ContarCampamento][15]=CreateObject(349, 312.55099, 1826.56604, 17.19990,   69.00000, -4.00000, 86.00000);
  85.     Campamento[ContarCampamento][16]=CreateObject(347, 313.96811, 1827.36511, 17.34890,   69.00000, 33.00000, 86.00000);
  86.     Campamento[ContarCampamento][17]=CreateObject(347, 314.11807, 1827.25049, 17.34890,   69.00000, 33.00000, 86.00000);
  87.     Campamento[ContarCampamento][18]=CreateObject(1220, 309.07526, 1822.31531, 17.00860,   0.00000, 0.00000, 11.00000);
  88.     Campamento[ContarCampamento][19]=CreateObject(1220, 309.11325, 1823.18738, 17.00860,   0.00000, 0.00000, -2.00000);
  89.     Campamento[ContarCampamento][20]=CreateObject(2226, 307.81601, 1826.09961, 17.11780,   0.00000, 0.00000, 99.00000);
  90.     Campamento[ContarCampamento][21]=CreateObject(1265, 309.27954, 1828.07727, 17.07260,   0.00000, 0.00000, 0.00000);
  91.     Campamento[ContarCampamento][22]=CreateObject(2674, 308.82733, 1828.01672, 16.67070,   0.00000, 0.00000, 280.00000);
  92.     Campamento[ContarCampamento][23]=CreateObject(2674, 308.59909, 1822.75769, 16.67070,   0.00000, 0.00000, 280.00000);
  93.     Campamento[ContarCampamento][24]=CreateObject(2675, 314.76166, 1826.96948, 16.71070,   0.00000, 0.00000, 215.00000);
  94.     Campamento[ContarCampamento][25]=CreateObject(2674, 306.85934, 1831.50134, 16.67070,   0.00000, 0.00000, 280.00000);
  95.     Campamento[ContarCampamento][26]=CreateObject(2674, 311.39514, 1832.03796, 16.67070,   0.00000, 0.00000, 280.00000);
  96.     Campamento[ContarCampamento][27]=CreateObject(1544, 307.23172, 1830.62488, 17.20720,   0.00000, 0.00000, 0.00000);
  97.     Campamento[ContarCampamento][28]=CreateObject(1544, 311.27390, 1831.59717, 17.20720,   0.00000, 0.00000, 0.00000);
  98.     Campamento[ContarCampamento][29]=CreateObject(1544, 311.04810, 1832.66846, 16.64720,   0.00000, 0.00000, 0.00000);
  99.     Campamento[ContarCampamento][30]=CreateObject(1544, 311.44269, 1832.80554, 16.64720,   0.00000, 0.00000, 0.00000);
  100.     Campamento[ContarCampamento][31]=CreateObject(2114, 307.06149, 1826.76563, 16.75140,   0.00000, 0.00000, 0.00000);
  101.     Campamento[ContarCampamento][32]=CreateObject(2114, 306.64496, 1826.91589, 16.75140,   0.00000, 0.00000, 0.00000);
  102.     Campamento[ContarCampamento][33]=CreateObject(2805, 307.63596, 1833.62769, 17.18640,   0.00000, 0.00000, 0.00000);
  103.     Campamento[ContarCampamento][34]=CreateObject(2804, 309.65308, 1831.65540, 18.46040,   -90.00000, 0.00000, -32.00000);
  104.     Campamento[ContarCampamento][35]=CreateObject(2804, 309.31732, 1831.97778, 18.46040,   -90.00000, 0.00000, -32.00000);
  105.     Campamento[ContarCampamento][36]=CreateObject(2804, 308.98053, 1832.27246, 18.46040,   -90.00000, 0.00000, -32.00000);
  106.     Campamento[ContarCampamento][37]=CreateObject(18632, 306.55414, 1830.47681, 16.74740,   180.00000, 26.00000, 207.00000);
  107.     Campamento[ContarCampamento][38]=CreateObject(18632, 306.60620, 1830.36890, 16.74740,   180.00000, 26.00000, 207.00000);
  108.     Campamento[ContarCampamento][39]=CreateObject(18632, 306.64035, 1830.25195, 16.74740,   180.00000, 26.00000, 207.00000);
  109.     Campamento[ContarCampamento][40]=CreateObject(2864, 306.93115, 1825.70532, 17.45210,   0.00000, 0.00000, 0.00000);
  110.     Campamento[ContarCampamento][41]=CreateObject(2863, 306.76468, 1825.27625, 17.45210,   0.00000, 0.00000, 0.00000);
  111.     Campamento[ContarCampamento][42]=CreateObject(2852, 310.45197, 1827.41333, 17.35810,   0.00000, 0.00000, 0.00000);
  112.     Campamento[ContarCampamento][43]=CreateObject(2844, 312.00867, 1826.49011, 16.65310,   0.00000, 0.00000, 0.00000);
  113.     Campamento[ContarCampamento][44]=CreateObject(2843, 310.91702, 1826.76746, 16.65310,   0.00000, 0.00000, -178.00000);
  114.     Campamento[ContarCampamento][45]=CreateObject(323, 310.27969, 1823.99805, 16.94830,   0.00000, 90.00000, 76.00000);
  115.     Campamento[ContarCampamento][46]=CreateObject(321, 310.41483, 1824.22131, 16.94830,   0.00000, 90.00000, 76.00000);
  116.     //bolsos carpa
  117.     Campamento[ContarCampamento][47]=CreateObject(1550, 310.25449, 1826.72754, 17.03370,   0.00000, 0.00000, 0.00000);
  118.     Campamento[ContarCampamento][48]=CreateObject(1550, 310.16809, 1826.17139, 16.82970,   0.00000, 90.00000, 265.00000);
  119.     //sillas
  120.     Campamento[ContarCampamento][49]=CreateObject(2121, 310.02151, 1829.67651, 17.15670,   0.00000, 0.00000, 179.00000);
  121.     Campamento[ContarCampamento][50]=CreateObject(2121, 309.18134, 1829.70996, 17.15670,   0.00000, 0.00000, 200.00000);
  122.     Campamento[ContarCampamento][51]=CreateObject(2121, 311.36627, 1831.60779, 17.15670,   0.00000, 0.00000, -112.00000);
  123.     Campamento[ContarCampamento][52]=CreateObject(2121, 311.33826, 1832.58765, 17.15670,   0.00000, 0.00000, -91.00000);
  124.     Campamento[ContarCampamento][53]=CreateObject(2121, 307.19360, 1830.67285, 17.15670,   0.00000, 0.00000, 113.00000);
  125.     Campamento[ContarCampamento][54]=CreateObject(2121, 307.08627, 1831.59216, 17.15670,   0.00000, 0.00000, 76.00000);
  126.     Campamento[ContarCampamento][55]=CreateObject(2121, 312.73245, 1826.76624, 17.15670,   0.00000, 0.00000, -90.00000);
  127.     for(new index=49; index<56; index++) SetObjectMaterial(Campamento[ContarCampamento][index], 0, 1281, "benches", "pierdoor02_law", -1);
  128.     //cuerdas
  129.     Campamento[ContarCampamento][56]=CreateObject(19087, 307.79419, 1833.44189, 18.78920,   0.00000, 90.00000, 135.00000);
  130.     Campamento[ContarCampamento][57]=CreateObject(19087, 308.87219, 1832.36987, 18.78920,   0.00000, 90.00000, 135.00000);
  131.     Campamento[ContarCampamento][58]=CreateObject(19089, 311.72137, 1828.64319, 19.62920,   0.00000, -42.00000, 90.00000);
  132.     Campamento[ContarCampamento][59]=CreateObject(19089, 311.72141, 1822.50464, 19.62920,   0.00000, 42.00000, 90.00000);
  133.     Campamento[ContarCampamento][60]=CreateObject(19089, 311.67493, 1823.13049, 19.86420,   0.00000, -53.00000, 0.00000);
  134.     Campamento[ContarCampamento][61]=CreateObject(19089, 311.67303, 1827.79321, 19.86420,   0.00000, -53.00000, 0.00000);
  135.     Campamento[ContarCampamento][62]=CreateObject(19089, 311.65009, 1827.76843, 19.86420,   0.00000, -53.00000, 180.00000);
  136.     Campamento[ContarCampamento][63]=CreateObject(19089, 311.63867, 1823.11316, 19.86420,   0.00000, -53.00000, 180.00000);
  137.     for(new index=56; index<64; index++) SetObjectMaterial(Campamento[ContarCampamento][index], 0, -1, "none", "none", 0xFF808484);
  138.     //palos fogata
  139.     Campamento[ContarCampamento][64]=CreateObject(1251, 310.61270, 1830.58606, 15.53550,   90.00000, 0.00000, 0.00000);
  140.     Campamento[ContarCampamento][65]=CreateObject(1251, 307.87411, 1833.35156, 15.53550,   90.00000, 0.00000, 0.00000);
  141.     for(new index=64; index<67; index++) SetObjectMaterial(Campamento[ContarCampamento][index], 0, 841, "gta_brokentrees", "CJ_bark", -1);
  142.     //camas carpa
  143.     Campamento[ContarCampamento][67]=CreateObject(1646, 310.20544, 1823.86487, 16.78320,   0.00000, 0.00000, 180.00000);
  144.     Campamento[ContarCampamento][68]=CreateObject(1646, 312.31110, 1824.50134, 16.78320,   0.00000, 0.00000, -90.00000);
  145.     Campamento[ContarCampamento][69]=CreateObject(1646, 312.31107, 1825.72351, 16.78320,   0.00000, 0.00000, -90.00000);
  146.     Campamento[ContarCampamento][70]=CreateObject(1646, 314.25800, 1830.57471, 16.78320,   0.00000, 0.00000, -154.00000);
  147.     for(new index=67; index<71; index++) SetObjectMaterial(Campamento[ContarCampamento][index], 25, -1, "none", "none", -1);
  148.     for(new index=67; index<71; index++) SetObjectMaterial(Campamento[ContarCampamento][index], 26, -1, "none", "none", -1);
  149.     //carpa
  150.     Campamento[ContarCampamento][71]=CreateObject(19325, 312.76309, 1825.48145, 18.11690,   0.00000, -32.00000, 0.00000);
  151.     Campamento[ContarCampamento][72]=CreateObject(19325, 310.53009, 1825.48145, 18.11690,   0.00000, 34.00000, 0.00000);
  152.     Campamento[ContarCampamento][73]=CreateObject(19325, 311.59631, 1825.51514, 16.65890,   0.00000, 90.00000, 0.00000);
  153.     for(new index=71; index<74; index++) SetObjectMaterial(Campamento[ContarCampamento][index], 0, 3066, "ammotrx", "ammotrn92tarp128", -1);
  154.     //entrada carpa
  155.     Campamento[ContarCampamento][74]=CreateObject(2068, 310.92621, 1829.37927, 14.26150,   138.00000, 105.00000, 78.00000);
  156.     Campamento[ContarCampamento][75]=CreateObject(2068, 312.47238, 1821.60352, 14.26150,   138.00000, 105.00000, 260.00000);
  157.     Campamento[ContarCampamento][76]=CreateObject(2068, 312.40381, 1828.17834, 14.26150,   138.00000, 105.00000, -99.00000);
  158.     Campamento[ContarCampamento][77]=CreateObject(2068, 311.01590, 1822.85583, 14.26150,   138.00000, 105.00000, 79.00000);
  159.     for(new index=74; index<78; index++) SetObjectMaterial(Campamento[ContarCampamento][index], 0, -1, "none", "none", 0xFF808484);
  160.     //luces carpa
  161.     Campamento[ContarCampamento][78]=CreateObject(2074, 311.69241, 1824.52930, 19.50400,   0.00000, 0.00000, 0.00000);
  162.     Campamento[ContarCampamento][79]=CreateObject(2074, 311.71283, 1826.09229, 19.50400,   0.00000, 0.00000, 0.00000);
  163.    
  164.     for(new index=1; index<MAX_CAMP_OBJECT; index++){
  165.         new Float:pos[2][6];
  166.         GetObjectPos(Campamento[ContarCampamento][0],pos[0][0],pos[0][1],pos[0][2]);
  167.         GetObjectPos(Campamento[ContarCampamento][index],pos[1][0],pos[1][1],pos[1][2]);
  168.         GetObjectRot(Campamento[ContarCampamento][index],pos[1][3],pos[1][4],pos[1][5]);
  169.         AttachObjectToObject(Campamento[ContarCampamento][index], Campamento[ContarCampamento][0], floatsub(pos[1][0], pos[0][0]),floatsub(pos[1][1], pos[0][1]),floatsub(pos[1][2], pos[0][2]), pos[1][3],pos[1][4],pos[1][5], 1);
  170.     }
  171.     SetObjectPos(Campamento[ContarCampamento][0],x,y,z-0.9);
  172.     SetObjectRot(Campamento[ContarCampamento][0],0.00000, 0.00000, a-180);
  173.     return true;
  174. }
  175. stock DestroyObjectCamp(){
  176.     if(ContarCampamento<=0)return false;
  177.     for(new index=0; index<MAX_CAMP_OBJECT; index++) DestroyObject(Campamento[ContarCampamento][index]);
  178.     ContarCampamento--;
  179.     return true;
  180. }
RAW Paste Data