AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Anti-Crash (autobuy) & fullupdate blocker with logging (https://forums.alliedmods.net/showthread.php?t=163883)

ConnorMcLeod 08-05-2011 15:00

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
CS only i think.

Quote:

Counter-Strike 1.6 Update Released
Product Update - Valve 19 May 2009
Updates to Counter-Strike 1.6 have been released. The updates will be applied automatically when your Steam client is restarted. The specific changes include:

Counter-Strike 1.6
Rolled back recent silent walking exploit fixes as we investigate less impactful ways of preventing the bug
Adjusted bomb bounding box to prevent silent plant exploit
Fix to eliminate or significantly reduce "flashbugs"
Fixed status icons (buy zone, bomb zone, etc) disappearing when starting a recording, or issuing a fullupdate
Prevent creating aliases using the same name as existing cvars
Rate limit fullupdate and some other commands to prevent spamming
Fixed an issue with grenades where they could go into an area and bounce infinitely, causing the server to choke and or crash

fysiks 08-05-2011 15:31

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
Oh ok, so it was in a client-side fix. I didn't find anything for DOD.

alonelive 08-06-2011 06:34

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
PHP Code:

claudiuhksgime me a code
if i must edit my plugin


^SmileY 08-07-2011 15:56

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
PHP Code:

#include <amxmodx> 

public plugin_init( ) 

    
register_plugin"Anti AutoBuy"AMXX_VERSION_STR"SmileY" 

    
register_clcmd"cl_setautobuy""cmd_check" 
    
register_clcmd"cl_setrebuy""cmd_check" 


public 
cmd_checkid 

    static 
arg[512], args
    args 
read_argc( ) 

    for( 
1args; ++
    { 
        
read_argviargcharsmaxarg ) ) 

        if( 
is_cmd_longargcharsmaxarg ) ) ) 
        {
            new 
SteamID[32]
            
get_user_authid(id,SteamID,31)
            
server_cmd("kick #%d ^"Banido permanentemente^"",get_user_userid(id))
            
server_cmd("amx_addban ^"%s^" 0 ^"Tentativa de derrubar o servidor.^"",SteamID)
            return 
PLUGIN_HANDLED 
        

    } 

    return 
PLUGIN_CONTINUE 


stock bool:is_cmd_longstring[], const len 

    static 
cmd[512

    while( 
strlen( string ) ) 
    { 
        
strtokstringcmdcharsmaxcmd ), stringlen ' '

        if( 
strlencmd ) > 31 ) return true 
    


    return 
false 



This is launched before your post in submissions.

mohsen9010 08-30-2011 15:25

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
change [ru] to [en] & [en] to [ru] in your text
Code:


[ru]
FUWARN = [Anti-Crash] %s! A 'fullupdate' command is NOT ALLOWED on this server! (WARN: %i/%i)
FUBAN = [Anti-Crash] %s got a permanent ban. Reason: Attempted server crash.
ABNA = [Anti-Crash] Autobuy in not allowed!
ABNA2 = [Anti-Crash] Check your CONFIG (cstrike/config.cfg)!
[en]
FUWARN = [Anti-Crash] %s! Вы будуте забанены за команду fullupdate! (пред.: %i из %i)
FUBAN = [Anti-Crash] %s забанен навечно за попытки вывести сервер из строя.
ABNA = [Anti-Crash] Автозакупка оружия на сервере запрещена! 
ABNA2 = [Anti-Crash] Проверьте Ваш КОНФИГ (cstrike/config.cfg)!


xPaw 08-30-2011 15:38

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
Quote:

Originally Posted by ^SmileY (Post 1527784)
PHP Code:

#include <amxmodx> 

public plugin_init( ) 

    
register_plugin"Anti AutoBuy"AMXX_VERSION_STR"SmileY" 

    
register_clcmd"cl_setautobuy""cmd_check" 
    
register_clcmd"cl_setrebuy""cmd_check" 


public 
cmd_checkid 

    static 
arg[512], args
    args 
read_argc( ) 

    for( 
1args; ++
    { 
        
read_argviargcharsmaxarg ) ) 

        if( 
is_cmd_longargcharsmaxarg ) ) ) 
        {
            new 
SteamID[32]
            
get_user_authid(id,SteamID,31)
            
server_cmd("kick #%d ^"Banido permanentemente^"",get_user_userid(id))
            
server_cmd("amx_addban ^"%s^" 0 ^"Tentativa de derrubar o servidor.^"",SteamID)
            return 
PLUGIN_HANDLED 
        

    } 

    return 
PLUGIN_CONTINUE 


stock bool:is_cmd_longstring[], const len 

    static 
cmd[512

    while( 
strlen( string ) ) 
    { 
        
strtokstringcmdcharsmaxcmd ), stringlen ' '

        if( 
strlencmd ) > 31 ) return true 
    


    return 
false 



This is launched before your post in submissions.

You are not author of this plugin, you just put your nickname in there.

alonelive 08-31-2011 11:12

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
Quote:

You are not author of this plugin, you just put your nickname in there.
What are you talking about?

xPaw 08-31-2011 13:26

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
Quote:

Originally Posted by alonelive (Post 1544863)
What are you talking about?

You don't see the post i quoted? :|

OvidiuS 08-31-2011 14:37

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
i think this one is better :P
http://www.datenkrieger.eu/AutoBuyFix_v14.sma

Exolent[jNr] 08-31-2011 14:56

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
Quote:

Originally Posted by OvidiuS (Post 1544998)
i think this one is better :P
http://www.datenkrieger.eu/AutoBuyFix_v14.sma

Actually, it's not, because the motd_* commands don't work in Steam CS anymore.
Also, it doesn't fix the fullupdate crash for games other than CS.


All times are GMT -4. The time now is 20:10.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.