Advertisement
D4RkSiD3

[FS] Simple Auto C-Bug v1.0

Dec 20th, 2015
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.86 KB | None | 0 0
  1. /*
  2.  •  •   •   •  •   •  •  •   •    •   •  •  •  • • •  •   •  •  •  • •  •  •  •  • •  •  • •  • •  • •  • •  •
  3.  •                                         Spanish/Español:                                                   •
  4.  •                                            CREDITOS:                                                        •
  5.  •       -> D4Rk$iD3: Desarrollo e idea del código.                                                          •
  6.  •     Puedes hacer Tu modificacion libremente siempre y cuándo estés respetando y manteniendo los créditos. •
  7.  •                                                                                                           •
  8.  •   Función: Activar / Desactivar el Auto C-bug por Comando, este script fue hecho especialmente             •
  9.  •         para los mancos que no sepan hacer el C-bug o que quieran implementar este sistema en su servidor •
  10.  •         ya se como privilegio VIP, etc.                                                                     •
  11.  •   Modo de uso: Luego de activar el auto c-bug, mediante el comando, dejar presionada la mira y disparar   •
  12.  •         Esto no es algo que se vea en todos lados, la idea de crear este sistema,                         •
  13.  •         fue por esa misma razón, para aportar algo creativo e innovador.                                  •
  14.  •  •   •   •  •   •  •  •   •    •   •  •  •  • • •  •   •  •  •  • •  •  •  •  • •  •  • •  • •  • •  • •  •
  15.  
  16.  
  17.                                          English/Inglés:
  18. IMPORTANT !!!
  19. READ CAREFULLY TO AVOID become a thief spaces ABSOLUTELY the Credit Theft or publication of This filterscript without my permission.
  20.  
  21. • NO Post this filterscript elsewhere SAMP and pose as the creator of the code. • • -> Code Created By d4rk$iD3 <-
  22.  
  23. - CREDITS • -> d4rk$iD3: Development and idea of the code.
  24.  
  25.             • Function: Enable / Disable Auto Command C-bug by this script was made especially.
  26.                        -> for the maimed who can not make the C-bug or want to implement this system as a server longer as VIP privileges, etc.
  27.             • Usage: After activating the auto c-bug, through the command, stop looking down and shoot.
  28.                        -> This is not something you see everywhere, the idea of creating this system, it was for that very reason, to make something creative and innovative.
  29.                             -> You can make your modified freely as long as you're respecting and keeping credit.
  30. */
  31. #include <a_samp>
  32.  
  33. #pragma tabsize 0
  34.  
  35. #define red                    0xFF0000AA
  36. #define green                  0x33FF33AA
  37.  
  38. new cbug[MAX_PLAYERS];
  39.  
  40. #if defined FILTERSCRIPT
  41.  
  42. public OnFilterScriptInit()
  43. {
  44.     print("\n--------------------------------------");
  45.     print(" Auto C-Bug Mode v1.0 by D4Rk$iD3");
  46.     print("--------------------------------------\n");
  47.     return 1;
  48. }
  49.  
  50. public OnFilterScriptExit()
  51. {
  52.     return 1;
  53. }
  54.  
  55. #endif
  56.  
  57. public OnPlayerConnect(playerid)
  58. {
  59.     cbug[playerid] = 0;
  60.     return 1;
  61. }
  62.  
  63. public OnPlayerDisconnect(playerid, reason)
  64. {
  65.     cbug[playerid]= 0;
  66.     return 1;
  67. }
  68.  
  69. public OnPlayerCommandText(playerid, cmdtext[])
  70. {
  71.        if(strcmp(cmdtext,"/cbug", true)==0) {
  72.          if(cbug[playerid] == 0) {
  73.               cbug[playerid] = 1;
  74.               SetPlayerHealth(playerid, 10000);
  75.               SendClientMessage(playerid,green,"[INFO]: Has activado el modo: 'Auto C-bug'");
  76.          }
  77.          else
  78.          if(cbug[playerid] == 1) {
  79.               cbug[playerid] = 0;
  80.               SetPlayerHealth(playerid, 100);
  81.               SendClientMessage(playerid,red,"[INFO]: Has desactivado el modo: 'Auto C-bug'");
  82.     }
  83.     return 1;
  84.     }
  85.     return 0;
  86. }
  87.  
  88. public OnPlayerUpdate(playerid)
  89. {
  90.         if(cbug[playerid] == 1) {
  91.         new ammo = GetPlayerAmmo(playerid);
  92.         if(ammo != 1000) {
  93.         ResetPlayerWeapons(playerid);
  94.         GivePlayerWeapon(playerid, 24, 1000);
  95.         }
  96.     }
  97.     return 1;
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement