Raised This Month: $51 Target: $400
 12% 

YeGods High Ping Remover v1.0.1.10


Post New Thread Reply   
 
Thread Tools Display Modes
Author
dubbeh
Senior Member
Join Date: Jul 2007
Plugin ID:
89
Plugin Version:
1.0.1.10
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Allow admins to keep the server free from bad connections & set maximum allowed ping/choke/loss :)
    Unapprover:
    Reason for Unapproving:
    Reported to not be working.
    Old 07-15-2007 , 09:09   YeGods High Ping Remover v1.0.1.10
    Reply With Quote #1

    YeGods High Ping Remover - v1.0.1.10

    About the plugin:
    Allow admins to keep the server free from bad connections & set maximum allowed ping/choke/loss

    Supported Languages:
    English
    German - Thanks to sessus
    Polish - Thanks to 300FraYda
    French - Thanks to flubber
    Dutch - Thanks to justeagle

    Server Console Vars:
    Quote:
    // Enable the high ping remover plugin
    yghpr_enable "1"

    // Maximum allowed ping on the server.
    // 0 to disable.
    yghpr_maxping "100.0"

    // Maximum ping points before a client gets kicked, this is updated once a second.
    // 60 points will mean the client gets kicked in 60 seconds.
    yghpr_maxpingpoints "60"

    // Allow admins immunity from getting kicked for a high ping.
    yghpr_adminsimmune "1"

    // Warn the user for the last 10 connection breaks every second until kicked
    yghpr_connectionbreakwarn "1"

    // Maximum kick counts a client can get before getting banned.
    // 0 to disable
    yghpr_maxkickcounts "3"

    // How long to ban a client for hitting the kick count limit.
    yghpr_kickcountlimitbantime "60"

    // How often to clear the kickcounts array.
    // 1 = a minute
    yghpr_kickcountcleartime "60"

    // Extra immunity flag to stop clients getting checked for a high ping
    // Flag types (Using the same ones found in the sourcemod admins.inc)
    //
    // Reservation = 0
    // Generic = 1
    // Kick = 2
    // Ban = 3
    // Unban = 4
    // Slay = 5
    // Changemap = 6
    // Convars = 7
    // Config = 8
    // Chat = 9
    // Vote = 10
    // Password = 11
    // RCON = 12
    // Cheats = 13
    // Root = 14
    // Custom1 = 15
    // Custom2 = 16
    // Custom3 = 17
    // Custom4 = 18
    // Custom5 = 19
    // Custom6 = 20
    //
    // Default is set to "1" Generic
    yghpr_extraimmunityflag "1"
    Installation:
    yghpr.smx -> addons\sourcemod\plugins
    yghpr.phrases.txt -> addons\sourcemod\translations
    plugin.yghpr.cfg -> cfg\sourcemod
    yghpr.sp -> addons\sourcemod\scripting


    Version History:
    1.0.1.10
    - Really small optimization
    1.0.1.9
    - Removed the slight change i made to the ping calculation - Need to do some debugging first & get the calculations right (Added it as a last minute thing which was a bad idea)
    - Added a new cvar "yghpr_extraimmunityflag" for a custom immunity flag
    1.0.1.8
    - Made a slight change to the Ping calculation thanks to urus
    - Disabled the Choke/Loss options for the time being (causing too many problems with TF2)
    - Added a Polish translation - Thanks to 300FraYda
    - Added a French translation - Thanks to flubber
    - Added a Dutch translation - Thanks to justeagle
    1.0.1.7
    - Made a small change that will hopefully fix the choke bug with TF2
    1.0.1.6
    - Fixed another translation bug
    1.0.1.5
    - All translation bugs fixed
    - Hopefully fixed the TF2 config bug
    - Added a german translation - thanks to sessus
    1.0.1.4
    - Fixed a bug with the translations - Thanks to bailopan
    1.0.1.3
    - Plugin now supports translations
    1.0.1.2
    - Added a few more client connected checks
    - Fixed a bug with the loss option
    - Few typos fixed in the config file - copy & pasted ;)
    1.0.1.1
    - Fixed the cVar limits for max ping/choke/loss
    1.0.1.0b
    - All convars changed to yghpr_### & changed the config name to pluging.yghpr.cfg
    - Added new loss & choke options
    - Kick counts are now recorded & clients can be banned after they hit a specified number - 0 to disable this option
    - Kick counts array can be cleared after a specificed time with - yghpr_kickcountcleartime
    - Ping/Choke/Loss options can now be disabled by an admin
    1.0.0.4
    - Spectators are now skipped
    - Added a warning message for the last 10 seconds of a ping violation before getting kicked/banned
    1.0.0.3
    - Added an option to ban a client aswell as kicking
    - Changed the versioning system requested by xYx
    1.0.2
    - Fixed the config folder error
    - Moved the plugin out of beta
    1.0.1 BETA
    -Option to protect admins from getting kicked for having a high ping
    v1.0.0 BETA
    -Initial release

    Have fun dubbeh
    Attached Files
    File Type: txt yghpr.phrases.txt (3.1 KB, 2327 views)
    File Type: cfg plugin.yghpr.cfg (1.9 KB, 2320 views)
    File Type: sp Get Plugin or Get Source (yghpr.sp - 4823 views - 15.6 KB)

    Last edited by dubbeh; 03-06-2008 at 04:23. Reason: updated
    dubbeh is offline
    tcviper
    Veteran Member
    Join Date: Oct 2005
    Location: Netherlands
    Old 07-15-2007 , 09:47   Re: YeGods High Ping Remover
    Reply With Quote #2

    Nice job!
    Maybe add something that if the whole server (everybody) gets a high ping (or if more then xx % has high ping) then dont kick anyone?
    __________________
    tcviper is offline
    Send a message via MSN to tcviper
    dubbeh
    Senior Member
    Join Date: Jul 2007
    Old 07-15-2007 , 11:26   Re: YeGods High Ping Remover
    Reply With Quote #3

    thank tcviper

    i'll have an done by v1.0.2, that seemed to happen quite alot with the client crash bug when someone switched team

    just about to upload a quick little update to allow the option to give admins immunity

    and thanks for approving the plugin ferret
    dubbeh is offline
    xYx
    Member
    Join Date: Jul 2005
    Old 07-15-2007 , 13:03   Re: YeGods High Ping Remover
    Reply With Quote #4

    nice, been waiting for a high ping kicker!

    good to see a YeGods dude on the forums.

    Better than ED forums hey :p

    You wouldn't happen to fancy making a auto team balancer would you?

    Heres my idea (original I know)

    http://forums.alliedmods.net/showthread.php?t=57817

    cheers
    xYx is offline
    janbanan
    Member
    Join Date: Jun 2007
    Old 07-15-2007 , 15:01   Re: YeGods High Ping Remover
    Reply With Quote #5

    This is very useful, thank you.

    How does the admin immunity work? For instance, if i have a regular that i want to except from high-ping kick, but dont want to make him admin, can i give him like 'a' flag or something?
    janbanan is offline
    dubbeh
    Senior Member
    Join Date: Jul 2007
    Old 07-16-2007 , 01:56   Re: YeGods High Ping Remover
    Reply With Quote #6

    Quote:
    Originally Posted by xYx View Post
    nice, been waiting for a high ping kicker!

    good to see a YeGods dude on the forums.

    Better than ED forums hey :p

    You wouldn't happen to fancy making a auto team balancer would you?

    Heres my idea (original I know)

    http://forums.alliedmods.net/showthread.php?t=57817

    cheers
    ill have a look into it, bit busy with coding up a match server admin plugin with a lot of ideas based on edap for eventscripts

    Quote:
    Originally Posted by janbanan View Post
    This is very useful, thank you.

    How does the admin immunity work? For instance, if i have a regular that i want to except from high-ping kick, but dont want to make him admin, can i give him like 'a' flag or something?
    all the regular needs is the generic admin flag in sourcemod to be immune from getting kicked
    dubbeh is offline
    xYx
    Member
    Join Date: Jul 2005
    Old 07-16-2007 , 02:44   Re: YeGods High Ping Remover
    Reply With Quote #7

    Quote:
    Originally Posted by dubbeh View Post
    ill have a look into it, bit busy with coding up a match server admin plugin with a lot of ideas based on edap for eventscripts
    That would be really handy as well, especially if you can implement all the functionality of EDAP into ur sourcemod plugin.

    After you have done this though, I feel making that auto balance would make you a yeGOD!!!
    xYx is offline
    xYx
    Member
    Join Date: Jul 2005
    Old 07-16-2007 , 02:56   Re: YeGods High Ping Remover
    Reply With Quote #8

    On a serious note. I might have found a bug.

    I set my server with these settings:

    Code:
    // enable the high ping remover plugin
    yg_hpr_enable "1"
    
    // maximum allowed ping on the server
    yg_hpr_maxping "150.0"
    
    // Maximum ping points before a cliet gets kicked this is updated once a second
    // 60 points will mean the client gets kicked in 60 seconds
    // with a continous high ping above the max ping limit
    yg_hpr_maxpingpoints "60"
    
    // Allow admins immunity from getting kicked for a high ping. 0= off 1=on
    yg_hpr_adminsimmune "1"
    I tested these settings and with me having a ping of 300 it did infact kick me. However the console kick message has you exceeded the maxping of 100.00000

    Is this a typo, or is maxping cvar not working? (giben that i later my maxping to 150)

    Last edited by xYx; 07-16-2007 at 02:57. Reason: made it easier to follow
    xYx is offline
    dubbeh
    Senior Member
    Join Date: Jul 2007
    Old 07-16-2007 , 05:12   Re: YeGods High Ping Remover
    Reply With Quote #9

    just fixed that bug, had the config in the wrong folder ill upload the new version now
    dubbeh is offline
    xYx
    Member
    Join Date: Jul 2005
    Old 07-16-2007 , 06:31   Re: YeGods High Ping Remover
    Reply With Quote #10

    Also noticed that the VERSION_PRINT thingy is labelled hpk 1.0.2 could it be pre-fixed with sm_hpk 1.0.2

    I just noticed it prints its version number different from my other sm plugins in hlsw.


    Doesnt really matter tho either way, its just nice to see all the sourcemod plugins together in HLSW.
    xYx is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 08:25.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode