Raised This Month: $ Target: $400
 0% 

[Any]AutoKickAFK When ServerFull (1.2.0 17/02/2019)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Plugin ID:
5968
Plugin Version:
1.2.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Auto kick solution while server is full or just standard afk auto kicker
    Old 01-05-2018 , 02:25   [Any]AutoKickAFK When ServerFull (1.2.0 17/02/2019)
    Reply With Quote #1

    Hello,

    I could not really find a plugin that autokick afk player(s) while the server is full, so I made one .

    You can check here for commands
    https://wiki.alliedmods.net/Admin_Commands_(SourceMod)
    or you can use other plugins commands.

    PHP Code:
    // This is admin immunity command (if empty will use adminflag ADMFLAG_BAN "d") Note: can be used for any command not just admin commands
    // -
    // Default: "sm_ban"
    konfull_admin_access_cmd "sm_ban"

    // How should admins be treated, [0 = Do nothing 1 = Move to spec 2 = kick them]
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "2.000000"
    konfull_admin_manage_type "0"

    // (Seconds)afk time before they will get kicked
    // -
    // Default: "420"
    // Minimum: "1.000000"
    konfull_afk_time "420"

    // check spec team like players for movement [0 = consider spec as AFK! 1 = check as player]
    // -
    // Default: "0"
    konfull_check_spec_for_movement "0"

    // Should we only kick when server is full [1 = true 0 = false]
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    konfull_kick_on_full "1" 

    PHP Code:
    Admins with cmd access to "sm_ban" will be immune to autokicking by default 
    Tested in Left 4 dead but should work in other games

    Detection is based on Button changes and mouse movement.
    And checks for convar sv_visiblemaxplayers if it's -1 or not found will use GetMaxHumanPlayers() instead

    Github Repo
    Attached Files
    File Type: sp Get Plugin or Get Source (_AutoKickWhenFull.sp - 937 views - 6.2 KB)
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D

    Last edited by Lux; 05-08-2020 at 17:04. Reason: Plugin Update
    Lux is offline
     


    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 22:26.


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