Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
- • 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: Activar / Desactivar el Auto C-bug por Comando, este script fue hecho especialmente •
- • para los mancos que no sepan hacer el C-bug o que quieran implementar este sistema en su servidor •
- • ya se como privilegio VIP, etc. •
- • Modo de uso: Luego de activar el auto c-bug, mediante el comando, dejar presionada la mira y disparar •
- • Esto no es algo que se vea en todos lados, la idea de crear este sistema, •
- • fue por esa misma razón, para aportar algo creativo e innovador. •
- • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
- English/Inglés:
- IMPORTANT !!!
- READ CAREFULLY TO AVOID become a thief spaces ABSOLUTELY the Credit Theft or publication of This filterscript without my permission.
- • NO Post this filterscript elsewhere SAMP and pose as the creator of the code. • • -> Code Created By d4rk$iD3 <-
- - CREDITS • -> d4rk$iD3: Development and idea of the code.
- • Function: Enable / Disable Auto Command C-bug by this script was made especially.
- -> for the maimed who can not make the C-bug or want to implement this system as a server longer as VIP privileges, etc.
- • Usage: After activating the auto c-bug, through the command, stop looking down and shoot.
- -> 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.
- -> You can make your modified freely as long as you're respecting and keeping credit.
- */
- #include <a_samp>
- #pragma tabsize 0
- #define red 0xFF0000AA
- #define green 0x33FF33AA
- new cbug[MAX_PLAYERS];
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Auto C-Bug Mode v1.0 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;
- SetPlayerHealth(playerid, 10000);
- SendClientMessage(playerid,green,"[INFO]: Has activado el modo: 'Auto C-bug'");
- }
- else
- if(cbug[playerid] == 1) {
- cbug[playerid] = 0;
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid,red,"[INFO]: Has desactivado el modo: 'Auto C-bug'");
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerUpdate(playerid)
- {
- if(cbug[playerid] == 1) {
- new ammo = GetPlayerAmmo(playerid);
- if(ammo != 1000) {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 24, 1000);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement