11-30-2016, 05:18 PM
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
Description
-Plugin use last activity time to check the actual afk time.
-Plugin has a menu, through you can see all players with they'r afk time ; and a submenu for admins through you can manage afk(selected) players(Put them on spectators / Kick).
-Admins are marked in menu, also dead players with "(Dead)" tag.
-Autocheck system, for checking afk players, with spectators slots protection(If in spectators team are more than "X Defined" afk players, a random one will be kicked).
-Autocheck system for bomb ; if bomb carrier is afk the bomb is droped & transfered to a random alive T player.
-Autocheck for unassigned player.
-Full server spec kick ; If server is full and a player is connecting, the player with biggest afk time will be kicked.
-CPU less.
Cvars / Commands
afk_autocheck (Default:1) - Autocheck for afk players
afk_ac_fastmachine (Default:0) - If this cvar is set to 1, players will be checked every second (1.0)
afk_ac_time (Default:20) - The interval of time, for checking afk players
afk_ac_immunity (Default:1) - If this cvar is set to 1, admins are not checked
afk_ac_maxafktime (Default:80) - Time in seconds, how much a player can be afk
afk_ac_bombtime (Default:20) - Time after the afk player drop the bomb.
afk_ac_punish_type (Default:1) - 1 = Move to spec. / 2 = Kick
afk_menu (Default:1) - Enable / Disable Afk menu. (0 Off) (1 All players) (2 Admins Only)
afk_unassigned_check (Default:1) - If a player stays more than "x" sec at unassigned team, will be kicked
afk_unassigned_time (Default:15) - Unassigned max time
afk_fs_kick_spec (Default:1) - If server is full and a player is connecting, a player from spec, will be kicked.
say /afk ----------|Show AFK menu
say_team /afk ---|
Modules
Fakemeta
Cstrike
Notes
Code:
#define MIN_CHECK_TIME 10 - Minim interval of time for autocheck system
#define MAX_AFK_SPECTATORS 3 - If are more that this num of afk players on spectators team,player with biggest afk time will be kicked.
#define ADMIN_ACCES_FLAG ADMIN_MENU - Admin flag to access Afk Submenu.
#define ADMIN_IMMUNITY_FLAG ADMIN_KICK - Immunity flag
Download: http://node1.lamdaprocs.com/index.php/s/h0nxJeYbkCj9EHL
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
Description
-Plugin use last activity time to check the actual afk time.
-Plugin has a menu, through you can see all players with they'r afk time ; and a submenu for admins through you can manage afk(selected) players(Put them on spectators / Kick).
-Admins are marked in menu, also dead players with "(Dead)" tag.
-Autocheck system, for checking afk players, with spectators slots protection(If in spectators team are more than "X Defined" afk players, a random one will be kicked).
-Autocheck system for bomb ; if bomb carrier is afk the bomb is droped & transfered to a random alive T player.
-Autocheck for unassigned player.
-Full server spec kick ; If server is full and a player is connecting, the player with biggest afk time will be kicked.
-CPU less.
Cvars / Commands
afk_autocheck (Default:1) - Autocheck for afk players
afk_ac_fastmachine (Default:0) - If this cvar is set to 1, players will be checked every second (1.0)
afk_ac_time (Default:20) - The interval of time, for checking afk players
afk_ac_immunity (Default:1) - If this cvar is set to 1, admins are not checked
afk_ac_maxafktime (Default:80) - Time in seconds, how much a player can be afk
afk_ac_bombtime (Default:20) - Time after the afk player drop the bomb.
afk_ac_punish_type (Default:1) - 1 = Move to spec. / 2 = Kick
afk_menu (Default:1) - Enable / Disable Afk menu. (0 Off) (1 All players) (2 Admins Only)
afk_unassigned_check (Default:1) - If a player stays more than "x" sec at unassigned team, will be kicked
afk_unassigned_time (Default:15) - Unassigned max time
afk_fs_kick_spec (Default:1) - If server is full and a player is connecting, a player from spec, will be kicked.
say /afk ----------|Show AFK menu
say_team /afk ---|
Modules
Fakemeta
Cstrike
Notes
Code:
#define MIN_CHECK_TIME 10 - Minim interval of time for autocheck system
#define MAX_AFK_SPECTATORS 3 - If are more that this num of afk players on spectators team,player with biggest afk time will be kicked.
#define ADMIN_ACCES_FLAG ADMIN_MENU - Admin flag to access Afk Submenu.
#define ADMIN_IMMUNITY_FLAG ADMIN_KICK - Immunity flag
Download: http://node1.lamdaprocs.com/index.php/s/h0nxJeYbkCj9EHL