Quote:
Originally Posted by Rothgar
I don't see how that works, can you post your full config file and have you ensured that the correct minimum players were in the server and also that you didn't have the immunity modes set wrong etc.
This should all be functioning from my brief look over the code.
If you could check and re-test would be good or if someone else can confirm their findings.
|
Code:
// This file was auto-generated by SourceMod (v1.2.4)
// ConVars for plugin "afk_manager.smx"
// Admin Flag for immunity? Leave Blank for any flag.
// -
// Default: ""
sm_afk_admins_flag ""
// Are Admins immune to to the AFK Manager? [0 = DISABLED, 1 = COMPLETE IMMUNITY, 2 = KICK IMMUNITY, 3 = MOVE IMMUNITY]
// -
// Default: "1"
sm_afk_admins_immune "2"
// Is the AFK manager enabled or disabled? [0 = FALSE, 1 = TRUE]
// -
// Default: "1"
sm_afk_enable "1"
// Should the AFK manager exclude checking dead players? [0 = FALSE, 1 = TRUE]
// -
// Default: "0"
sm_afk_exclude_dead "1"
// Minimum amount of connected clients needed to kick AFK clients.
// -
// Default: "6"
sm_afk_kick_min_players "6"
// Should the AFK manager kick clients? [0 = DISABLED, 1 = KICK ALL, 2 = ALL EXCEPT SPECTATORS, 3 = SPECTATORS ONLY]
// -
// Default: "1"
sm_afk_kick_players "3"
// Time in seconds (total) client must be AFK before being kicked.
// -
// Default: "120.0"
sm_afk_kick_time "120.0"
// Time in seconds remaining, player should be warned before being kicked for AFK. [DEFAULT: 30.0 seconds]
// -
// Default: "30.0"
sm_afk_kick_warn_time "30.0"
// Threshold for amount of movement required to mark a player as AFK. [0 = NONE, DEFAULT: 30.0]
// -
// Default: "30.0"
sm_afk_location_threshold "30.0"
// Minimum amount of connected clients needed to move clients to spectator.
// -
// Default: "4"
sm_afk_move_min_players "4"
// Move AFK clients to spec before kicking them? [0 = FALSE, 1 = TRUE]
// -
// Default: "0"
sm_afk_move_spec "1"
// Time in seconds (total) client must be AFK before being moved to spectator.
// -
// Default: "60.0"
sm_afk_move_time "60.0"
// Time in seconds remaining, player should be warned before being moved for AFK. [DEFAULT: 30.0 seconds]
// -
// Default: "30.0"
sm_afk_move_warn_time "30.0"
// Time in seconds, player should have moved from spawn before being flagged AFK. [0 = DISABLED, DEFAULT: 20.0 seconds]
// -
// Default: "20.0"
sm_afk_spawn_time "20.0"
It moves me to spec but it doesn't kick me. Immunity is not the issue as I have none set for myself. I also made sure I had the minimum amount of players in the server when testing.