Sunucu tanitimi

CSB High Ping Kicker v1.0.0

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.

Kurulum
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.
Cvarlar7
CVARDefaultDescription
csb_ping_enabled1Enable or disable ping enforcement.
csb_ping_max150Maximum allowed average ping.
csb_ping_interval5.0Seconds between ping samples (read once, at map start).
csb_ping_strikes3Consecutive bad averages before the player is kicked.
csb_ping_grace60Seconds after connecting during which the ping is ignored.
csb_ping_immunityaAccess flag that is never kicked.
csb_ping_minplayers0Only enforce the limit above this player count.
Komutlar2
CommandAccessDescription
say /pingShows your current ping, your average and the server limit.
amx_pinglistc (ADMIN_KICK)Console table of every player's ping, average, loss and strikes.
Puan
Henüz puan yok