CSB Vote Kick

v1.0.0 2 загрузок Daemon666 Обновлено: Jul 15, 2026

Players start a Yes/No vote to kick a named player; passes on a cvar ratio. Per-starter cooldown (Trie), min-players and immunity checks stop abuse.

CSB Vote Kick gives your community a controlled way to remove a disruptive player without an admin online. Typing say /votekick <name> opens a Yes/No menu for everyone; when the timer runs out the target is kicked if the yes ratio reaches csb_vk_ratio. Abuse is fenced off on three sides: a per-starter cooldown stored in a Trie by SteamID (so one player cannot spam votes), a minimum-player requirement, and an ADMIN_IMMUNITY check that protects staff from being voted out.

Features

  • say /votekick <player> — matches a single connected player by name substring.
  • Yes/No menu shown to every player, one vote each.
  • Configurable pass ratio, vote duration and minimum players.
  • Per-starter cooldown by SteamID kept in a Trie; the cooldown is applied even on a failed vote.
  • Immune admins cannot be targeted.

Installation

  1. Compile csb_vote_kick.sma and copy it to addons/amxmodx/plugins/.
  2. Add it to plugins.ini and change the map.

Tune csb_vk_ratio (default 0.6) and csb_vk_cooldown (seconds) to fit your traffic.

Установка

1. Put csb_vote_kick.amxx in addons/amxmodx/plugins/
2. Add it to addons/amxmodx/configs/plugins.ini
3. Change map

Cvar-ы

CVARDefaultDescription
csb_vk_enabled 1 Enable vote kicks.
csb_vk_ratio 0.6 Fraction of yes votes needed to pass (0.0-1.0).
csb_vk_cooldown 300 Seconds a starter must wait between votes.
csb_vk_minplayers 4 Minimum players on the server to allow a vote.
csb_vk_duration 20 Vote length in seconds.

Команды

CommandAccessDescription
say /votekick say /votekick <name> - start a vote to kick a player.

История изменений — 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_vote_kick.sma main 6.7 KB

Требования

AMX Mod X ≥ 1.9
Движок ReHLDS HLDS
ReGameDLL Необязательно
ReAPI Необязательно
Metamod Metamod / Metamod-r
Известные конфликты Other vote / kick-vote plugins bound to say /votekick will double-trigger.
Назад к плагинам