Raised This Month: $32 Target: $400
 8% 

[CS:S] Radio Command Spam Blocker


Post New Thread Reply   
 
Thread Tools Display Modes
Author
TheAvengers2
BANNED
Join Date: Jul 2011
Plugin ID:
2791
Plugin Version:
1.2
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A plugin which blocks radio command spammers.
    Old 01-29-2012 , 05:14   [CS:S] Radio Command Spam Blocker
    Reply With Quote #1

    Description: A plugin which attempts to block individuals who spam radio commands. The plugin itself doesn't necessarily regulate the rate at which commands can be issued but instead blocks users based on the average distance in time between a couple of earlier radio commands (meaning it allows a short burst). It will also check whether there's been at least some variation in time between previous radio commands. Players who are blocked will remain blocked until re-spawn and this typically occurs after a round restart or a player death on a deathmatch server. Additionally, it'll issue a map long block for users who trip the detection frequently.

    Features:
    Blocks people who intentionally/unintentionally spam radio commands.
    Blocks automated radio command spamming scripts/hacks and/or timed radio command spamming attempts.
    Users are typically blocked until re-spawn or until map change when max blocks is exceeded.
    Users aren't able to circumvent map-long blocks by reconnecting (assuming max blocks is greater than 0).
    User blocks are logged along with some basic diagnostic information (when sm_radio_log_blocks is set to 1).

    Code:
    ConVars:
    
    sm_radio_max_avg_duration
    default: 3
    The maximum average duration between radio messages that will still trigger a block.
    
    sm_radio_max_blocks
    default: 3
    The maximum times a user can be blocked before being permanently blocked until map change. (0 = Never issue this sort of block)
    
    sm_radio_log_blocks
    default: 1
    Log users blocked for spamming radio.
    Code:
    Changelog
    
    1.2 (Current)
    - The plugin now offers a single warning to people who spam radio commands faster than once a second (on first pass only, though).
    - The plugin now informs people that their radio command privileges were stripped for spamming.
    - Some cleanup.
    
    1.1
    - Improved the usefulness of the map-long trie by making it track the times blocked.
    - Some optimizations.
    
    1.0
    - Initial release.

    Note:

    This may or may not be useful for people and there might be a better plugin out there which basically achieve the same effect, but oh well. I'm new to SourceMod/SourcePawn and I primarily coded the plugin so that I could figure out the scripting language. That being said, don't hate on my sloppy, often times nonsensical crappy code too much.
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_radiospamblocker.sp - 1770 views - 10.3 KB)

    Last edited by TheAvengers2; 03-21-2012 at 19:05.
    TheAvengers2 is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 03-09-2012 , 19:09   Re: [CS:S] Radio Command Spam Blocker
    Reply With Quote #2

    This being the only SM plugin blocking radio commands without preventing them fully, I recommand that you put a round-spam limit (map-radio ban looks rather annoying).

    Red
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    TheAvengers2
    BANNED
    Join Date: Jul 2011
    Old 03-21-2012 , 19:20   Re: [CS:S] Radio Command Spam Blocker
    Reply With Quote #3

    Quote:
    Originally Posted by RedSword View Post
    blocking radio commands without preventing them fully, I recommand that you put a round-spam limit
    I don't know what you mean.
    TheAvengers2 is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 01-06-2013 , 05:11   Re: [CS:S] Radio Command Spam Blocker
    Reply With Quote #4

    I don't see any problem with this plugin. Approved.
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 19:50.


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