Skip to content

Kicks users with high ping (for CounterStrikeSharp)

License

Notifications You must be signed in to change notification settings

wiruwiru/HighPingKicker-CS2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

High Ping Kicker

Inspired by SourceMod plugins Very Basic High Ping Kicker and High Ping Kicker

Installation

  1. Install CounterStrike Sharp and Metamod:Source.

  2. Download HighPingKicker.zip from the releases section.

  3. Unzip the archive and upload it to the game server.

  4. Start the server and wait for the configuration file to be generated.

  5. Edit the configuration file with the parameters of your choice.

Configuration Example

When the plugin is first loaded, the following config will be generated in counterstrikesharp/configs/plugins/HighPingKicker/HighPingKicker.json

{
   "max_ping": 150,
   "max_warnings": 5,
   "check_interval": 20,
   "show_warnings": true,
   "show_public_kick_message": true,
   "warning_message": "You will be kicked for excessive ping. You have {WARN} out of {MAXWARN} warnings.",
   "kick_message": "{NAME} has been kicked due to excessive ping.",
   "grace_period_seconds": 90,
   "whitelist": [],
   "EnableDebug": false,
   "ConfigVersion": 2,
}

Whitelist Configuration

The whitelist allows you to exclude specific players from being kicked for high ping. Add SteamID64 values to the whitelist array:

{
   "whitelist": [
      "76561199000000000",
      "76561299000000000",
      "76561399000000000"
   ]
}

How to get SteamID64

  1. Go to SteamID.xyz
  2. Enter the player's Steam profile URL or Steam username
  3. Copy the SteamID64 value (17-digit number starting with 765611...)

Configurable messages

Message type Broadcast to Default
Warning message The player being warned You will be kicked for excessive ping. You have {WARN} out of {MAXWARN} warnings.
Kick message Everyone {NAME} has been kicked due to excessive ping.

Available message variables

  • {NAME}
  • {WARN}
  • {MAXWARN}
  • {PING}
  • {MAXPING}

About

Kicks users with high ping (for CounterStrikeSharp)

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Languages

  • C# 100.0%