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

Basic AFK Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Kigen
BANNED
Join Date: Feb 2008
Old 07-20-2008 , 20:12   Re: AFK Manager
Reply With Quote #11

My bad. Meh. :p Same basic result tho. Its based on the players position in the game.
Kigen is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-20-2008 , 21:10   Re: AFK Manager
Reply With Quote #12

Is it? Snipers/engineers can be standing still on the same spot for 5 minutes, and if they're not moving their eyes it means they're AFK, if they are, they're just turtling
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 07-20-2008 , 21:15   Re: AFK Manager
Reply With Quote #13

well, maybe I'll modify it.
Liam is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 07-22-2008 , 10:19   Re: AFK Manager
Reply With Quote #14

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 #15

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 #16

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 #17

Okay? Thanks for telling me.
Liam is offline
dann
Senior Member
Join Date: Nov 2007
Old 07-23-2008 , 03:54   Re: Basic AFK Manager
Reply With Quote #18

if "sm_minplayers" isnt reached will it still move players to spectate?
dann is offline
edward.81
Junior Member
Join Date: Apr 2008
Old 07-23-2008 , 06:46   Re: Basic AFK Manager
Reply With Quote #19

No, working fine until now. But we have to test the new feature added in 1.2
edward.81 is offline
Quimbo
Member
Join Date: May 2008
Old 07-23-2008 , 08:07   Re: Basic AFK Manager
Reply With Quote #20

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
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 02:27.


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