Author Topic: Alternative Ping Handler  (Read 2397 times)

0 Members and 1 Guest are viewing this topic.

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Alternative Ping Handler
« on: August 27, 2013, 09:42:10 pm »
Script Name: Ping Handle
Script Description: Alternative lagger handler
Author(s): Mighty
Soldat Version: 1.6.5
Server Version: 2.7.5
Script Core Version: 3
Script Version: 1.1
Download: Attachment
Notes:
 
  • Script prevents rejoining to reset warning counter: HWID based
  • Max_Ping in soldat.ini must be higher than Max_Ping in script's config file (will be created at const PATH (script's data folder) after the 1st run). I'd recommend setting soldat.ini's to 1000
  • Script is using Admin Unit, so it requires Sandbox level 1 or 0 for commands to work, if commands are not needed, sandbox 2 is fine
     
  • This script has not been tested with multiple people online. I think it should be working fine though.
Detailed description
As requested in this topic I tried to write an alternative ping limiter. In Script Core 3.
Admin commands:
  • /maxping XXX (negative values also work for testing purposes)
  • /reset ID
  • /exclude ID (toggle excluding ID from checks)


Anyways, config file is as follows:
Code: (ini) [Select]
[Settings]
Max_Ping=250 
Max_Warnings=10 // player will be kicked at 11th
Notify_Player=1 // show warnings to a player
Interval=5 // ping check interval (seconds)
Ban_Time=10 // (minutes)
 
« Last Edit: August 28, 2013, 12:07:43 pm by Mighty »
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Alternative Ping Handler
« Reply #1 on: August 28, 2013, 04:29:52 am »
where is Includes.txt? its should have only PingHandle.pas?
This is a Script Core 3 script. It's supposed to be like that. Config.ini replaces Inludes.txt. The archieve is fine, you should unpack it into scripts folder

Quote
its possible to disable ping kick for selected players?
Quote
the script misses some functionalities, like (...) excluding players from the system
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Alternative Ping Handler
« Reply #2 on: August 28, 2013, 12:08:22 pm »
Update: Added admin commands and "~"-path support
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline skrX

  • Soldier
  • **
  • Posts: 112
  • x ye.
Re: Alternative Ping Handler
« Reply #3 on: August 28, 2013, 01:35:56 pm »
Very useful, gj Mighty.