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

Very Basic High Ping Kicker (Updated 7/15/10)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Plugin ID:
784
Plugin Version:
1.4
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    127 
    Plugin Description:
    Simple high ping player kicker
    Old 02-26-2009 , 21:14   Very Basic High Ping Kicker (Updated 7/15/10)
    Reply With Quote #1

    Very Basic High Ping Kicker

    This is a very simple high ping kicker that kicks players based on their ping as reported by SourceMod. The ping is checked at a constant interval (default of 20 seconds) and if their ping exceeds the max ping given, they are internally given a warning. If a player exceeds the maximum number of warnings, they are kicked from the server. That's it.

    The plugin does take admin level into account, players with the RESERVED (default) or ROOT flags are immune to ping balancing. The flag that grants immunity can be changed via cvar. You can also specify a grace period before a player will be warned to compensate for first connect ping when a player first joins, and also a minimum number of players in the server before it starts kicking them. It also waits 90 seconds after a map change before doing any ping checking, again to allow all players to fully join and pings to normalize.

    I have been dissatisfied with other high ping kick plugins because they were either too complex and relied on server and client rate settings which I did not want or need, or they did not work properly or did not offer enough customization for my needs. This plugin uses the SourceMod ping function, which reports the same value as the "status" command for ping.

    Note: This plugin may be inaccurate in some instances, be warned! If you are looking for an extremely accurate plugin, check out this High Ping Kicker by Liam.



    This plugin should work on any Source game, however it has only been tested on these games:
    • Team Fortress 2
    • Left 4 Dead
    • Left 4 Dead 2
    • Eternal Silence
    • Counter-Strike: Source
    • Age of Chivalry
    • Day of Defeat: Source (Unconfirmed)
    • Zombie Panic! Source (Unconfirmed)
    • Dystopia (Unconfirmed)
    • Stargate: The Last Stand (Unconfirmed)
    • The Hidden: Source (Unconfirmed)
    • Battlegrounds 2 (Unconfirmed)
    If you have a game or mod that you are using this for, please let me know so I can add it to the list! Thank you.

    Installation
    Installation is incredibly easy, install the plugin in your /addons/sourcemod/plugins/ directory and refresh your plugin list, or change map.

    Configuration
    A config file will automatically be generated in /cfg/sourcemod/ when the plugin is first ran.

    sm_vbping_mintime - Minimum amount of time a player needs to be connected before checking his ping
    sm_vbping_maxping - Maximum ping a player can have before warning them
    sm_vbping_checkrate - Rate in seconds at which all players' pings are checked
    sm_vbping_maxwarnings - Maximum number of internal warnings a player can have before kicking them
    sm_vbping_minplayers - Minimum number of players needed in the server before ping checking will begin
    sm_vbping_kickmsg - Kick reason to players
    sm_vbping_logactions - Log warning and kicking by the plugin
    sm_vbping_showpublickick - Enable/disable public kick message. 0 = Disabled, 1 = Enabled
    sm_vbping_kickmsgpublic - Public kick message. {NAME} converts to the player's name.
    sm_vbping_showwarnings - Enable/disable warning messages. 0 = Disabled, 1 = Enabled
    sm_vbping_warningmsg - Ping warning message. {WARN} and {MAXWARN} converts to the warning count and max warnings respectively.
    sm_vbping_immunityflag - SourceMod admin flag used to grant immunity to all ping checking/kicking

    The command sm_vbping_debug will print debug information for players about how many warnings if any they have, and if they are immune.
    Attached Files
    File Type: sp Get Plugin or Get Source (vbping.sp - 19688 views - 14.4 KB)
    __________________

    Last edited by msleeper; 07-15-2010 at 00:22. Reason: Updated to 1.4
    msleeper is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 02-26-2009 , 21:25   Re: Very Basic High Ping Kicker
    Reply With Quote #2

    N1!
    PStar is offline
    CrimsonGT
    Veteran Member
    Join Date: Oct 2007
    Location: Gainesville, FL
    Old 02-26-2009 , 21:41   Re: Very Basic High Ping Kicker
    Reply With Quote #3

    Any major difference from http://forums.alliedmods.net/showthread.php?p=701420 ?
    __________________
    CrimsonGT is offline
    msleeper
    Veteran Member
    Join Date: May 2008
    Location: Atlanta, Jawjuh
    Old 02-26-2009 , 21:51   Re: Very Basic High Ping Kicker
    Reply With Quote #4

    Quote:
    Originally Posted by CrimsonGT View Post
    Yeah. His plugin:

    Quote:
    It takes the players cmdrate and the servers tickrate into account when doing this.
    My plugin:

    Quote:
    This is a very simple high ping kicker that kicks players based on their ping as reported by SourceMod.
    I do not worry about client/server rate settings, my plugin uses only the GetClientLatency() function.
    __________________
    msleeper is offline
    Liam
    SourceMod Developer
    Join Date: Jan 2008
    Location: Atlanta, GA
    Old 02-27-2009 , 13:21   Re: Very Basic High Ping Kicker
    Reply With Quote #5

    Then the ping reported is incorrect.
    __________________
    Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

    Weapon Restrictions w/ Warmup
    High Ping Kicker - Lite Edition
    AFK Manager
    Liam is offline
    msleeper
    Veteran Member
    Join Date: May 2008
    Location: Atlanta, Jawjuh
    Old 02-27-2009 , 13:57   Re: Very Basic High Ping Kicker
    Reply With Quote #6

    It is almost identical to the ping reported from the status command, which is what I use when I am in HLSW and kick people for high ping. There is a small margin of error (usually 5-10) that I actually think I know what is causing it which I'll update the plugin if I am right.

    Over the few weeks I ran this plugin, I compared a person's ping in status with the ping reported by GetClientLatency and it was never severely inconsistant.
    __________________
    msleeper is offline
    msleeper
    Veteran Member
    Join Date: May 2008
    Location: Atlanta, Jawjuh
    Old 02-27-2009 , 16:48   Re: Very Basic High Ping Kicker
    Reply With Quote #7

    Updated the plugin to 1.1, the debug command now gives the current ping as reported by the plugin and the margin of error has been lowered further.
    __________________
    msleeper is offline
    KhyrOO
    Senior Member
    Join Date: May 2008
    Location: Budapest, Hungary
    Old 03-01-2009 , 02:04   Re: Very Basic High Ping Kicker
    Reply With Quote #8

    Thanks for this plugin! Like PStar said N1!
    __________________


    The ForCe will be WiTH U ALwaYs!
    KhyrOO is offline
    Send a message via MSN to KhyrOO
    msleeper
    Veteran Member
    Join Date: May 2008
    Location: Atlanta, Jawjuh
    Old 03-01-2009 , 03:47   Re: Very Basic High Ping Kicker
    Reply With Quote #9

    If anyone is using this with any success in games that are not listed above, let me know and I will add them. As I said in theory it should work in any Source game but I of course haven't been able to test it in everything.
    __________________
    msleeper is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 03-01-2009 , 07:09   Re: Very Basic High Ping Kicker
    Reply With Quote #10

    It loads on CSS but i didn' t see it working.
    I'll post back later if i see it working.
    PStar 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 15:27.


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