Advertisement
D4RkSiD3

[FS] New Auto C-Bug System V1.2

Dec 21st, 2015
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.90 KB | None | 0 0
  1. /*  --------------------------------------->> New Auto Cbug V1.2 <<------------------------------------- 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 cbug mediante la activación de un comando, para los que no sepan hacerlo o 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: www.youtube.com/watch?v=d_BuHMy7TUI
  11.                                          English/Inglés:
  12.  
  13. • NO Post this filterscript elsewhere SAMP and pose as the creator of the code. •  -> Code Created By d4rk$iD3 <-
  14. IMPORTANT !!!
  15. READ CAREFULLY TO AVOID become a thief spaces ABSOLUTELY the Credit Theft or publication of This filterscript without my permission.
  16.  
  17.                                          -> CREDITS: <-
  18.              -> d4rk$iD3: Development and idea of the code.
  19.  
  20. • Function: Automatically do cbug by activating a command, for those who do not know or do it manually gives laziness.
  21. • Usage: Keep always look down, shoot, waiting for 1 to 2 seconds, shoot, waiting for 1 to 2 seconds, and so on successively.
  22. ----------------------------> Video: www.youtube.com/watch?v=d_BuHMy7TUI
  23. */
  24. #include <a_samp>
  25.  
  26. #pragma tabsize 0
  27.  
  28. #define                        KEY_AIM 132
  29. #define red                    0xFF0000AA
  30. #define green                  0x33FF33AA
  31.  
  32. new cbug[MAX_PLAYERS];
  33.  
  34. #if defined FILTERSCRIPT
  35.  
  36. public OnFilterScriptInit()
  37. {
  38.     print("\n--------------------------------------");
  39.     print(" Auto C-Bug Mode v1.2 by D4Rk$iD3");
  40.     print("--------------------------------------\n");
  41.     return 1;
  42. }
  43.  
  44. public OnFilterScriptExit()
  45. {
  46.     return 1;
  47. }
  48.  
  49. #endif
  50.  
  51. public OnPlayerConnect(playerid)
  52. {
  53.     cbug[playerid] = 0;
  54.     return 1;
  55. }
  56.  
  57. public OnPlayerDisconnect(playerid, reason)
  58. {
  59.     cbug[playerid]= 0;
  60.     return 1;
  61. }
  62.  
  63. public OnPlayerCommandText(playerid, cmdtext[])
  64. {
  65.        if(strcmp(cmdtext,"/cbug", true)==0) {
  66.          if(cbug[playerid] == 0) {
  67.               cbug[playerid] = 1;
  68.               GivePlayerWeapon(playerid, 24, 1000);
  69.               SendClientMessage(playerid,green,"[INFO]: Has activado el modo: 'Auto C-bug'");
  70.          }
  71.          else
  72.          if(cbug[playerid] == 1) {
  73.               cbug[playerid] = 0;
  74.               SendClientMessage(playerid,red,"[INFO]: Has desactivado el modo: 'Auto C-bug'");
  75.     }
  76.     return 1;
  77.     }
  78.     return 0;
  79. }
  80.  
  81. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  82. {
  83.         if(newkeys == KEY_AIM && cbug[playerid] == 1 && GetPlayerWeapon(playerid) == 24) {
  84.         ResetPlayerWeapons(playerid);
  85.         if(newkeys & KEY_FIRE && cbug[playerid] == 1) {
  86.         GivePlayerWeapon(playerid, 24, 1000);
  87.         }
  88.     }
  89.     return 1;
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement