View Single Post
crazydog
SourceMod Donor
Join Date: Jan 2006
Old 11-01-2008 , 06:31   Re: AFK Manager
Reply With Quote #2

Quote:
Originally Posted by web compiler
/home/groups/sourcemod/compiler/include/sdktools_stocks.inc(57) : error 001: expected token: ";", but found "for"
/home/groups/sourcemod/upload_tmp/textRyuSvp.sp(77) : error 017: undefined symbol "MaxClients"
/home/groups/sourcemod/upload_tmp/textRyuSvp.sp(89) : error 017: undefined symbol "MaxClients"
Adding the ; in sdktools_stocks.inc fixes that error, but the other two still show up.

Now, I'm no sourcemod developer, but adding
new MaxClients = GetMaxClients();
after the lines
// Late Load?
and
public OnMapStart()
{
caused it to compile correctly....I'll test it...

(note: Web Compile will not work because of the missing semicolon)

Also, it's not working in synergy. My config is this:
Code:
// 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 "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: "6"
sm_minplayerskick "0"

// Minimum amount of connected clients needed to move AFK clients to spec.
// -
// Default: "4"
sm_minplayersmove "0"

// Move AFK clients to spec before kicking them? [0 = FALSE, 1 = TRUE]
// -
// Default: "1"
sm_movespec "0"

// Time in seconds before kicking an AFK player.
// -
// Default: "120.0"
sm_timetokick "5.0"

// Time in seconds before moving an AFK player.
// -
// Default: "60.0"
sm_timetomove "5.0"
and it's not kicking me.

Last edited by DJ Tsunami; 03-12-2010 at 03:33.
crazydog is offline