Raised This Month: $ Target: $400
 0% 

Basic AFK Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Plugin ID:
473
Plugin Version:
2.8
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    26 
    Plugin Description:
    Old 07-22-2008 , 10:19   Re: AFK Manager
    Reply With Quote #1

    Plugin updated. See the OP for changes.
    Liam is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 07-22-2008 , 15:28   Re: AFK Manager
    Reply With Quote #2

    Way to support campers Liam! lol j/k...
    __________________

    DontWannaName is offline
    edward.81
    Junior Member
    Join Date: Apr 2008
    Old 07-22-2008 , 15:40   Re: AFK Manager
    Reply With Quote #3

    Thx for this plugin.
    1.1 hare working very well in my server. now i try this new version.
    But i have made a little change in the code for logging plugin action.

    Code:
    HandleAFKClient(client)
    {
        new Float:f_SpecTime = GetConVarFloat(g_Cvar_TimeToMove) / 10.0;
        new Float:f_KickTime = GetConVarFloat(g_Cvar_TimeToKick) / 10.0;
    
        if(GetConVarInt(g_Cvar_MoveSpec) == 1 
            && g_TimeAFK[client] < f_KickTime 
            && g_TimeAFK[client] > f_SpecTime)
        {
            new f_Team = GetClientTeam(client);
    
            if(f_Team > 1){
                ChangeClientTeam(client, 1); // 1 == spec on TF2 and CSS
                LogAction(client, -1, "%L moved to spectator. (%i Players)", client, GetClientCount());
                return;
            }
        }
    
        if(((GetConVarInt(g_Cvar_MoveSpec) == 0
            && g_TimeAFK[client] >= f_SpecTime)
            || g_TimeAFK[client] >= f_KickTime)
            && !IsAdmin(client))
        {
            LogAction(client, -1, "%L kick for AFK. (%i Players)", client, GetClientCount());
            KickClient(client, "You were AFK for too long.");
        }
    }
    edward.81 is offline
    Liam
    SourceMod Developer
    Join Date: Jan 2008
    Location: Atlanta, GA
    Old 07-22-2008 , 17:17   Re: AFK Manager
    Reply With Quote #4

    Okay? Thanks for telling me.
    Liam is offline
    Quimbo
    Member
    Join Date: May 2008
    Old 07-23-2008 , 08:07   Re: Basic AFK Manager
    Reply With Quote #5

    In the AFK manager plugin I wrote for my server I check players angles instead of position.

    It works perfect even for bumps.
    Quimbo is offline
    Liam
    SourceMod Developer
    Join Date: Jan 2008
    Location: Atlanta, GA
    Old 07-23-2008 , 08:31   Re: Basic AFK Manager
    Reply With Quote #6

    I changed it to check where they're looking.

    on sm_minplayers, the answer is! *checks* no - when someone requested I write this, they didn't want it to do anything if minplayers wasn't met.

    However, if you want it to, post a feature request.
    Liam is offline
    Jokerz99
    Senior Member
    Join Date: Apr 2008
    Old 07-23-2008 , 09:23   Re: Basic AFK Manager
    Reply With Quote #7

    if they want it to work at all time all they have to do it set the min player to 1.
    __________________
    Jokerz99 is offline
    Dominator
    Senior Member
    Join Date: Mar 2008
    Old 07-23-2008 , 17:15   Re: Basic AFK Manager
    Reply With Quote #8

    Plugin works pretty good, but it seems to still kick players that are still playing. Also is there a setting to have it kick an afker, just put him into spectate like the other cvar?

    Also when a player gets kicked he can't rejoin...
    Dominator is offline
    Mosalar
    Senior Member
    Join Date: Jul 2004
    Location: Tampa Fl
    Old 07-25-2008 , 10:03   Re: Basic AFK Manager
    Reply With Quote #9

    I'm a bit confused by the sm_minplayers setting. I want it to always move afk's to spec, but only kick the afk's when the server has x amount of players. Is this possible now? Or would it be a feature request?
    Mosalar is offline
    Liam
    SourceMod Developer
    Join Date: Jan 2008
    Location: Atlanta, GA
    Old 07-25-2008 , 10:19   Re: Basic AFK Manager
    Reply With Quote #10

    Plugin updated. See the OP for details.
    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 07:13.


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