CSB Gag silences a player's say, say_team and radio commands by hooking client_command() and returning PLUGIN_HANDLED_MAIN while the gag is active — the message never reaches the engine, so no other plugin can leak it back into chat.

Gags are keyed by SteamID in a Trie for O(1) lookups and mirrored into nVault, so reconnecting does not clear the punishment. A gag of 0 minutes lasts until the map changes; anything else is a real timestamp and expires on its own.

Inspired by the well-known Gag/Ungag plugin by ConnorMcLeod. Independent GPL re-implementation; no original code is reused.

Features

Installation

  1. Make sure the nvault module is enabled in addons/amxmodx/configs/modules.ini.
  2. Compile, copy csb_gag.amxx into addons/amxmodx/plugins/ and add it to plugins.ini.
  3. Change the map. The vault file csb_gag.vault appears in addons/amxmodx/data/vault/ on the first gag.