Promocionar servidor
csb-name-filter / README.md
1 lines 1.5 KiB Markdown Source Rendered Raw Permalink History
<p><strong>CSB Name Filter</strong> keeps junk names off your scoreboard. It checks each player's name on connect and every time they rename against a case-insensitive substring blacklist loaded from <code>csb_namefilter.ini</code> &mdash; advertising URLs, admin impersonation, IP-address names and anything else you add.</p><h2>How it works</h2><p>The plugin hooks the core <code>client_infochanged</code> forward, reads the new name and matches it against the loaded patterns (plus a built-in IP-address heuristic and a minimum-length check). A hit is either auto-renamed to <code>Player_&lt;userid&gt;</code> or kicked, depending on <code>csb_namefilter_action</code>. A per-player cooldown discourages name-change spam.</p><h2>Features</h2><ul><li>External <code>csb_namefilter.ini</code> blacklist &mdash; edit without recompiling.</li><li>Substring matching, case-insensitive, up to 128 patterns.</li><li>Built-in IP-address name detection (<code>csb_namefilter_blockip</code>).</li><li>Minimum name length check (<code>csb_namefilter_minlen</code>).</li><li>Action is a cvar: 0 = auto-rename, 1 = kick.</li><li>Ships with a sensible starter ini; falls back to a built-in list if the file is missing.</li></ul><h2>Installation</h2><ol><li>Compile and copy <code>csb_name_filter.amxx</code> into <code>addons/amxmodx/plugins/</code>.</li><li>Copy <code>csb_namefilter.ini</code> into <code>addons/amxmodx/configs/</code> and edit it for your community.</li><li>Add the plugin to <code>plugins.ini</code> and change the map.</li></ol>