CSB Warn System

v1.0.0 12 изтегляния Daemon666 Последна актуализация: Jul 16, 2026

amx_warn stores warnings per SteamID in nVault; reaching a count kicks, a higher count bans for a set time. Warnings expire after N days.

CSB Warn System turns "final warning" into something the server actually remembers. amx_warn <target> [reason] records a warning against the player's SteamID in nVault. Reaching csb_warn_kick warnings kicks them; reaching the higher csb_warn_ban threshold bans them for csb_warn_bantime minutes using the engine banid command (and writes the ban list to disk). Warnings expire after csb_warn_expire days, so an old mistake does not haunt a player forever, and say /warns lets anyone check their own standing.

Features

  • amx_warn <name or #userid> [reason] — adds a warning and announces it.
  • Warnings persist per SteamID in nVault across map changes and restarts.
  • Auto-kick at one threshold, auto-ban (with banid + writeid) at a higher one.
  • Warnings older than csb_warn_expire days no longer count.
  • amx_warns <target> for admins and say /warns for players to check a count.

Installation

  1. Make sure the nvault module is enabled in addons/amxmodx/configs/modules.ini.
  2. Compile csb_warn_system.sma, copy it to addons/amxmodx/plugins/ and add it to plugins.ini.
  3. Change the map. The vault file csb_warns.vault appears under addons/amxmodx/data/vault/.

Инсталация

1. Enable the nvault module in addons/amxmodx/configs/modules.ini
2. Put csb_warn_system.amxx in addons/amxmodx/plugins/ and add it to plugins.ini
3. Change map

Cvar-и

CVARDefaultDescription
csb_warn_enabled 1 Enable the warn command.
csb_warn_kick 3 Warning count that triggers a kick.
csb_warn_ban 5 Warning count that triggers a ban.
csb_warn_bantime 60 Ban length in minutes at the ban threshold.
csb_warn_expire 7 Days after which a warning stops counting (0 = never).

Команди

CommandAccessDescription
amx_warn c (ADMIN_KICK) amx_warn <target> [reason] - give a player a warning.
amx_warns c (ADMIN_KICK) amx_warns <target> - show a player's warning count.
say /warns Show your own active warning count.

Списък с промени — v1.0.0

1.0.0 - Initial release.
Версии →
Сътрудници: Daemon666 ✦
Лиценз: GPL-3.0

Оценка

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
Изтегли .sma
Файлове:
csb_warn_system.sma main 5.5 KB

Изисквания

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Незадължително
ReAPI Незадължително
Metamod Metamod / Metamod-r
Модули nvault
Известни конфликти Other ban systems may store bans separately from the engine banid list used here.
Обратно към плъгините