Promuj serwer
csb-name-filter / README.md
1 lines 1.5 KiB Markdown Source Rendered Raw Permalink History

CSB Name Filter 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 csb_namefilter.ini — advertising URLs, admin impersonation, IP-address names and anything else you add.

How it works

The plugin hooks the core client_infochanged 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 Player_<userid> or kicked, depending on csb_namefilter_action. A per-player cooldown discourages name-change spam.

Features

  • External csb_namefilter.ini blacklist — edit without recompiling.
  • Substring matching, case-insensitive, up to 128 patterns.
  • Built-in IP-address name detection (csb_namefilter_blockip).
  • Minimum name length check (csb_namefilter_minlen).
  • Action is a cvar: 0 = auto-rename, 1 = kick.
  • Ships with a sensible starter ini; falls back to a built-in list if the file is missing.

Installation

  1. Compile and copy csb_name_filter.amxx into addons/amxmodx/plugins/.
  2. Copy csb_namefilter.ini into addons/amxmodx/configs/ and edit it for your community.
  3. Add the plugin to plugins.ini and change the map.