CSB High Ping Kicker

v1.0.0 0 téléchargements Daemon666 Dernière mise à jour: Jul 14, 2026

Kicks players whose rolling average ping stays over the limit, with a connect grace period and flag immunity.

CSB High Ping Kicker samples get_user_ping() every few seconds, keeps the last five samples per player in a ring buffer and compares the average against csb_ping_max. A player only gets kicked after csb_ping_strikes consecutive bad averages — a single lag spike, a map download or a garbage-collect stutter will never kick anyone, which is the failure mode of most naive ping kickers.

Inspired by High Ping Kicker by Nomexous. Independent GPL re-implementation.

Features

  • Rolling 5-sample average instead of a single reading.
  • Consecutive-strike requirement before any action is taken.
  • Warns the player in chat before each strike, so they know why they are about to be dropped.
  • Connect grace period (csb_ping_grace, default 60s) — a client still loading always reports a garbage ping.
  • csb_ping_minplayers so the limit is only enforced when the server is actually busy.
  • Flag immunity (csb_ping_immunity, default a).
  • say /ping for players, amx_pinglist for admins (current ping, average, loss and strikes per player).

Installation

  1. Compile and copy csb_high_ping_kicker.amxx into addons/amxmodx/plugins/.
  2. Add it to plugins.ini.
  3. Set csb_ping_max in amxx.cfg and change the map.

Notes

Use no modules and no forwards — the whole plugin is a set_task loop, so its cost is a handful of native calls every csb_ping_interval seconds regardless of player count. Set csb_ping_max generously (150–200) unless your player base is entirely local; on a public server a hard 100ms limit will empty your slots.

Installation

1. Put csb_high_ping_kicker.amxx in addons/amxmodx/plugins/
2. Add it to plugins.ini
3. Set csb_ping_max in amxx.cfg
4. Change map
No extra modules needed. csb_ping_interval is read once at map start.

Cvars

CVARDefaultDescription
csb_ping_enabled 1 Enable or disable ping enforcement.
csb_ping_max 150 Maximum allowed average ping.
csb_ping_interval 5.0 Seconds between ping samples (read once, at map start).
csb_ping_strikes 3 Consecutive bad averages before the player is kicked.
csb_ping_grace 60 Seconds after connecting during which the ping is ignored.
csb_ping_immunity a Access flag that is never kicked.
csb_ping_minplayers 0 Only enforce the limit above this player count.

Commandes

CommandAccessDescription
say /ping Shows your current ping, your average and the server limit.
amx_pinglist c (ADMIN_KICK) Console table of every player's ping, average, loss and strikes.

Journal des modifications — v1.0.0

1.0.0 - Initial release.
Versions →
Contributeurs: Daemon666 ✦
Auteur original: Nomexous (High Ping Kicker) Licence: GPL-3.0

Note

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
Télécharger .sma
Fichiers:
csb_high_ping_kicker.sma main 6.0 KB

Prérequis

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Optionnel
ReAPI Optionnel
Metamod Metamod / Metamod-r
Conflits connus Any other ping-limiting plugin.
Retour aux Plugins