Raised This Month: $51 Target: $400
 12% 

Basic AFK Manager


Post New Thread Reply   
 
Thread Tools Display Modes
fLaMePrO
New Member
Join Date: Oct 2008
Old 10-11-2008 , 22:01   Re: Basic AFK Manager
Reply With Quote #201

Yes I realise that, but isn't it just the same as the default one? The loophole of the default one is if someone MANUALLY joins Spectator, they can go AFK and sit there as long as they like without being kicked.

So, will this kick someone from Spectator after say, 5 minutes, regardless of why they are spectating? Probably not ideal, because someone could actually be genuinely spectating and then be kicked
fLaMePrO is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 10-11-2008 , 23:15   Re: Basic AFK Manager
Reply With Quote #202

You can setup exemptions with this plugin. Try reading the original post.
__________________
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
Rothgar
Veteran Member
Join Date: Nov 2007
Old 10-12-2008 , 03:19   Re: Basic AFK Manager
Reply With Quote #203

Hi Liam,

Can you please add support for Synergy, they don't have Teams it seems because f_Team returns 0?

Also after removing the team check players still got kicked while they were on turrets etc looking around and shooting so maybe the vector checking stuff isn't working properly?

Also can we maybe add a feature where it will pre-warn players before kicking them like maybe a message you will be kicked in 30 seconds etc then 25, 20 so people are aware they will be removed?

Thanks!

Last edited by Rothgar; 10-12-2008 at 03:52.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Rothgar
Veteran Member
Join Date: Nov 2007
Old 10-12-2008 , 04:08   Re: Basic AFK Manager
Reply With Quote #204

I can see the debug printing in console for eye checks and eye1 and 2 usually look to be different and eye0 tend to be fairly static.

The eye check block might need to be changed instead of an for loop to just check against 0 == 0 1 == 1 and 2 == 2 at the same time otherwise if the eye2 returns true it returns true for all of them?
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Rothgar
Veteran Member
Join Date: Nov 2007
Old 10-16-2008 , 09:12   Re: Basic AFK Manager
Reply With Quote #205

I think "g_TimeAFK" variable is being calculated wrong as well as it looks to be incremented by 1 every time the CheckAFK function runs which is on a timer of 10 seconds?
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 10-16-2008 , 09:47   Re: Basic AFK Manager
Reply With Quote #206

Its not wrong. The math for that is further down.
__________________
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
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 10-17-2008 , 18:31   Re: Basic AFK Manager
Reply With Quote #207

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
1nsane
SourceMod Donor
Join Date: Sep 2005
Old 10-18-2008 , 17:12   Re: Basic AFK Manager
Reply With Quote #208

Hmm not working for me :S.
Quote:
// This file was auto-generated by SourceMod (v1.0.4)
// ConVars for plugin "afkmgr.smx"


// Admins immune to being kicked? [0 = FALSE, 1 = TRUE]
// -
// Default: "1"
sm_adminsimmune "1"

// 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: "6"
sm_minplayerskick "1"

// Minimum amount of connected clients needed to move AFK clients to spec.
// -
// Default: "4"
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: "120.0"
sm_timetokick "120"

// Time in seconds before moving an AFK player.
// -
// Default: "60.0"
sm_timetomove "60"
Waited 5+ minutes AFK and was neither kicked nor moved to spec.
1nsane is offline
Jamster
Veteran Member
Join Date: Jun 2008
Old 10-18-2008 , 17:35   Re: Basic AFK Manager
Reply With Quote #209

Are you an admin (I gather so)? Then sm_adminsimmune needs to be 0. :p
Jamster is offline
1nsane
SourceMod Donor
Join Date: Sep 2005
Old 10-18-2008 , 17:46   Re: Basic AFK Manager
Reply With Quote #210

Quote:
Originally Posted by Jamster View Post
Are you an admin (I gather so)? Then sm_adminsimmune needs to be 0. :p
No, I deleted the admin file while testing. And even if I was admin the plugin is supposed to move me to spectate if I am AFK (but not kick if its admin). Which it did not.
1nsane 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 19:07.


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