AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [L4D(2)] AFK Manager (https://forums.alliedmods.net/showthread.php?t=115020)

Matthias Vance 01-09-2010 14:31

[L4D(2)] AFK Manager
 
2 Attachment(s)
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

Blu3star 01-09-2010 17:55

Re: [L4D(2)] AFK Manager
 
works as intended. I was needin' this bad.

Matthias Vance 01-10-2010 07:55

Re: [L4D(2)] AFK Manager
 
Uploaded a new version that fixes not storing timer handles.

For A Fistful Of Brain 01-10-2010 09:13

Re: [L4D(2)] AFK Manager
 
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?

Matthias Vance 01-10-2010 09:38

Re: [L4D(2)] AFK Manager
 
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.

Visual77 01-10-2010 15:36

Re: [L4D(2)] AFK Manager
 
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.

ZOOZ 01-10-2010 19:42

Re: [L4D(2)] AFK Manager
 
Its kicking bots!... It is not good)
I am using 8 vs 8 server...

Matthias Vance 01-11-2010 03:22

Re: [L4D(2)] AFK Manager
 
Quote:

Originally Posted by Visual77 (Post 1050702)
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 (Post 1050933)
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.

Visual77 01-11-2010 08:39

Re: [L4D(2)] AFK Manager
 
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?

SaintK 01-11-2010 08:40

Re: [L4D(2)] AFK Manager
 
Quote:

Originally Posted by Visual77 (Post 1051406)
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.


All times are GMT -4. The time now is 06:42.

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