CSB Gag

v1.0.0 1 descărcări Daemon666 Ultima actualizare: Jul 14, 2026

Timed chat and radio gags that survive a reconnect, stored in a Trie and persisted with nVault.

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

  • amx_gag <target> <minutes> [reason] — 0 minutes = until map change.
  • amx_ungag <target> and amx_gaglist (console table of who is gagged, for how long and why).
  • Blocks radio spam too (csb_gag_radio 1), which is what most gagged players fall back on.
  • Persists across reconnects via nVault; expired entries are removed on the next authorization.
  • The gagged player is told, in chat, how long is left and why — so they stop spamming say.
  • Respects ADMIN_IMMUNITY through cmd_target() and caps the duration with csb_gag_max.

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.

Instalare

1. Enable the nvault module in addons/amxmodx/configs/modules.ini
2. Put csb_gag.amxx in addons/amxmodx/plugins/
3. Add it to plugins.ini
4. Change map

Cvar-uri

CVARDefaultDescription
csb_gag_enabled 1 Enable or disable gag enforcement.
csb_gag_radio 1 Also block radio commands while gagged.
csb_gag_max 1440 Maximum gag length in minutes an admin may set (0 = no cap).

Comenzi

CommandAccessDescription
amx_gag c (ADMIN_KICK) amx_gag <name or #userid> <minutes, 0 = until map change> [reason]
amx_ungag c (ADMIN_KICK) amx_ungag <name or #userid>
amx_gaglist c (ADMIN_KICK) Lists the gagged players currently on the server.

Jurnal de modificări — v1.0.0

1.0.0 - Initial release.
Versiuni →
Contribuitori: Daemon666 ✦
Autor original: ConnorMcLeod (Gag/Ungag) Licență: GPL-3.0

Evaluare

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
Descarcă .sma
Fișiere:
csb_gag.sma main 8.4 KB

Cerințe

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Opțional
ReAPI Opțional
Metamod Metamod / Metamod-r
Module nvault
Conflicte cunoscute Any other gag/mute plugin that also hooks say - run only one of them.
Înapoi la Pluginuri