CSB Command Access

v1.0.0 3 indirme Daemon666 Son güncelleme: Jul 15, 2026

Maps arbitrary console/chat commands to access flags in an ini and blocks anyone without the flag - no recompiling.

CSB Command Access lets a server owner gate any console or say-based command behind an access flag without touching the plugin that owns it. Rules live in configs/csb_cmdaccess.ini as <command> <flags>; each mapped command is registered, and when a player without the flags runs it the plugin returns PLUGIN_HANDLED and prints a denial.

Say-based commands are handled too: the plugin rebuilds the full say /whatever line so you can restrict things like say /rtv to reserved slots. A default ini with a worked example is written on first load.

Features

  • Command-to-flag rules from configs/csb_cmdaccess.ini.
  • Works for console commands and say / say_team commands alike.
  • Blocks with a clear message; allows and passes through for anyone with the flag.
  • Up to 48 rules, matched case-insensitively.

Installation

  1. Compile csb_command_access.sma and copy it to addons/amxmodx/plugins/.
  2. Add it to plugins.ini and change the map.
  3. Edit addons/amxmodx/configs/csb_cmdaccess.ini.

Because it registers the listed commands itself, load this plugin so its rules are read at map start; a map change re-reads the file.

Kurulum

1. Put csb_command_access.amxx in addons/amxmodx/plugins/
2. Add it to addons/amxmodx/configs/plugins.ini
3. Change map
4. Edit addons/amxmodx/configs/csb_cmdaccess.ini

Cvarlar

CVARDefaultDescription
csb_cmdaccess_enabled 1 Enable or disable command gating.

Değişiklik günlüğü — v1.0.0

1.0.0 - Initial release.
Sürümler →
Katkıda bulunanlar: Daemon666 ✦
Lisans: GPL-3.0

Puan

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
.sma indir
Dosyalar:
csb_command_access.sma main 3.4 KB

Gereksinimler

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL İsteğe bağlı
ReAPI İsteğe bağlı
Metamod Metamod / Metamod-r
Bilinen çakışmalar If another plugin also registers one of the gated say-commands, load order decides which handler runs first.
Eklentilere Dön