D4RkSiD3

[FS] Auto Two Shoot System

Dec 21st, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.14 KB | None | 0 0
  1. /*  --------------------------------------->> New Auto Two Shoot <<------------------------------------- SA:MP v0.3.7
  2.                                         Spanish / Español:
  3.                                         -> CREDITOS: <-
  4.              -> D4Rk$iD3: Desarrollo e idea del código.
  5. • Puedes hacer Tu modificacion libremente siempre y cuándo estés respetando y manteniendo los créditos.
  6.  
  7. • Función: Hacer automáticamente el Two Shoot mediante la activación de un comando, para los que les da flojera hacerlo manualmente                                                                          •
  8. • Modo de uso: Mantén siempre presionada la mira, dispara, espera de 1 a 2 segundos, dispara, espera de 1 a 2 segundos, y así, sucesivamente...
  9.  
  10. ---------------> Video: https://www.youtube.com/watch?v=rjfdjDbxh3Q&feature=youtu.be
  11.  
  12.                                          English/Inglés:
  13.  
  14. • NO Post this filterscript elsewhere SAMP and pose as the creator of the code. •  -> Code Created By d4rk$iD3 <-
  15. IMPORTANT !!!
  16. READ CAREFULLY TO AVOID become a thief spaces ABSOLUTELY the Credit Theft or publication of This filterscript without my permission.
  17.  
  18.                                          -> CREDITS: <-
  19.              -> d4rk$iD3: Development and idea of the code.
  20.  
  21. • Function: Automatically do cbug by activating a command, for those who do not know or do it manually gives laziness.
  22. • Usage: Keep always look down, shoot, waiting for 1 to 2 seconds, shoot, waiting for 1 to 2 seconds, and so on successively.
  23.  
  24. ----------------> Video: https://www.youtube.com/watch?v=rjfdjDbxh3Q&feature=youtu.be
  25. */
  26. #include <a_samp>
  27.  
  28. #pragma tabsize 0
  29.  
  30. #define                        KEY_AIM 132
  31. #define green                  0x33FF33AA
  32. #define red                    0xFF0000AA
  33.  
  34. new twoshoot[MAX_PLAYERS];
  35.  
  36. #if defined FILTERSCRIPT
  37.  
  38. public OnFilterScriptInit()
  39. {
  40.     print("\n--------------------------------------");
  41.     print(" [Fs] Auto Two Shoot by D4Rk$iD3");
  42.     print("--------------------------------------\n");
  43.     return 1;
  44. }
  45.  
  46. public OnFilterScriptExit()
  47. {
  48.     return 1;
  49. }
  50.  
  51. #endif
  52.  
  53. public OnPlayerConnect(playerid)
  54. {
  55.     twoshoot[playerid] = 0;
  56.     return 1;
  57. }
  58.  
  59. public OnPlayerDisconnect(playerid, reason)
  60. {
  61.     twoshoot[playerid] = 0;
  62.     return 1;
  63. }
  64.  
  65. public OnPlayerCommandText(playerid, cmdtext[])
  66. {
  67. if(strcmp(cmdtext,"/twoshoot", true)==0) {
  68.          if(twoshoot[playerid] == 0) {
  69.               twoshoot[playerid] = 1;
  70.               GivePlayerWeapon(playerid, 26, 3500);
  71.               SendClientMessage(playerid,green,"[INFO]: Has Activado El modo: 'Auto Faster Two Shoot Bug' (Sawn-Off)");
  72.          }
  73.          else
  74.          if(twoshoot[playerid] == 1) {
  75.               twoshoot[playerid] = 0;
  76.               SendClientMessage(playerid,red,"[INFO]: Has Desactivado El modo: 'Auto Faster Two Shoot'.");
  77.     }
  78.     return 1;
  79.     }
  80.     return 0;
  81. }
  82.  
  83. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  84. {
  85.         if(newkeys == KEY_AIM && twoshoot[playerid] == 1 && GetPlayerWeapon(playerid) == 26) {
  86.         ResetPlayerWeapons(playerid);
  87.         if(newkeys & KEY_FIRE && twoshoot[playerid] == 1) {
  88.         GivePlayerWeapon(playerid, 26, 3500);
  89.         }
  90.     }
  91.     return 1;
  92. }
Add Comment
Please, Sign In to add comment