The high ping of a player can spoil the gaming experience by causing lags for all players. This script allows you to automatically kick a player with a ping value too high (after 3 warnings).
Each 30 secondes, the script check the ping average of players.
Player who have an exceeded value (define by admin) received 1 warn.
After 3 warns, the player is kicked.
This script required :
- Assetto server linux
- Stracker (only to diffuse messages)
- Unzip Copy / paste into a folder (for example /home)
- Edit file ping_kick.php and set the different variables
- Open a new screen : screen -S ping-Kick
- Lunch it : php5 ping_kick.php
- Let the application in background (CTRL + A D)
For a test set the $max_ping value to 1.
Enjoy it, any question to firstname.lastname@example.org