OtaconEvil

[FS] satelite in SA-MP | By OTACON

Apr 9th, 2017
893
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. #include <a_samp>
  37. #include <zcmd>
  38. COMMAND:satelite(playerid, params[]){
  39.     new Float:x,Float:y,Float:z;
  40.     GetPlayerPos(playerid,x,y,z);
  41.  
  42.     #define HEIGHT (1000)
  43.     new satelite[33];
  44.     satelite[0] = CreateObject(19321, x,y,z+HEIGHT, 0,0,0);
  45.     satelite[1] = CreateObject(3062, 0,0,0,0,0,0);
  46.     satelite[2] = CreateObject(3062, 0,0,0,0,0,0);
  47.     for(new aa=3; aa<=30; aa++) satelite[aa] = CreateObject(19444, 0,0,0,0,0,0);
  48.     satelite[31] = CreateObject(1596, 0,0,0,0,0,0);
  49.     satelite[32] = CreateObject(1596, 0,0,0,0,0,0);
  50.     SetObjectMaterial(satelite[0],0,16093,"a51_ext","banding9_64HV",0);
  51.     SetObjectMaterial(satelite[0],1,16093,"a51_ext","banding9_64HV",0);
  52.     for(new aa=0; aa<=2; aa++) SetObjectMaterial(satelite[aa],0,16093,"a51_ext","banding9_64HV",0);
  53.     for(new aa=3; aa<=16; aa++) SetObjectMaterial(satelite[aa],0,1697,"moregenroofstuff","solar_panel_1",-1);
  54.     for(new aa=17; aa<=30; aa++) SetObjectMaterial(satelite[aa],0,16093,"a51_ext","banding9_64HV",0);
  55.     for(new aa=31; aa<=32; aa++) SetObjectMaterial(satelite[aa],4,914,"industrialext","CJ_VENT1",-1);
  56.     for(new aa=31; aa<=32; aa++) SetObjectMaterial(satelite[aa],0,914,"industrialext","CJ_VENT1",-1);
  57.     AttachObjectToObject(satelite[1],satelite[0],-1.528991,-3.532958,-0.093999,0.000000,0.000000,-138.000000,1);
  58.     AttachObjectToObject(satelite[2],satelite[0],2.707122,-4.591552,-0.093999,0.000000,0.000000,138.000000,1);
  59.     AttachObjectToObject(satelite[3],satelite[0],-2.937591,0.000000,0.000000,0.000000,90.000000,90.000000,1);
  60.     AttachObjectToObject(satelite[4],satelite[0],-5.197692,0.000000,0.000000,0.000000,90.000000,90.000000,1);
  61.     AttachObjectToObject(satelite[5],satelite[0],-7.457580,0.000000,0.000000,0.000000,90.000000,90.000000,1);
  62.     AttachObjectToObject(satelite[6],satelite[0],-9.717590,0.000000,0.000000,0.000000,90.000000,90.000000,1);
  63.     AttachObjectToObject(satelite[7],satelite[0],2.881500,0.000000,0.000000,0.000000,90.000000,90.000000,1);
  64.     AttachObjectToObject(satelite[8],satelite[0],5.001007,0.000000,0.000000,0.000000,90.000000,90.000000,1);
  65.     AttachObjectToObject(satelite[9],satelite[0],7.141906,0.000000,0.000000,0.000000,90.000000,90.000000,1);
  66.     AttachObjectToObject(satelite[10],satelite[0],9.281707,0.000000,0.000000,0.000000,90.000000,90.000000,1);
  67.     AttachObjectToObject(satelite[11],satelite[0],-11.673278,0.000000,0.517000,35.000000,90.000000,90.000000,1);
  68.     AttachObjectToObject(satelite[12],satelite[0],11.258026,0.000000,0.517000,-35.000000,90.000000,90.000000,1);
  69.     AttachObjectToObject(satelite[13],satelite[0],0.000000,-5.757934,-1.457000,0.000000,90.000000,90.000000,1);
  70.     AttachObjectToObject(satelite[14],satelite[0],0.000000,-9.657470,-1.457000,0.000000,90.000000,90.000000,1);
  71.     AttachObjectToObject(satelite[15],satelite[0],2.021911,-9.657470,-0.987001,-35.000000,90.000000,90.000000,1);
  72.     AttachObjectToObject(satelite[16],satelite[0],-1.979187,-9.657470,-0.987001,35.000000,90.000000,90.000000,1);
  73.     AttachObjectToObject(satelite[17],satelite[0],-2.937591,0.000000,-0.180000,0.000000,90.000000,90.000000,1);
  74.     AttachObjectToObject(satelite[18],satelite[0],-5.197692,0.000000,-0.180000,0.000000,90.000000,90.000000,1);
  75.     AttachObjectToObject(satelite[19],satelite[0],-7.457580,0.000000,-0.180000,0.000000,90.000000,90.000000,1);
  76.     AttachObjectToObject(satelite[20],satelite[0],-9.717590,0.000000,-0.180000,0.000000,90.000000,90.000000,1);
  77.     AttachObjectToObject(satelite[21],satelite[0],2.881500,0.000000,-0.180000,0.000000,90.000000,90.000000,1);
  78.     AttachObjectToObject(satelite[22],satelite[0],5.001007,0.000000,-0.180000,0.000000,90.000000,90.000000,1);
  79.     AttachObjectToObject(satelite[23],satelite[0],7.141906,0.000000,-0.180000,0.000000,90.000000,90.000000,1);
  80.     AttachObjectToObject(satelite[24],satelite[0],9.281707,0.000000,-0.180000,0.000000,90.000000,90.000000,1);
  81.     AttachObjectToObject(satelite[25],satelite[0],-11.673278,0.000000,0.336999,35.000000,90.000000,90.000000,1);
  82.     AttachObjectToObject(satelite[26],satelite[0],11.258026,0.000000,0.336999,-35.000000,90.000000,90.000000,1);
  83.     AttachObjectToObject(satelite[27],satelite[0],0.000000,-5.757934,-1.637001,0.000000,90.000000,90.000000,1);
  84.     AttachObjectToObject(satelite[28],satelite[0],0.000000,-9.657470,-1.637001,0.000000,90.000000,90.000000,1);
  85.     AttachObjectToObject(satelite[29],satelite[0],2.021911,-9.657470,-1.166999,-35.000000,90.000000,90.000000,1);
  86.     AttachObjectToObject(satelite[30],satelite[0],-1.979187,-9.657470,-1.166999,35.000000,90.000000,90.000000,1);
  87.     AttachObjectToObject(satelite[31],satelite[0],0.000000,-0.046997,4.031999,0.000000,0.000000,0.000000,1);
  88.     AttachObjectToObject(satelite[32],satelite[0],0.000000,6.142456,0.892999,-90.000000,0.000000,0.000000,1);
  89.  
  90.     SetPlayerPos(playerid,x,y,z+HEIGHT);
  91.     return true;
  92. }
RAW Paste Data