CSB Vote Kick

v1.0.0 3 descărcări Daemon666 Ultima actualizare: Jul 16, 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.

Instalare

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

Cvar-uri

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.

Comenzi

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

Jurnal de modificări — v1.0.0

1.0.0 - Initial release.
Versiuni →
Contribuitori: Daemon666 ✦
Licență: GPL-3.0

Evaluare

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
Descarcă .sma
Fișiere:
csb_vote_kick.sma main 6.7 KB

Cerințe

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Opțional
ReAPI Opțional
Metamod Metamod / Metamod-r
Conflicte cunoscute Other vote / kick-vote plugins bound to say /votekick will double-trigger.
Înapoi la Pluginuri