Raised This Month: $32 Target: $400
 8% 

TK Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Author
StevoTVR
Senior Member
Join Date: Oct 2008
Plugin ID:
623
Plugin Version:
1.11
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    11 
    Plugin Description:
    Manages team killers/wounders based on a points system
    Old 10-31-2008 , 15:13   TK Manager
    Reply With Quote #1

    TK Manager

    This is a basic automated team kill/wound manager. It does not use any forgive menus or input from players, it just uses a point system to detect intentional team killers. Players can gain points for team kills and team wounds, and lose points for enemy kills. When the player reaches the limit, it either kicks or bans the player depending on configuration.

    The plugin also stores use data in a sqlite database so players can't just reconnect to reset their points and avoid getting banned. It can also optionally store this info across map changes.

    Based on a default installation:
    4 consecutive TKs = kick
    1 TK = +1 pt
    3 TW = +1 pt
    2 kills = -1 pt
    12 pt = ban

    Installation
    1. Copy tkmanager.smx to sourcemod/plugins
    2. Copy tkmanager.phrases.txt to sourcemod/translations

    Console Variables

    Code:
    // Amount of time to ban if using sm_tk_punishtype 0 (0 = perm)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    sm_tk_bantime "0"
    
    // The named database config to use for storing TK points
    // -
    // Default: "storage-local"
    sm_tk_db "storage-local"
    
    // Mode of displaying Team Kills (0 = None, 1 = Show Admins, 2 = Show All)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "2.000000"
    sm_tk_displaymode "0"
    
    // Sets whether admins are immune to the TK manager
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_tk_immunity "1"
    
    // Number of TK points before kick/ban
    // -
    // Default: "12"
    // Minimum: "0.000000"
    sm_tk_maxpoints "12"
    
    // Number of consecutive team kills before kick/ban (0 to disable)
    // -
    // Default: "4"
    // Minimum: "0.000000"
    sm_tk_maxtk "4"
    
    // Amount of time to ban if using sm_tk_maxtk_punishtype 0 (0 = perm)
    // -
    // Default: "30"
    // Minimum: "0.000000"
    sm_tk_maxtk_bantime "30"
    
    // Action to take after maximum consecutive team kills (0 = ban, 1 = kick)
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_tk_maxtk_punishtype "1"
    
    // Number of real kills to subtract 1 TK point (0 to disable)
    // -
    // Default: "2"
    // Minimum: "0.000000"
    sm_tk_numkills "2"
    
    // Number of team wounds to add 1 TK point (0 to disable team wound detection)
    // -
    // Default: "3"
    // Minimum: "0.000000"
    sm_tk_numtw "3"
    
    // Save TK points across map change
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_tk_persist "0"
    
    // Action to take when sm_tk_maxpoints is reached (0 = ban, 1 = kick)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_tk_punishtype "0"
    Known Issues
    • Team wound detection does not work in Insurgency
    Changelog
    • 1.0 - 10/31/2008
      • Initial release
    • 1.1 - 11/03/2008
      • Changed database connection to use the standard named configuration method
      • Fixed version cvar being added to tk_manager.cfg
    • 1.2 - 11/28/2008
      • Added sm_tk_displaymode
    • 1.3 - 08/30/2009
      • Added sm_tk_maxtk_punishtype and sm_tk_maxtk_bantime
      • Added sm_tk_db to set which database configuration to use
      • Changed immunity to be based on any admin access
    • 1.4 - 08/31/2009
      • Added check to avoid duplicate bans
      • Changed some ConVar descriptions for clarity
    • 1.5 - 09/22/2009
      • Fixed late database connection
    • 1.6 - 06/02/2010
      • Converted to threaded queries
    • 1.7 - 06/03/2010
      • Fixed error on database connection
    • 1.8 - 03/22/2011
      • Added translation support
    • 1.9 - 11/18/2013
      • Added detection of NPC kills in NMRiH
      • Added MySQL support
    • 1.9.1 - 11/25/2013
      • Fixed hooking npc_killed on the wrong games
    • 1.10 - 11/26/2013
      • Fixed race condition with database connection
      • Fixed consecutive TK count not being reset when sm_tk_numkills = 0
      • Optimized event binding
    • 1.11 - 11/23/2016
      • Fixed error when disabling team wound detection when the server is hibernating
    Attached Files
    File Type: sp Get Plugin or Get Source (tkmanager.sp - 1510 views - 11.7 KB)
    File Type: txt tkmanager.phrases.txt (390 Bytes, 1596 views)

    Last edited by StevoTVR; 11-24-2016 at 13:18.
    StevoTVR is offline
    dirtyjob
    Senior Member
    Join Date: Jul 2007
    Location: Boston,MA
    Old 11-02-2008 , 20:02   Re: TK Manager
    Reply With Quote #2

    LOOKS GREAT!!


    i do have 1 question, is it supposed to display in game how many points one has? if so we are not seeing any such reports.
    __________________


    Last edited by dirtyjob; 11-03-2008 at 02:54. Reason: question added
    dirtyjob is offline
    Send a message via AIM to dirtyjob
    StevoTVR
    Senior Member
    Join Date: Oct 2008
    Old 11-03-2008 , 18:45   Re: TK Manager
    Reply With Quote #3

    Quote:
    Originally Posted by dirtyjob View Post
    i do have 1 question, is it supposed to display in game how many points one has? if so we are not seeing any such reports.
    It only shows a message in the chat area when you TK someone.
    StevoTVR is offline
    dirtyjob
    Senior Member
    Join Date: Jul 2007
    Location: Boston,MA
    Old 11-05-2008 , 00:53   Re: TK Manager
    Reply With Quote #4

    understood, ya been looking for that, test it out tonight, just cant recall ever seeing anything yet.dodsource btw, ill post back.


    **update, we tested and tked and no one sees any message anywhere..... i did alter the .cfg, ill try using the default and restart the server and see what happens.


    *** still we see nothing, did you test it on dods, really was hoping to use this great idea of a plugin.
    __________________


    Last edited by dirtyjob; 11-06-2008 at 01:32.
    dirtyjob is offline
    Send a message via AIM to dirtyjob
    dirtyjob
    Senior Member
    Join Date: Jul 2007
    Location: Boston,MA
    Old 11-06-2008 , 20:04   Re: TK Manager
    Reply With Quote #5

    not to double post but can anyone confirm this is working on their dod:s server?
    __________________

    dirtyjob is offline
    Send a message via AIM to dirtyjob
    StevoTVR
    Senior Member
    Join Date: Oct 2008
    Old 11-06-2008 , 20:09   Re: TK Manager
    Reply With Quote #6

    Hmm it worked on DoD:S when I tried it. I'll check it again.

    [edit] Yes it works for me

    Did you check that the plugin loaded properly?

    Last edited by StevoTVR; 11-06-2008 at 20:15.
    StevoTVR is offline
    dirtyjob
    Senior Member
    Join Date: Jul 2007
    Location: Boston,MA
    Old 11-07-2008 , 00:54   Re: TK Manager
    Reply With Quote #7

    seems to be loaded fine:

    Code:
    19 "TK Manager" (1.0) by Stevo.TVR
    running sm version SMod v1.0.4-svn could this be an issue?
    __________________

    dirtyjob is offline
    Send a message via AIM to dirtyjob
    StevoTVR
    Senior Member
    Join Date: Oct 2008
    Old 11-07-2008 , 18:52   Re: TK Manager
    Reply With Quote #8

    If the person has Kick or Root access when sm_tk_immunity is on, you won't see any message. Make sure this is not the case.

    You also might want to upgrade to version 1.1.
    StevoTVR is offline
    imported_sparky
    Member
    Join Date: Dec 2004
    Old 11-09-2008 , 16:27   Re: TK Manager
    Reply With Quote #9

    Any chance this will add the bans to sourcebans?
    __________________
    Longisland Game Servers
    www.ligs.us
    imported_sparky is offline
    StevoTVR
    Senior Member
    Join Date: Oct 2008
    Old 11-09-2008 , 18:52   Re: TK Manager
    Reply With Quote #10

    Quote:
    Originally Posted by imported_sparky View Post
    Any chance this will add the bans to sourcebans?
    Yes, it works fine with SourceBans.
    StevoTVR is offline
    Reply



    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 10:52.


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