Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* --------------------------------------->> New Auto Cbug V1.2 <<------------------------------------- SA:MP v0.3.7
- Spanish / Español:
- -> CREDITOS: <-
- -> D4Rk$iD3: Desarrollo e idea del código.
- • Puedes hacer Tu modificacion libremente siempre y cuándo estés respetando y manteniendo los créditos.
- • 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.
- • 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.
- -----------------------------> Video: www.youtube.com/watch?v=d_BuHMy7TUI
- English/Inglés:
- • NO Post this filterscript elsewhere SAMP and pose as the creator of the code. • -> Code Created By d4rk$iD3 <-
- IMPORTANT !!!
- READ CAREFULLY TO AVOID become a thief spaces ABSOLUTELY the Credit Theft or publication of This filterscript without my permission.
- -> CREDITS: <-
- -> d4rk$iD3: Development and idea of the code.
- • Function: Automatically do cbug by activating a command, for those who do not know or do it manually gives laziness.
- • Usage: Keep always look down, shoot, waiting for 1 to 2 seconds, shoot, waiting for 1 to 2 seconds, and so on successively.
- ----------------------------> Video: www.youtube.com/watch?v=d_BuHMy7TUI
- */
- #include <a_samp>
- #pragma tabsize 0
- #define KEY_AIM 132
- #define red 0xFF0000AA
- #define green 0x33FF33AA
- new cbug[MAX_PLAYERS];
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Auto C-Bug Mode v1.2 by D4Rk$iD3");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- public OnPlayerConnect(playerid)
- {
- cbug[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- cbug[playerid]= 0;
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext,"/cbug", true)==0) {
- if(cbug[playerid] == 0) {
- cbug[playerid] = 1;
- GivePlayerWeapon(playerid, 24, 1000);
- SendClientMessage(playerid,green,"[INFO]: Has activado el modo: 'Auto C-bug'");
- }
- else
- if(cbug[playerid] == 1) {
- cbug[playerid] = 0;
- SendClientMessage(playerid,red,"[INFO]: Has desactivado el modo: 'Auto C-bug'");
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys == KEY_AIM && cbug[playerid] == 1 && GetPlayerWeapon(playerid) == 24) {
- ResetPlayerWeapons(playerid);
- if(newkeys & KEY_FIRE && cbug[playerid] == 1) {
- GivePlayerWeapon(playerid, 24, 1000);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement