OtaconEvil

[FS] Easy / Ugly STRIPS | PIG-PEN | a_rnpc | By OTACON

Dec 20th, 2014
652
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 <a_rnpc> //http://forum.sa-mp.com/showthread.php?t=412666
  38. #include <streamer> //http://forum.sa-mp.com/showthread.php?t=102865
  39.  
  40. #define TIMER:%0(%1) forward%0(%1); public%0(%1)
  41.  
  42. #define COLOR_MONEY "{009200}"
  43. #define COLOR_NAME "{E982FF}"
  44. #define TIMER_FUNCTION (20*1000)
  45. #define MAX_STRIPS (17)
  46. new
  47.     pichups_bitchs[2],
  48.     create_bitchs[MAX_STRIPS],
  49.     money_bitchs[10],
  50.     Text3D:nick_npcs[MAX_STRIPS],
  51.     timer_bitchs[2],
  52.     CountFunctionNPC,
  53.     Float:pos_bitchs[][]={
  54.         //bitchs
  55.         {1208.2872,-5.1910,1001.3281,5.3267},
  56.         {1208.2670,-7.7789,1001.3281,180.1683},
  57.         {1208.4568,-6.1097,1001.3281,281.5848},
  58.         {1207.8387,-7.0308,1001.3281,69.1429},
  59.         {1213.4097,-4.2421,1001.3281,318.3261},
  60.         {1214.9423,-7.6089,1001.3281,93.1418},
  61.         {1218.2673,-7.7077,1001.3281,115.4931},
  62.         {1219.0439,-5.9736,1001.3281,34.0258},
  63.         {1222.7500,-6.5361,1001.3281,103.5864},
  64.         {1221.2284,8.5802,1001.3356,147.4301},
  65.         //guardias
  66.         {1212.1567,2.3171,1000.9219,184.4679},
  67.         {1207.2274,-13.6282,1000.9219,0.4351},
  68.         //camadero
  69.         {1214.9056,-15.2613,1000.9219,2.7967},
  70.         //clientes
  71.         {1202.1729,0.1180,1000.9219,273.0953},
  72.         {1202.1559,-10.2154,1000.9219,180.1390},
  73.         {1215.0234,6.2095,1000.9219,276.0431} },
  74.     ropa_bitchs[]={75,85,87,63,64,152,178,238,237,244,246,256,257},
  75.     ropa_clientes[]={5,26,27,296,291,289,278,275,281,260,55,89,141,191,195,298},
  76.     /* ADVERTENCIA : cualquier similitud a la vida real es pura coincidencia. :D */
  77.     /* WARNING : any similarity to real life is purely coincidental. :D */
  78.     nameBOTS[][]={
  79.     /*bitch*/
  80.         { "adri1" },
  81.         { "jotajeda" },
  82.         { "iSanchez" },
  83.         { "Zume-Zero" },
  84.         { "Fluid016" },
  85.         { "BecksLennon" },
  86.         { "Juand" },
  87.         { "JustBored" },
  88.         { "DesingMyCry" },
  89.         { "[J]ulian" },
  90.     /*guard*/
  91.         { "Jupit3r" },
  92.         { "[DOG]irinel1996" },
  93.     /*waiter*/
  94.         { "EnzoMetlc" },
  95.     /*customer*/
  96.         { "OTACON" },
  97.         { "Parka" },
  98.         { "EduGTA" } };
  99.     /* ADVERTENCIA : cualquier similitud a la vida real es pura coincidencia. :D */
  100.     /* WARNING : any similarity to real life is purely coincidental. :D */
  101.  
  102. CreareStripsNPC(){
  103.     new asd[30],asdd[200];
  104.     pichups_bitchs[0] = CreateDynamicPickup(1240,1,1210.7977,5.1041,1000.9219);
  105.     pichups_bitchs[1] = CreateDynamicPickup(1240,1,1204.8541,12.2254,1000.9219);
  106.     KillTimer(timer_bitchs[0]); timer_bitchs[0]=SetTimer("FunctionNPC", TIMER_FUNCTION, true);
  107.     KillTimer(timer_bitchs[1]); timer_bitchs[1]=SetTimer("MoneyNPC", 10*1000, true);
  108.     for(new npcid=0; npcid< sizeof(create_bitchs); npcid++){
  109.         if(IsPlayerRNPC(npcid))continue;
  110.         DestroyRNPC(create_bitchs[npcid]);
  111.         format(asd, sizeof(asd), "%s_(%d)", nameBOTS[npcid],npcid);
  112.         create_bitchs[npcid] = CreateRNPC(asd);
  113.         DestroyDynamic3DTextLabel(nick_npcs[npcid]);
  114.         nick_npcs[npcid] = CreateDynamic3DTextLabel("_", -1, 0.0, 0.0, 0.15, 5.0, npcid, INVALID_VEHICLE_ID, 0);
  115.         switch(npcid){
  116.             case 0..9:{format(asdd, sizeof(asdd), "bitch: "COLOR_NAME"%s\n"COLOR_MONEY"money: $$$ %d", nameBOTS[npcid],money_bitchs[npcid]);}
  117.             case 10..11:{format(asdd, sizeof(asdd), "guard: "COLOR_NAME"%s", nameBOTS[npcid]);}
  118.             case 12:{format(asdd, sizeof(asdd), "waiter: "COLOR_NAME"%s", nameBOTS[npcid]);}
  119.             case 13..15:{format(asdd, sizeof(asdd), "customer: "COLOR_NAME"%s", nameBOTS[npcid]);}
  120.         }UpdateDynamic3DTextLabelText(nick_npcs[npcid], -1, asdd);
  121.     }
  122. }
  123.  
  124. TIMER: MoneyNPC(){
  125.     new asdd[200];
  126.     money_bitchs[random(10)]+=random(100);
  127.     for(new npcid=0; npcid< sizeof(create_bitchs); npcid++){
  128.         if(!IsPlayerRNPC(npcid))continue;
  129.         switch(npcid){
  130.             case 0..9:{
  131.             if(money_bitchs[npcid]>1000)money_bitchs[npcid]=0;
  132.             format(asdd, sizeof(asdd), "bitch: "COLOR_NAME"%s\n"COLOR_MONEY"money: $$$ %d", nameBOTS[npcid],money_bitchs[npcid]);}
  133.         }UpdateDynamic3DTextLabelText(nick_npcs[npcid], -1, asdd);
  134.     }
  135. }
  136.  
  137. TIMER: FunctionNPC(){
  138.     CountFunctionNPC++;
  139.     for(new npcid=0; npcid< sizeof(create_bitchs); npcid++){
  140.         if(!IsPlayerRNPC(npcid))continue;
  141.         ApplyAnimation(npcid,"STRIP","null",0.0,0,0,0,0,0,0);
  142.         ApplyAnimation(npcid,"STRIP","null",0.0,0,0,0,0,0,0);
  143.         switch(CountFunctionNPC){
  144.             case 1:{
  145.                 SetPlayerPos(create_bitchs[npcid], pos_bitchs[npcid][0], pos_bitchs[npcid][1], pos_bitchs[npcid][2]);
  146.                 SetPlayerFacingAngle(create_bitchs[npcid], pos_bitchs[npcid][3]);
  147.             }
  148.             case 2:{
  149.                 switch(npcid){
  150.                     case 0..9:{SetPlayerSkin(create_bitchs[npcid], ropa_bitchs[random(sizeof(ropa_bitchs))]);}
  151.                     case 10..11:{SetPlayerSkin(create_bitchs[npcid], 164);}
  152.                     case 12:{SetPlayerSkin(create_bitchs[npcid], 189);}
  153.                     case 13..15:{SetPlayerSkin(create_bitchs[npcid], ropa_clientes[random(sizeof(ropa_clientes))]);}
  154.                 }
  155.             }
  156.             case 3:{
  157.                 switch(npcid){
  158.                     case 0..9:{
  159.                     new asdd[20];
  160.                     switch(random(4)){
  161.                         case 0: asdd = "PUN_LOOP";
  162.                         case 1: asdd = "strip_E";
  163.                         case 2: asdd = "STR_Loop_A";
  164.                         case 3: asdd = "STR_B2C";}
  165.                     ApplyAnimation(create_bitchs[npcid],"STRIP",asdd,4.0,1,0,0,0,0);}
  166.                     case 13..15:{ApplyAnimation(create_bitchs[npcid],"STRIP","PUN_LOOP",4.0,1,0,0,0,0);}
  167.                 }
  168.             }
  169.             default:KillTimer(timer_bitchs[0]), CountFunctionNPC=0;
  170.         }
  171.     }
  172. }
  173.  
  174.  
  175. public OnFilterScriptInit(){
  176.     AddPlayerClass(23,2405.8059,-1247.9685,23.8125,313.3872,0,0,0,0,0,0); //testing
  177.     SendRconCommand("maxnpc 20");
  178.  
  179.     CreareStripsNPC();
  180.     return true;
  181. }
RAW Paste Data