Token-bucket rate limiting for chat, radio and console spam, with an auto-mute for repeat flooders.
CSB Anti Flood stops the two things that make a busy server unreadable: chat spam and radio spam. Each player has a separate token bucket for chat, for radio/menu commands and for the noisy console commands, refilled over a short window. Anything over the limit is swallowed and the player is warned; keep flooding and you earn a short automatic mute.
How it works
The plugin hooks client_command, classifies the command into one of three buckets, and blocks it with PLUGIN_HANDLED_MAIN once the per-window limit is exceeded. After a configurable number of warnings a chat/radio flooder is muted for csb_flood_gagtime seconds — long enough to break the spam, short enough not to be a real punishment.
Features
- Independent limits for chat, radio and console commands.
- Sliding window set by
csb_flood_window. - Automatic temporary mute after repeated flooding.
- Bots and the console are never affected.
Inspired by the classic Anti Flood plugins for AMX Mod X; this is an independent GPL re-implementation.
Installation
- Compile and copy
csb_anti_flood.amxxintoaddons/amxmodx/plugins/. - Add it to
plugins.iniand change the map.









