Raised This Month: $ Target: $400
 0% 

Hobo AFK Management ( FINAL )


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   BAILOPAN (72)
hoboman
Senior Member
Join Date: Jul 2007
Old 04-07-2008 , 18:50   Hobo AFK Management ( FINAL )
Reply With Quote #1

Hobo AFK Management

Description:
This started out as a modification of Cheesy's "Generic AFK Kicker", but I ended up completely rewriting it. In a nutshell the purpose of this plugin is to manage the AFKs on a server according to cvars.
Requirements:Cvars:
hobo_afk_frequency ( default 1 ) - the frequency with which this plugin will check each player's AFK status
hobo_afk_time x ( default 60 ) - the maximum allowed AFK time for an alive player
hobo_afk_immunity x ( 0/1 - default is 1 ) - if set to 1 then the admins with the immunity flag ( admin immunity, flag "a" is the default ) cannot be kicked by this plugin
hobo_afk_kick x ( 0/1 - default is 0 ) - if set to 0 then after a player is AFK for more than "hobo_afk_time"he will be put to spectator, otherwise he will be kicked
hobo_afk_spectator_kick x ( 1-32 - default is 16 ) - after this many players have joined the server, when a new player connects a spectator will be kicked. Also if there are more than this many players, an AFKer will get kicked regardless of what "hobo_afk_kick" is set to.
hobo_afk_unassigned_time x ( default is 60 ) - after this many seconds have passed if the newly connected player is still unassigned he will be kicked
hobo_afk_warning_time x ( default is 10 ) - start warning a player this many seconds before he is kicked or put to spectator about his AFK status
Plugin Notes:
- the admin AFK immunity by default is set to flag "a", but can be changed in the .sma by the AFK_IMMUNITY define
- by default all the players are checked for AFK every 1 second, this can be modified in the .sma by the CHECK_FREQUENCY define ( if this is set bellow 1, the player may be counted as not AFK on player spawn )

Changelog:
  • 1.1
    • rewritten the spawn method using the hamsandwich spawn method, which is the best and most efficient method according to VEN
    • made a lot of minor modifications
    • removed the cstrike module from the plugin, big thanks to x-olent
    • fixed the bug where the unassigned players would not get kicked when connected to a server
  • 1.2
    • added hobo_afk_frequency cvarand renamedthe hobo_max_afk_unassigned_time cvar to hobo_afk_unassigned_time
    • add support for servers with freeze time, so the player's AFK time will not be counted during freeze time
    • made it so the player has to move over 15 units ( can be changed by the AFK_MOVE_DIST define in the .sma ) to be viewed by the plugin as not AFK
    • added a check for when a player joins a team and then idles without choosing a model. By default all players that do this will be kicked after one round
    • fixed all the known bugs from the last version and optimized the code a bit
  • 1.2a
    • fixed a small bug where the admins with immunity could still be kicked when more than hobo_afk_spectator_kick player connect
IF YOU CANNOT COMPILE LOCALLY THEN DOWNLOAD THE .AMXX FILE AND DO NOT BUG ME ABOUT IT.
Attached Files
File Type: sma Get Plugin or Get Source (hobo_afk_manager.sma - 15604 views - 9.6 KB)
__________________

Last edited by bmann_420; 03-15-2009 at 14:49. Reason: Removed .amxx file
hoboman is offline
 



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 11:09.


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