View Single Post
Plugin Info:     Modification:          Category:          Approver:   Xanimos (85)
VEN
Veteran Member
Join Date: Jan 2005
Old 11-13-2006 , 06:54   Full Server Idler Kicker (+last AFK to Spec)
Reply With Quote #1

Code:
DESCRIPTION
The concept of this plugin is "don't clean the full server from idlers unless
new connection try". By idlers i mean HLTV/unassigned/spectator/AFK users.
I created this plugin because i don't like the goal of all other plugins that
deal with idelrs using the conditions which is strictly based on the idle time.

This plugin isn't using the idle time as primary condition. So how it work?
Let's say the new user is trying to connect to the full server. Normally he
would be kicked unless he have a slot reservation access, but this plugin
able to clean the slot for this user if it will find the idler on the server.

Firstly it will try to find and kick HLTV (this can be disabled). Secondly -
the most idle unassigned/spectator user. Though the plugin will never kick
a client with immunity access (this can be configured) or the user who is just
connected and still unassigned - it will "immune" him for a few seconds
(this can be configured). And lastly the plugin will try to find and kick
the most idle alive AFK player (min. idle time that required to mark a player
as AFK can be configured).

Also as a bonus feature the plugin able to detect when all alive players in
the same team are AFK. Usually it would be just a single AFK player who is the
only one alive player in a team. In this case to avoid waiting/seaching AFK
player(s) by other player(s) the plugin will move him/them to the spectators.
Later such AFK users can be kicked from Spectators following the steeps that
listed above.

Requirement for full server kicker are at least one free reserverved slot
(controlled by amx_reservation AMXX's CVAR).
Attached Files
File Type: sma Get Plugin or Get Source (full_server_idler_kicker.sma - 16422 views - 6.9 KB)

Last edited by VEN; 11-13-2006 at 07:16.
VEN is offline