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