Raised This Month: $32 Target: $400
 8% 

[ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)


Post New Thread Reply   
 
Thread Tools Display Modes
abyssis
Junior Member
Join Date: Aug 2013
Old 06-15-2015 , 06:05   Re: AFK Manager (Version 3.5.3 / Updated October 27th 2014)
Reply With Quote #1601

Would it bepossible to make a feature that would allow people to extend their afk time?

Original idea was to have a very basic command (extend / extendafk) that would add up a certain amount of time (say 5 minutes) to the already specified afk time.

Sometimes you just get a call or someone in your family needs a help with something and I personally think having a feature like this might come handy.

Last edited by abyssis; 06-15-2015 at 06:07.
abyssis is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 06-17-2015 , 14:12   Re: AFK Manager (Version 3.5.3 / Updated October 27th 2014)
Reply With Quote #1602

...also here couldn't we just edit each PrintToChat phrase to use client instead LANG_SERVER?

Last edited by GrO; 06-17-2015 at 14:13.
GrO is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 06-21-2015 , 08:39   Re: AFK Manager (Version 3.5.3 / Updated October 27th 2014)
Reply With Quote #1603

Quote:
Originally Posted by GrO View Post
...also here couldn't we just edit each PrintToChat phrase to use client instead LANG_SERVER?
What?

If you are referring to the force language bug I've fixed it, just waiting for testers to come back and confirm the new version is working. They have been busy and so results haven't come back yet.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 06-21-2015 , 13:29   Re: AFK Manager (Version 3.5.3 / Updated October 27th 2014)
Reply With Quote #1604

Man, i'm sorry to tell you but your plugin isn't working as it should on tf2 arena mode. I'm running a dr redux server and is not kicking clients at all, only move them to spectator. But spectating mode is different on arena or dr redux(idk exactly which one of them):when moved to spectate, players are actually not on spectator team, they are dead and can be respawned next round. This is my cfg:

Code:
// Admin Flag for immunity? Leave Blank for any flag.
// -
// Default: ""
sm_afk_admins_flag "a"

// Should admins be immune to the AFK Manager? [0 = DISABLED, 1 = COMPLETE IMMUNITY, 2 = KICK IMMUNITY, 3 = MOVE IMMUNITY]
// -
// Default: "1"
sm_afk_admins_immune "2"

// Is the AFK Manager automatic plugin update enabled or disabled? (Requires SourceMod Autoupdate plugin) [0 = FALSE, 1 = TRUE]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_autoupdate "0"

// Is the AFK Manager enabled or disabled? [0 = FALSE, 1 = TRUE, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_enable "1"

// Should the AFK Manager exclude counting bots in player counts? [0 = FALSE, 1 = TRUE, DEFAULT: 0]
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_exclude_bots "1"

// Should the AFK Manager exclude checking dead players? [0 = FALSE, 1 = TRUE, DEFAULT: 0]
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_exclude_dead "1"

// Should the AFK Manager force all message language to the server default? [0 = DISABLED, 1 = ENABLED, DEFAULT: 0]
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_force_language "0"

// Minimum number of connected clients required for AFK kick to be enabled. [DEFAULT: 6]
// -
// Default: "6"
sm_afk_kick_min_players "10"

// Should the AFK Manager kick AFK clients? [0 = DISABLED, 1 = KICK ALL, 2 = ALL EXCEPT SPECTATORS, 3 = SPECTATORS ONLY]
// -
// Default: "1"
sm_afk_kick_players "1"

// Time in seconds (total) client must be AFK before being kicked. [0 = DISABLED, DEFAULT: 120.0 seconds]
// -
// Default: "120.0"
sm_afk_kick_time "120.0"

// Time in seconds remaining, player should be warned before being kicked for AFK. [DEFAULT: 30.0 seconds]
// -
// Default: "30.0"
sm_afk_kick_warn_time "15.0"

// Threshold for amount of movement required to mark a player as AFK. [0 = DISABLED, DEFAULT: 30.0]
// -
// Default: "30.0"
sm_afk_location_threshold "30.0"

// How many days should we keep AFK Manager log files. [0 = INFINITE, DEFAULT: 0]
// -
// Default: "0"
sm_afk_log_days "0"

// Should the AFK Manager log client kicks. [0 = FALSE, 1 = TRUE, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_log_kicks "1"

// Should the AFK Manager log client moves. [0 = FALSE, 1 = TRUE, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_log_moves "1"

// Should the AFK Manager log plugin warning messages. [0 = FALSE, 1 = TRUE, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_log_warnings "1"

// Minimum number of connected clients required for AFK move to be enabled. [DEFAULT: 4]
// -
// Default: "4"
sm_afk_move_min_players "3"

// Should the AFK Manager move AFK clients to spectator team? [0 = FALSE, 1 = TRUE, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_move_spec "1"

// Time in seconds (total) client must be AFK before being moved to spectator. [0 = DISABLED, DEFAULT: 60.0 seconds]
// -
// Default: "60.0"
sm_afk_move_time "80.0"

// Time in seconds remaining, player should be warned before being moved for AFK. [DEFAULT: 30.0 seconds]
// -
// Default: "30.0"
sm_afk_move_warn_time "15.0"

// Should the AFK Manager warn team 0 (Usually unassigned) players? (Disabling may not work for some games) [0 = FALSE, 1 = TRUE, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_move_warn_unassigned "1"

// Should the AFK Manager use color for the prefix tag? [0 = DISABLED, 1 = ENABLED, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_prefix_color "1"

// Should the AFK Manager use a short prefix? [0 = FALSE, 1 = TRUE, DEFAULT: 0]
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_prefix_short "0"

// Time in seconds (total) that player should have moved from their spawn position. [0 = DISABLED, DEFAULT: 20.0 seconds]
// -
// Default: "20.0"
sm_afk_spawn_time "60.0"

// Time in seconds remaining, player should be warned for being AFK in spawn. [DEFAULT: 15.0 seconds]
// -
// Default: "15.0"
sm_afk_spawn_warn_time "10.0"

// Should the AFK Manager check spectator target changes? [0 = FALSE, 1 = TRUE, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_spec_check_target "1"
Also did i hide good this all chat messages with moving/kicking:
Modified this for move spec:
Code:
line 2790:Action:MoveAFKClient(client, bool:Advertise=true)
line 2799: if (Advertise == false)
And deleted this for kick:
Code:
line 2889	if (GetConVarBool(hCvarLanguage))
		AFK_PrintToChatAll("%t", "Kick_Announce", LANG_SERVER, f_Name);
	else
		AFK_PrintToChatAll("%t", "Kick_Announce", f_Name);
Is that good ;) ? Thanks in advance.
misterG is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 06-22-2015 , 03:27   Re: AFK Manager (Version 3.5.3 / Updated October 27th 2014)
Reply With Quote #1605

I have no idea what you are talking about regarding the last part but yes I know the Arena mode maps require some additional code to make them function correctly.

If you want me to look at fixing Arena mode before the next release then PM me and I will try to work out a time to test the Arena functionality.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 06-22-2015 , 13:03   Re: AFK Manager (Version 3.5.3 / Updated October 27th 2014)
Reply With Quote #1606

Quote:
Originally Posted by Rothgar View Post
What?

If you are referring to the force language bug I've fixed it, just waiting for testers to come back and confirm the new version is working. They have been busy and so results haven't come back yet.
Yes, I'm referring to this case and I'm still wondering, if all issued plugins need to be fixed or there may be one fix made to the SM itself... anyway, good to hear you've fixed it in your plugin.

Last edited by GrO; 06-22-2015 at 13:05.
GrO is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 06-30-2015 , 11:41   Re: AFK Manager (Version 3.5.3 / Updated October 27th 2014)
Reply With Quote #1607

Quote:
105 AM - C:/hdata: whew I finally did some testing of afk manager
105 AM - C:/hdata: in arena with tf_arena_use_queue 1 set
105 AM - C:/hdata: the method you want to use to kick players
105 AM - C:/hdata:
PHP Code:
SetEntProp(clientProp_Send"m_nNextThinkTick", -1);
SetEntProp(clientProp_Send"m_iDesiredPlayerClass"0);
SetEntProp(clientProp_Send"m_bArenaSpectator"1);
ChangeClientTeam(clientTEAM_SPEC); 
106 AM - C:/hdata: that's all that needs to happen
106 AM - C:/hdata: we commented it out last time
107 AM - C:/hdata: both jointeam and changeclientteam fail without that arena fix you made
Additionally, I believe the only problem ChangeClientTeam had was when used in tandem with Versus Saxton Hale - VSH itself has been fixed, so the ClientCommand thing should be unnecessary now.
__________________

Last edited by Chdata; 06-30-2015 at 11:43.
Chdata is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 07-01-2015 , 04:54   Re: AFK Manager (Version 3.5.3 / Updated October 27th 2014)
Reply With Quote #1608

Quote:
Originally Posted by Chdata View Post
Additionally, I believe the only problem ChangeClientTeam had was when used in tandem with Versus Saxton Hale - VSH itself has been fixed, so the ClientCommand thing should be unnecessary now.
Which version of the plugin are you using, are you saying this code does not work?

if (GetConVarBool(FindConVar("tf_arena_use_queue ")))
FakeClientCommand(client,"jointeam %d", "spectatearena");
else
FakeClientCommand(client,"jointeam %d", g_sTeam_Index);
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
BReeZ
AlliedModders Donor
Join Date: Feb 2013
Location: Denmark
Old 07-05-2015 , 20:02   Re: AFK Manager (Version 3.5.3 / Updated October 27th 2014)
Reply With Quote #1609

Hello, i am having a problem with the plugin. Im fairly sure that this is a bug.

When being alone on the server, and having the max players checking to move client to spec set to "1" player.
If you're caught afk, while being alone on the server, you're being moved to spectator, but are unable to join a team afterwards. When you click on a team, it shows you in "tab" that you're on the team, but you're still viewing as a spectator.

SourceMod 1.7.2-dev+5202

I hope this was understandable.

Last edited by BReeZ; 07-05-2015 at 20:02.
BReeZ is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 07-06-2015 , 00:23   Re: AFK Manager (Version 3.5.3 / Updated October 27th 2014)
Reply With Quote #1610

Quote:
Originally Posted by banjomus99 View Post
Hello, i am having a problem with the plugin. Im fairly sure that this is a bug.

When being alone on the server, and having the max players checking to move client to spec set to "1" player.
If you're caught afk, while being alone on the server, you're being moved to spectator, but are unable to join a team afterwards. When you click on a team, it shows you in "tab" that you're on the team, but you're still viewing as a spectator.

SourceMod 1.7.2-dev+5202

I hope this was understandable.
Which Mod and what game mode? i.e. is this for TF2 Arena maps?
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Reply


Thread Tools
Display Modes

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:15.


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