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

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


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 905 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
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 01-23-2019 , 22:56   Re: [Any]AutoKickAFK When ServerFull (1.1 23/01/2018)
    Reply With Quote #2

    Perfect, congratulations to the plugin!

    One suggestion, I could see that the plugin ignores players that have access to ADMFLAG_BAN, it does nothing with the players... Could make the plugin move them to specter, I believe would be perfect, and better still if I put a cvar to control this option.

    Last edited by paulo_crash; 01-23-2019 at 22:56.
    paulo_crash is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 02-17-2019 , 15:38   Re: [Any]AutoKickAFK When ServerFull (1.1 23/01/2018)
    Reply With Quote #3

    Quote:
    Originally Posted by paulo_crash View Post
    Perfect, congratulations to the plugin!

    One suggestion, I could see that the plugin ignores players that have access to ADMFLAG_BAN, it does nothing with the players... Could make the plugin move them to specter, I believe would be perfect, and better still if I put a cvar to control this option.
    Sure i think i could do that
    Ill post an update if i was able to do it.

    Update:
    I added what you requested plus 1 extra feature.
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D

    Last edited by Lux; 02-17-2019 at 17:53. Reason: Made changes useful changes as requested.
    Lux is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 02-17-2019 , 17:57   Re: [Any]AutoKickAFK When ServerFull (1.1 23/01/2018)
    Reply With Quote #4

    Quote:
    Originally Posted by Lux View Post
    Sure i think i could do that
    Ill post an update if i was able to do it.

    Update:
    I added what you requested plus 1 extra feature.
    Thx

    I'll be testing this new feature and return with the result, thanks again.
    paulo_crash 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:48.


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