Advertisement
OtaconEvil

[MAP] ATM 2.0 | By OTACON

Sep 28th, 2015
813
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 10.58 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=4UsnYB0tnBk
  38. */
  39.  
  40.  
  41. #include <a_samp>
  42. new CajerosATM[73];
  43.  
  44. public OnFilterScriptInit(){
  45.     AddPlayerClass(23,316.0880,1807.7147,17.6406,88.9339,0,0,0,0,0,0); //
  46.     CajerosATM[0]=CreateObject(18764, 308.67929, 1807.96887, 14.66570,   0.00000, 0.00000, 0.00000);
  47.     SetObjectMaterial(CajerosATM[0], 0, 14536, "pleas_dome", "club_floor2_sfwTEST", -1);
  48.     CajerosATM[1]=CreateObject(19325, 308.67291, 1809.96863, 17.93580,   90.00000, 0.00000, 90.00000);
  49.     CajerosATM[2]=CreateObject(19325, 308.67291, 1805.96948, 17.93580,   90.00000, 0.00000, 90.00000);
  50.     for(new index=1; index<3; index++) SetObjectMaterial(CajerosATM[index], 0, 18001, "genintintbarbera", "barbersmir1", -1);
  51.     CajerosATM[3]=CreateObject(19466, 308.66580, 1809.97119, 20.25340,   0.00000, 0.00000, -90.00000);
  52.     CajerosATM[4]=CreateObject(19466, 308.66580, 1809.95544, 20.25340,   0.00000, 0.00000, 90.00000);
  53.     CajerosATM[5]=CreateObject(19466, 308.66580, 1805.92615, 20.25340,   0.00000, 0.00000, 90.00000);
  54.     CajerosATM[6]=CreateObject(19466, 308.66580, 1806.00122, 20.25340,   0.00000, 0.00000, -90.00000);
  55.     CajerosATM[7]=CreateObject(19466, 311.17569, 1807.97705, 20.86940,   0.00000, 0.00000, 180.00000);
  56.     for(new index=3; index<8; index++) SetObjectMaterial(CajerosATM[index], 0, 2942, "kmb_atmx", "kmb_atm_sign", -1);
  57.     CajerosATM[8]=CreateObject(19304, 310.65909, 1807.97705, 20.36150,   0.00000, 0.00000, 90.00000);
  58.     CajerosATM[9]=CreateObject(19302, 310.65909, 1806.34595, 18.47260,   0.00000, 0.00000, 90.00000);
  59.     CajerosATM[10]=CreateObject(19302, 310.65909, 1809.57422, 18.47260,   0.00000, 0.00000, -90.00000);
  60.     for(new index=8; index<11; index++) SetObjectMaterial(CajerosATM[index], 0, 18001, "genintintbarbera", "barbersmir1", 0);
  61.     CajerosATM[11]=CreateObject(2942, 307.16422, 1806.96167, 17.79670,   0.00000, 0.00000, 90.00000);
  62.     CajerosATM[12]=CreateObject(2942, 307.16422, 1808.94275, 17.79670,   0.00000, 0.00000, 90.00000);
  63.     for(new index=11; index<13; index++) SetObjectMaterial(CajerosATM[index], 0, -1, "none", "none", 0xFF888788);
  64.     CajerosATM[13]=CreateObject(18762, 310.65909, 1805.96948, 18.75870,   0.00000, 0.00000, 0.00000);
  65.     CajerosATM[14]=CreateObject(18762, 306.66110, 1805.96948, 18.75870,   0.00000, 0.00000, 0.00000);
  66.     CajerosATM[15]=CreateObject(18762, 310.65909, 1809.96863, 18.75870,   0.00000, 0.00000, 0.00000);
  67.     CajerosATM[16]=CreateObject(18762, 306.66199, 1809.98865, 18.75870,   0.00000, 0.00000, 0.00000);
  68.     CajerosATM[17]=CreateObject(18762, 305.91812, 1806.96362, 18.75870,   0.00000, 0.00000, 0.00000);
  69.     CajerosATM[18]=CreateObject(18762, 305.91809, 1807.96655, 18.75870,   0.00000, 0.00000, 0.00000);
  70.     CajerosATM[19]=CreateObject(18762, 305.91809, 1808.96826, 18.75870,   0.00000, 0.00000, 0.00000);
  71.     CajerosATM[20]=CreateObject(18762, 306.88699, 1807.96887, 21.48870,   0.00000, 90.00000, 90.00000);
  72.     CajerosATM[21]=CreateObject(18762, 305.91809, 1807.96887, 21.48870,   0.00000, 90.00000, 90.00000);
  73.     CajerosATM[22]=CreateObject(18762, 307.86111, 1807.96887, 21.48870,   0.00000, 90.00000, 90.00000);
  74.     CajerosATM[23]=CreateObject(18762, 308.83011, 1807.96887, 21.48870,   0.00000, 90.00000, 90.00000);
  75.     CajerosATM[24]=CreateObject(18762, 309.81009, 1807.96887, 21.48870,   0.00000, 90.00000, 90.00000);
  76.     CajerosATM[25]=CreateObject(18762, 310.65909, 1807.96887, 21.48870,   0.00000, 90.00000, 90.00000);
  77.     CajerosATM[26]=CreateObject(18762, 306.36069, 1806.96362, 18.75870,   0.00000, 0.00000, 0.00000);
  78.     CajerosATM[27]=CreateObject(18762, 306.36069, 1807.96655, 18.75870,   0.00000, 0.00000, 0.00000);
  79.     CajerosATM[28]=CreateObject(18762, 306.36069, 1808.96826, 18.75870,   0.00000, 0.00000, 0.00000);
  80.     CajerosATM[29]=CreateObject(18762, 306.87900, 1807.96655, 18.75870,   0.00000, 0.00000, 0.00000);
  81.     CajerosATM[30]=CreateObject(18762, 306.88699, 1807.98767, 17.63470,   0.00000, 90.00000, 90.00000);
  82.     for(new index=13; index<31; index++) SetObjectMaterial(CajerosATM[index], 0, -1, "none", "none", 0xFF00BCFF);
  83.     CajerosATM[31]=CreateObject(2275, 307.36041, 1806.95764, 18.54500,   0.00000, 0.00000, 90.00000);
  84.     CajerosATM[32]=CreateObject(2275, 307.36041, 1808.96375, 18.54500,   0.00000, 0.00000, 90.00000);
  85.     for(new index=31; index<33; index++) SetObjectMaterial(CajerosATM[index], 0, -1, "none", "none", 0xFF000000);
  86.     for(new index=31; index<33; index++) SetObjectMaterial(CajerosATM[index], 1, 1749, "cj_tv", "CJ_TV_SCREEN", -1);
  87.     CajerosATM[33]=CreateObject(2690, 307.49887, 1807.77380, 18.52200,   0.00000, 0.00000, 90.00000);
  88.     CajerosATM[34]=CreateObject(2688, 307.40402, 1808.13928, 18.47770,   0.00000, 0.00000, 90.00000);
  89.     CajerosATM[35]=CreateObject(2001, 306.66199, 1810.81812, 17.16430,   0.00000, 0.00000, 0.00000);
  90.     CajerosATM[36]=CreateObject(2001, 310.65909, 1810.81812, 17.16430,   0.00000, 0.00000, 0.00000);
  91.     CajerosATM[37]=CreateObject(2001, 306.66199, 1805.02515, 17.16430,   0.00000, 0.00000, 0.00000);
  92.     CajerosATM[38]=CreateObject(2001, 310.65909, 1805.02515, 17.16430,   0.00000, 0.00000, 0.00000);
  93.     CajerosATM[39]=CreateObject(2740, 308.19260, 1807.94287, 20.58910,   0.00000, 0.00000, 0.00000);
  94.     CajerosATM[40]=CreateObject(19281, 308.19260, 1807.94287, 20.58910,   0.00000, 0.00000, 0.00000);
  95.     CajerosATM[41]=CreateObject(1893, 308.19260, 1809.18127, 20.68790,   0.00000, 0.00000, 0.00000);
  96.     CajerosATM[42]=CreateObject(1893, 308.17261, 1806.74268, 20.68790,   0.00000, 0.00000, 0.00000);
  97.     CajerosATM[43]=CreateObject(2833, 311.05109, 1807.45178, 17.16700,   0.00000, 0.00000, 90.00000);
  98.     CajerosATM[44]=CreateObject(2833, 306.88333, 1806.45789, 17.16700,   0.00000, 0.00000, 0.00000);
  99.     CajerosATM[45]=CreateObject(2833, 306.88330, 1808.45691, 17.16700,   0.00000, 0.00000, 0.00000);
  100.     for(new index=43; index<46; index++) SetObjectMaterial(CajerosATM[index], 0, 18032, "range_xtras2", "rubber_mat", -1);
  101.     CajerosATM[46]=CreateObject(2716, 310.65909, 1806.39099, 18.47260,   0.00000, 0.00000, -90.00000);
  102.     CajerosATM[47]=CreateObject(2716, 310.65909, 1809.55127, 18.47260,   0.00000, 0.00000, -90.00000);
  103.     AttachObjectToObject(CajerosATM[46], CajerosATM[9], 0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1);
  104.     AttachObjectToObject(CajerosATM[47], CajerosATM[10], 0.0, -0.5, 0.0, 0.0, 0.0, 0.0, 1);
  105.     for(new index=46; index<48; index++) SetObjectMaterial(CajerosATM[index], 0, 2942, "kmb_atmx", "kmb_atm_sign", -1);
  106.     CajerosATM[48]=CreateObject(1721, 309.59119, 1806.22437, 17.16330,   0.00000, 0.00000, 0.00000);
  107.     CajerosATM[49]=CreateObject(1721, 308.81061, 1806.25305, 17.16330,   0.00000, 0.00000, -5.00000);
  108.     CajerosATM[50]=CreateObject(1721, 308.81061, 1809.67395, 17.16330,   0.00000, 0.00000, 189.00000);
  109.     CajerosATM[51]=CreateObject(1808, 309.61121, 1809.67395, 17.16330,   0.00000, 0.00000, 0.00000);
  110.     CajerosATM[52]=CreateObject(2674, 310.01242, 1809.42786, 17.18460,   0.00000, 0.00000, 0.00000);
  111.     CajerosATM[53]=CreateObject(2674, 307.51212, 1807.46277, 17.18460,   0.00000, 0.00000, 84.00000);
  112.     CajerosATM[54]=CreateObject(1892, 310.93228, 1807.44678, 17.17440,   0.00000, 0.00000, 90.00000);
  113.     CajerosATM[55]=CreateObject(18646, 310.92789, 1807.15564, 18.59410,   180.00000, 0.00000, 0.00000);
  114.     CajerosATM[56]=CreateObject(18646, 310.92789, 1808.75391, 18.59410,   180.00000, 0.00000, 0.00000);
  115.     CajerosATM[57]=CreateObject(19279, 306.66110, 1805.22522, 21.40790,   -90.00000, 0.00000, 180.00000);
  116.     CajerosATM[58]=CreateObject(19279, 310.65909, 1805.22522, 21.40790,   -90.00000, 0.00000, 180.00000);
  117.     CajerosATM[59]=CreateObject(19279, 306.66199, 1810.71448, 21.40790,   -90.00000, 0.00000, 0.00000);
  118.     CajerosATM[60]=CreateObject(19279, 310.65909, 1810.71448, 21.40790,   -90.00000, 0.00000, 0.00000);
  119.     CajerosATM[61]=CreateObject(19279, 305.18320, 1807.96655, 21.40790,   -90.00000, 0.00000, 90.00000);
  120.     CajerosATM[62]=CreateObject(19279, 311.39670, 1807.96655, 21.84790,   -90.00000, 0.00000, -90.00000);
  121.     CajerosATM[63]=CreateObject(19281, 306.66110, 1805.22522, 21.40790,   0.00000, 0.00000, 0.00000);
  122.     CajerosATM[64]=CreateObject(19281, 310.65909, 1805.22522, 21.40790,   0.00000, 0.00000, 0.00000);
  123.     CajerosATM[65]=CreateObject(19281, 306.66199, 1810.71448, 21.40790,   0.00000, 0.00000, 0.00000);
  124.     CajerosATM[66]=CreateObject(19281, 310.65909, 1810.71448, 21.40790,   0.00000, 0.00000, 0.00000);
  125.     CajerosATM[67]=CreateObject(19281, 305.18320, 1807.96655, 21.40790,   0.00000, 0.00000, 0.00000);
  126.     CajerosATM[68]=CreateObject(19281, 311.39670, 1807.96655, 21.84790,   0.00000, 0.00000, 0.00000);
  127.     CajerosATM[69]=CreateObject(2954, 305.46381, 1808.24316, 17.15200,   0.00000, 0.00000, 180.00000);
  128.     CajerosATM[70]=CreateObject(927, 305.41550, 1808.14111, 19.45930,   0.00000, 0.00000, 90.00000);
  129.     CajerosATM[71]=CreateObject(1886, 307.44849, 1806.94299, 21.01270,   24.00000, 0.00000, 110.00000);
  130.     CajerosATM[72]=CreateObject(1886, 307.44849, 1808.87195, 21.01270,   24.00000, 0.00000, 62.00000);
  131.     new Float:pos[4][6];
  132.     for(new index=1; index<73; index++){
  133.         GetObjectPos(CajerosATM[0],pos[0][0],pos[0][1],pos[0][2]);
  134.         GetObjectPos(CajerosATM[index],pos[1][0],pos[1][1],pos[1][2]);
  135.         GetObjectRot(CajerosATM[index],pos[2][0],pos[2][1],pos[2][2]);
  136.         AttachObjectToObject(CajerosATM[index], CajerosATM[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);
  137.     }
  138.     SetObjectPos(CajerosATM[0], 309.88510, 1801.02393, 14.14570);
  139.     GetObjectPos(CajerosATM[0],pos[3][0],pos[3][1],pos[3][2]);
  140.     GetObjectRot(CajerosATM[0],pos[3][3],pos[3][4],pos[3][5]);
  141.     pos[3][0] = pos[3][0] + (2 * floatsin(-pos[3][5]+90, degrees));
  142.     pos[3][1] = pos[3][1] + (2 * floatcos(-pos[3][5]+90, degrees));
  143.     return true;
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement