Raised This Month: $ Target: $400
 0% 

Basic AFK Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Labyrinthine
Junior Member
Join Date: Jul 2008
Old 07-27-2008 , 22:16   Re: Basic AFK Manager
Reply With Quote #31

Switched over from an older AFK Manager plugin today.

My error log is being inundated by

Code:
L 07/27/2008 - 14:00:07: [SM] Native "GetConVarInt" reported: Invalid convar handle 0 (error 4)
L 07/27/2008 - 14:00:07: [SM] Debug mode is not enabled for "afkmgr.smx"
Just barely checked/noticed it, so I'll post the debug later if you need it.

I'm running CSS. Let me know if you need more info.
Labyrinthine is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 07-27-2008 , 23:52   Re: Basic AFK Manager
Reply With Quote #32

Please post the debug output.
Liam is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 07-28-2008 , 10:11   Re: Basic AFK Manager
Reply With Quote #33

Plugin updated. See the OP for details.
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
Labyrinthine
Junior Member
Join Date: Jul 2008
Old 07-28-2008 , 10:38   Re: Basic AFK Manager
Reply With Quote #34

Code:
L 07/28/2008 - 00:59:54: [SM] Native "GetConVarInt" reported: Invalid convar handle 0 (error 4)
L 07/28/2008 - 00:59:54: [SM] Displaying call stack trace for plugin "afkmgr.smx":
L 07/28/2008 - 00:59:54: [SM]   [0]  Line 346, C:\Documents and Settings\Labyrinthine\Desktop\sourcemod-1.0.3\addons\sourcemod\scripting\include\float.inc::operator>=(_:,Float:)()
L 07/28/2008 - 00:59:54: [SM]   [1]  Line 162, afkmgr.sp::HandleAFKClient()
L 07/28/2008 - 00:59:54: [SM]   [2]  Line 124, afkmgr.sp::Timer_CheckPlayers()
There's the debug. I have no clue why it's making a nice reference to my desktop when it's from the gameserver. O.o

Thanks for the quick response.
Labyrinthine is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 07-28-2008 , 11:26   Re: Basic AFK Manager
Reply With Quote #35

Either way, the issue is fixed. I had a typo in the convar registration.
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
Labyrinthine
Junior Member
Join Date: Jul 2008
Old 07-28-2008 , 11:57   Re: Basic AFK Manager
Reply With Quote #36

Awesomesauce.

Thanks a bunch
Labyrinthine is offline
rocketteem
SourceMod Donor
Join Date: May 2007
Location: San Diego, Ca
Old 07-28-2008 , 22:34   Re: Basic AFK Manager
Reply With Quote #37

Question:

TF2's built in AFK kicker has an issue where if someone manually changes to spectator, it won't detect, and will never kick them.

Does this have the same issue? Will it kick those who manually joined Spectator? If not, that would be a good feature...

Also, I have auto team join on which requires the user to pick a class, but randomly joins them to a team. Meaning, if they are AFK when they join the server, they join a team, but stay dead with no class chosen, TF2 also does not pick this up. Will yours?

Thanks in advance
--Welder
rocketteem is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 07-28-2008 , 23:00   Re: Basic AFK Manager
Reply With Quote #38

It treats spectators differently than in-game clients.

If they are in spec, they get x time and then they get a boot.
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
dann
Senior Member
Join Date: Nov 2007
Old 07-29-2008 , 06:07   Re: Basic AFK Manager
Reply With Quote #39

this wasn't working at all when I had it installed. I had to switch back to my old one. I've posted my config below.

Code:
// This file was auto-generated by SourceMod (v1.0.3)
// ConVars for plugin "afkmgr.smx"
 
// Admins immune to being kicked? [0 = FALSE, 1 = TRUE]
// -
// Default: "0"
sm_adminsimmune "0"
// Is the AFK manager enabled or disabled? [0 = FALSE, 1 = TRUE]
// -
// Default: "1"
sm_afkenable "1"
// Minimum amount of connected clients needed to kick AFK clients.
// -
// Default: "23"
sm_minplayerskick "23"
// Minimum amount of connected clients needed to move AFK clients to spec.
// -
// Default: "1"
sm_minplayersmove "1"
// Move AFK clients to spec before kicking them? [0 = FALSE, 1 = TRUE]
// -
// Default: "1"
sm_movespec "1"
// Time in seconds before kicking an AFK player.
// -
// Default: "300.0"
sm_timetokick "300.0"
// Time in seconds before moving an AFK player.
// -
// Default: "90.0"
sm_timetomove "90.0"
dann is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 07-29-2008 , 13:18   Re: Basic AFK Manager
Reply With Quote #40

Is it moving people to spec?
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
Reply



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 05:38.


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