[CS:S] Radio Command Spam Blocker

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 of radio commands). Players who are suspected of spamming radio commands will be blocked until re-spawn which 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.




default: 1

The minimum average duration between radio messages without triggering a block.


default: 1

The maximum times a user can be blocked before being permanently blocked until map change. (0 = Never issue this sort of block)


default: 1

Log users blocked for spamming radio.


This may or may not be useful for people and there's likely better plugins out there which achieve the same effect, oh well. I coded the plugin so that I could figure out how to make plugins in SourceMod. I'm new to working in it so don't hate on me too much if the plugin primarily consists of sloppy almost crappy code. :oops:

PS: Can anyone tell me why line 151 causes a buffer overflow? I'm somewhat disappointed about that since line 151 looked much nicer than what I had to write to work around it. Not that it really matters though, it was only two lines, but still... :grrr:

Attached Files

File Type: sp

Get Plugin or
Get Source (sm_radiospamblocker.sp - 9.7 KB)

Orignal From: [CS:S] Radio Command Spam Blocker

1 comment:

  1. Excellent .. Superb .. I will bookmark your web site and take the feeds additionally I'm satisfied to search out numerous useful information here in the post about spam blocker, thank you for sharing. . . . .


Not a single link is allowed to submit in comment :o