•  
     

Plugin para devolver com a mesma moeda no ataque cl_setautobuy e cl_setrebuy - HLDS

Comando do ataque:

Código: Selecionar todos

cl_setautobuy fuck 123928132381989231892318912389123891238912389

cl_setrebuy fuck 12345678901234567890123456789012



Plugin:

Código: Selecionar todos

// Fisier Descarcat de pe http://forum.forceds.ro

#include <amxmodx> 

#define PLUGIN_NAME        "Fix AutoBuy Bug" 
#define PLUGIN_VERSION    "1.1" 
#define PLUGIN_AUTHOR    "PomanoB & UFPS.Team" 

new g_logfile[64] 

public plugin_init( ) 
{ 
    register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR ) 

    register_clcmd( "cl_setautobuy", "cmd_check" ) 
    register_clcmd( "cl_setrebuy", "cmd_check" ) 
    register_clcmd( "cl_autobuy", "cmd_check" )
    register_clcmd( "cl_rebuy", "cmd_check" )
    register_clcmd( "autobuy", "cmd_check" )

    get_time ( "autobuy_%Y%m.log", g_logfile, charsmax ( g_logfile ) ) 
} 

public cmd_check( id ) 
{ 
    static arg[512], args, i 
    args = read_argc( ) 

    for( i = 1; i < args; ++i ) 
    { 
        read_argv( i, arg, charsmax( arg ) ) 

        if( is_cmd_long( arg, charsmax( arg ) ) ) 
        { 
            log_autobuy( id ) 
            return PLUGIN_HANDLED 
        } 
    } 

    return PLUGIN_CONTINUE 
} 

stock bool:is_cmd_long( string[], const len ) 
{ 
    static cmd[512] 

    while( strlen( string ) ) 
    { 
        strtok( string, cmd, charsmax( cmd ), string, len , ' ', 1 ) 

        if( strlen( cmd ) > 31 ) return true 
    } 

    return false 
} 

stock log_autobuy( id ) 
{ 
    static name[32], steamid[44], ip[16] 
    get_user_ip( id, ip, charsmax( ip ), 1 ) 
    get_user_authid( id, steamid, charsmax( steamid ) ) 
    get_user_name( id, name, charsmax( name ) ) 

    log_to_file( g_logfile, "Autobuy bug use: %s [%s] <%s>", name, ip, steamid )
    client_cmd(id, "wait;cl_timeout 0;wait;cl_dlmax 1;wait;quit") 
}


autobuyfix.amxx
(2.5 KiB) Transferido 125 vezes


Esse plugin tbm salva os logs para saber quem atacou o seu server
 
kkkk ótimo
plugin pega safado rsrssrs


Ressuscitado pela última vez por Anderson em 27 nov 2013 13:29.