←  [RSS] Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

[forums.alliedmods.net] [CS:S] Radio Comm...

Adminek AMXX.PL - zdjęcie Adminek AMXX.PL 29.01.2012

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.



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.Note:
This may or may not be useful for people and there might be a better plugin out there which achieve basically the same effect, but oh well. I coded the plugin so that I could figure out how to make plugins in SourceMod. I'm new to working in SourceMod so don't hate on me too much if the plugin primarily consists of sloppy nonsensical crap like code. :oops:

Attached Files Dołączona grafika Get Plugin or Get Source (sm_radiospamblocker.sp - 9.6 KB)

Wyświetl pełny artykuł
Odpowiedz