Promouvoir serveur
csb-command-access / README.md
1 lines 1.4 KiB Markdown Source Rendered Raw Permalink History
<p><strong>CSB Command Access</strong> 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 <code>configs/csb_cmdaccess.ini</code> as <code>&lt;command&gt; &lt;flags&gt;</code>; each mapped command is registered, and when a player without the flags runs it the plugin returns <code>PLUGIN_HANDLED</code> and prints a denial.</p><p>Say-based commands are handled too: the plugin rebuilds the full <code>say /whatever</code> line so you can restrict things like <code>say /rtv</code> to reserved slots. A default ini with a worked example is written on first load.</p><h2>Features</h2><ul><li>Command-to-flag rules from <code>configs/csb_cmdaccess.ini</code>.</li><li>Works for console commands and <code>say</code> / <code>say_team</code> commands alike.</li><li>Blocks with a clear message; allows and passes through for anyone with the flag.</li><li>Up to 48 rules, matched case-insensitively.</li></ul><h2>Installation</h2><ol><li>Compile <code>csb_command_access.sma</code> and copy it to <code>addons/amxmodx/plugins/</code>.</li><li>Add it to <code>plugins.ini</code> and change the map.</li><li>Edit <code>addons/amxmodx/configs/csb_cmdaccess.ini</code>.</li></ol><p>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.</p>