Raised This Month: $32 Target: $400
 8% 

[L4D(2)] AFK Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Matthias Vance
Senior Member
Join Date: Jan 2009
Plugin ID:
1392
Plugin Version:
1.2
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Places AFK people in spec, and kicks spectators.
    Unapprover:
    Reason for Unapproving:
    Author's request.
    Old 01-09-2010 , 14:31   [L4D(2)] AFK Manager
    Reply With Quote #1

    Plugin features
    • Put AFK people in spectator team.
    • Provide sm_idle (you can use this in chat as /idle or !idle) so players can manually switch to the spectator team.
    • Spectators will be kicked after a specified amount of time.
    • Administrators with a certain flag ("z"/Admin_Root by default) will not get kicked from spectator.
    • A configuration file will be autocreated. (/left4dead2/config/sourcemod/l4d_afkmanager.cfg)
    Instructions
    • Place the l4d_afkmanager.txt file in your gamedata directory.

    CVARs

    NB: All times are in seconds.
    • l4d_afkmanager_version
      • Version information
    • afk_immuneflag
      • Admins with this flag will not be kicked (default: "z")
    • afk_adinterval
      • Interval in which the plugin will advertise the 'idle' command. (default: "120", set to "0" to disable)
    • afk_spectime
      • Maximum time someone can be idle before (s)he is moved to the Spectator team. (default: "20")
    • afk_kicktime
      • Maximum time someone can be spectating before (s)he is kicked. (default: "40")
    • afk_messages
      • Message level. (default : "3", 0 = disable, 1 = spec, 2 = kick, 3 = spec + kick)
    Commands

    • sm_idle
      • Switch to spectator team.
    • sm_team
      • Join a team.
    Changelog

    • 2010-01-27
      • Fix for crashes on menu.
    • 2010-01-25 (v1.2)
      • [FIX] Fixed crashes.
    • 2010-01-11
      • [FIX] Correctly ignores bots now.
      • [ADD] Warning messages when players are moved to Spectator, or are kicked.
      • [ADD] CVAR : afk_messages
    • 2010-01-10 (v1.1)
      • [DEL] CVAR : afk_time
      • [ADD] CVAR : afk_spectime
      • [ADD] CVAR : afk_kicktime
      • [ADD] Warning message for players that are in the Spectator team.
      • [ADD] Added sm_team command.
    • 2010-01-10
      • [FIX] Fixed a bug where timers would not be stored.
    • 2010-01-09 (v1.0)
      • Initial release.
    Have fun!

    Kind regards,

    Matthias Vance
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_afkmanager.sp - 4324 views - 9.9 KB)
    File Type: txt l4d_afkmanager.txt (1.3 KB, 2482 views)

    Last edited by Matthias Vance; 02-12-2010 at 04:49.
    Matthias Vance is offline
    Blu3star
    Member
    Join Date: Jul 2009
    Old 01-09-2010 , 17:55   Re: [L4D(2)] AFK Manager
    Reply With Quote #2

    works as intended. I was needin' this bad.
    Blu3star is offline
    Matthias Vance
    Senior Member
    Join Date: Jan 2009
    Old 01-10-2010 , 07:55   Re: [L4D(2)] AFK Manager
    Reply With Quote #3

    Uploaded a new version that fixes not storing timer handles.
    Matthias Vance is offline
    For A Fistful Of Brain
    New Member
    Join Date: Jan 2010
    Old 01-10-2010 , 09:13   Re: [L4D(2)] AFK Manager
    Reply With Quote #4

    When Im in Spec-Mode how do I come back? I have set the Plugin so that you won't be kicked when in Specmode but unless you have set a higher value for vs_max_team_switches, you won't be coming back, right?
    For A Fistful Of Brain is offline
    Matthias Vance
    Senior Member
    Join Date: Jan 2009
    Old 01-10-2010 , 09:38   Re: [L4D(2)] AFK Manager
    Reply With Quote #5

    That is correct (if you already changed a team before). I am currently adding a !team command that let's you change teams regardless of that CVAR.
    Matthias Vance is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 01-10-2010 , 15:36   Re: [L4D(2)] AFK Manager
    Reply With Quote #6

    Could it be possible to add a chat message when someone is kicked/moved to spectate? So people know who's afk and who was kicked.
    Visual77 is offline
    ZOOZ
    Member
    Join Date: May 2008
    Location: Ukraine
    Old 01-10-2010 , 19:42   Re: [L4D(2)] AFK Manager
    Reply With Quote #7

    Its kicking bots!... It is not good)
    I am using 8 vs 8 server...

    Last edited by ZOOZ; 01-10-2010 at 19:44.
    ZOOZ is offline
    Matthias Vance
    Senior Member
    Join Date: Jan 2009
    Old 01-11-2010 , 03:22   Re: [L4D(2)] AFK Manager
    Reply With Quote #8

    Quote:
    Originally Posted by Visual77 View Post
    Could it be possible to add a chat message when someone is kicked/moved to spectate? So people know who's afk and who was kicked.
    Yup, I'll add that today!

    Quote:
    Originally Posted by ZOOZ View Post
    Its kicking bots!... It is not good)
    I am using 8 vs 8 server...
    Oops! I don't check for bots, my mistake! I'll also fix that today.
    On a sidenote: Bots shouldn't be AFK at all!

    [Edit]
    I uploaded a new version that fixes those two issues.

    Last edited by Matthias Vance; 01-11-2010 at 05:42.
    Matthias Vance is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 01-11-2010 , 08:39   Re: [L4D(2)] AFK Manager
    Reply With Quote #9

    Thanks. Now I'm only missing a count down message displayed too the player if he is standing still for x seconds. Like: You will be forced to spectate in x seconds" Could you add this too?
    Visual77 is offline
    SaintK
    Veteran Member
    Join Date: Mar 2004
    Old 01-11-2010 , 08:40   Re: [L4D(2)] AFK Manager
    Reply With Quote #10

    Quote:
    Originally Posted by Visual77 View Post
    Thanks. Now I'm only missing a count down message displayed too the player if he is standing still for x seconds. Like: You will be forced to spectate in x seconds" Could you add this too?
    This won't be included in the current version. Perhaps after the plugin has been finished and delivered as ordered.
    SaintK is offline
    Reply


    Thread Tools
    Display Modes

    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:28.


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