AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018) (https://forums.alliedmods.net/showthread.php?t=79904)

sapphyrus 01-26-2021 19:58

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
Just a little heads up to anyone running this on a CS:GO server, this plugin makes an exploit known as "Air Stuck" possible that was patched by Valve a long time ago.

https://i.imgur.com/6yM8T6v.png

Returning Plugin_Handled in OnPlayerRunCmd disables Valve's fix for this exploit.

paulo_crash 01-26-2021 20:37

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

Originally Posted by sapphyrus (Post 2734415)
Just a little heads up to anyone running this on a CS:GO server, this plugin makes an exploit known as "Air Stuck" possible that was patched by Valve a long time ago.

https://i.imgur.com/6yM8T6v.png

Returning Plugin_Handled in OnPlayerRunCmd disables Valve's fix for this exploit.

Interesting, thanks for sharing. :bacon!:

Just to confirm it would be when the player is stuck in the air when it jumps right?

[EDIT]
What version of AFK manager do you use? I saw here, the latest version, 4.3.0 already comes with this modification.

Rugal 01-30-2021 23:58

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
1 Attachment(s)
Getting this on my console.

Rothgar 02-08-2021 05:42

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

Originally Posted by sapphyrus (Post 2734415)
Just a little heads up to anyone running this on a CS:GO server, this plugin makes an exploit known as "Air Stuck" possible that was patched by Valve a long time ago.

https://i.imgur.com/6yM8T6v.png

Returning Plugin_Handled in OnPlayerRunCmd disables Valve's fix for this exploit.

Has anyone else confirmed this? Or knows how to replicate the issue?

Quote:

Originally Posted by Rugal (Post 2735050)
Getting this on my console.

I expect that is because you have the sm_afk_prefix_color in your config file but are currently using a version compiled without Colors includes.

Razvann. 02-08-2021 14:12

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
Yes, I can confirm this bug... Idk how to replicate, cuz is random when is happening

Rothgar 02-08-2021 18:18

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

Originally Posted by Razvann. (Post 2736167)
Yes, I can confirm this bug... Idk how to replicate, cuz is random when is happening

I don't run any CS Servers so if I don't have replication steps it will be hard.

Are you able to compile a manual version changing that to Plugin_Continue and run it for a while see if that resolves the issues?

If it does I'll update it.

paulo_crash 02-08-2021 20:22

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

Originally Posted by Rothgar (Post 2736191)
I don't run any CS Servers so if I don't have replication steps it will be hard.

Are you able to compile a manual version changing that to Plugin_Continue and run it for a while see if that resolves the issues?

If it does I'll update it.


Quote:

Originally Posted by Razvann. (Post 2736167)
Yes, I can confirm this bug... Idk how to replicate, cuz is random when is happening

Update the version of your AFK Manager, as I mentioned, version 4.3.0 already includes this fix.

https://prnt.sc/ys2ruu

I use the latest version and I don't have these BUGS.

paulo_crash 02-08-2021 20:25

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
Would it be possible to place any checks for players who circumvent the AFK Manager with binds +lefts and etc?

Rothgar 02-08-2021 20:41

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

Originally Posted by paulo_crash (Post 2736195)
Update the version of your AFK Manager, as I mentioned, version 4.3.0 already includes this fix.

https://prnt.sc/ys2ruu

I use the latest version and I don't have these BUGS.

AFAIK the code that was pointed out still exists in 4.3.0 ? Line 1558?

Quote:

Originally Posted by paulo_crash (Post 2736196)
Would it be possible to place any checks for players who circumvent the AFK Manager with binds +lefts and etc?

We check buttons so if the buttons are the same it should keep them AFK, I am not sure what method is being used.

paulo_crash 02-08-2021 21:53

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

Originally Posted by Rothgar (Post 2736198)
AFAIK the code that was pointed out still exists in 4.3.0 ? Line 1558?

Exact, line 1558.

Quote:

Originally Posted by Rothgar (Post 2736198)
We check buttons so if the buttons are the same it should keep them AFK, I am not sure what method is being used.

Is that I received complaints from players that had some players that to not get kicked or to be moved to spectator used the command +left / -left on the console.

In any case, I will test myself thoroughly and see if this really happens, anything will return contact.

Stropy 03-05-2021 06:44

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
Hello,
players who are using +forward and +left in TF2 are not being moved/kicked. Probably related to above issue with +/- left in the console. Is there any way to fix it?

paulo_crash 03-05-2021 08:09

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

Originally Posted by Stropy (Post 2739343)
Hello,
players who are using +forward and +left in TF2 are not being moved/kicked. Probably related to above issue with +/- left in the console. Is there any way to fix it?

Exactly, as I mentioned above. I tested it thoroughly and if it uses +/- left the plugin does not move it to spec or kicka

Another point that I realized is that during heating the plugin does not work, would that be correct? Any way to make it work even while warming up?

[EDIT1]
Correction, in CSGO after the first round ends he starts to detect, even if the player is using +/- left.

hoyxen 03-05-2021 08:13

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
nice.

`666 03-06-2021 05:47

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
1 Attachment(s)
In insurgency (coop mode) when players join a server they get automatically assigned to a team, so if the plugin set to ignore dead players then the plugin never detects an afk. I added to check if player joined a squad, if not then the player is afk.

digin 03-27-2021 07:18

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
does this not work in retakes by splewis? on my server seems like it doesn't work and it takes a long time to detect whether the player is afk or not.

fantsypants 04-08-2021 15:12

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

Originally Posted by digin (Post 2742011)
does this not work in retakes by splewis? on my server seems like it doesn't work and it takes a long time to detect whether the player is afk or not.

yeah trying this with my retakes server too and it seems it doesnt work. The plugin is loaded etc. Maybe its to do with the bomb being planted...

cixoT 05-17-2021 15:51

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

Originally Posted by Rothgar (Post 2736191)
I don't run any CS Servers so if I don't have replication steps it will be hard.

Are you able to compile a manual version changing that to Plugin_Continue and run it for a while see if that resolves the issues?

If it does I'll update it.

I just tested it and it resolved the issue.

BorealBlizzard 06-11-2021 23:58

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
Im having issues setting move time and kick time. I have it set up to move at 300sec and kick at 600sec but it moves people in like 15 seconds of being afk.

here is my afk_manager.cfg
PHP Code:

// This file was auto-generated by SourceMod (v1.10.0.6503)
// ConVars for plugin "afk_manager4.smx"


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

// 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 "1"

// How many button changes should the AFK Manager track before resetting AFK status? [0 = DISABLED, DEFAULT: 5]
// -
// Default: "5"
// Minimum: "0.000000"
// Maximum: "30.000000"
sm_afk_buttons "5"

// 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 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"

// Should the AFK Manager announce AFK kicks to the server? [0 = DISABLED, 1 = EVERYONE, 2 = ADMINS ONLY, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_afk_kick_announce "1"

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

// 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 "0"

// Time in seconds (total) client must be AFK before being kicked. [0 = DISABLED, DEFAULT: 120.0 seconds]
// -
// Default: "120.0"
sm_afk_kick_time "600.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 "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"

// Should the AFK Manager announce AFK moves to the server? [0 = DISABLED, 1 = EVERYONE, 2 = ADMINS ONLY, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_afk_move_announce "1"

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

// 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 "300.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 "30.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 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 "20.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 "15.0" 


Et3rnity 06-12-2021 00:24

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
You have to set spawn afk time aswell sm_afk_spawn_time

BorealBlizzard 06-12-2021 00:59

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

Originally Posted by Et3rnity (Post 2749554)
You have to set spawn afk time aswell sm_afk_spawn_time

Thank you that seemed to fix it!

paulo_crash 07-04-2021 20:18

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
@Rothgar some way to activate to move and kick players and even being in the warm up, CSGO in case.

paulo_crash 08-29-2021 13:15

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

Originally Posted by Rothgar (Post 708265)
AFK Manager

Most people should use the new version that is NOT in the zip file.

Compiled Download with Multi Colors and Updater
If you are looking for a compiled download of the latest version of the AFK Manager which includes both "Multi Colors" and "Updater" include files, you can use the Updater download URL http://afkmanager.dawgclan.net/plugins/afk_manager4.smx

The compiled download URL should be static and contain the latest version of the plugin if you for example want to add to server provisioning scripts or similar, please also make sure you get the translation file either through the forum or via the Updater download URL http://afkmanager.dawgclan.net/trans...er.phrases.txt

Version compiled with Multi Colors & Updater no longer downloads

Rothgar 09-06-2021 21:41

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
Can you try Right Clicking then Save As on the link, I am not sure if SourceMod are blocking SMX Downloads or something, it worked for me Right Click Save As and also if I copied the link and pasted into a new tab.

I think I specifically tried to capture and not take effect during "Warmups" for most Mods, I'd have to see how much interest there was to make that an option.

paulo_crash 09-07-2021 00:37

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

Originally Posted by Rothgar (Post 2757117)
Can you try Right Clicking then Save As on the link, I am not sure if SourceMod are blocking SMX Downloads or something, it worked for me Right Click Save As and also if I copied the link and pasted into a new tab.

I think I specifically tried to capture and not take effect during "Warmups" for most Mods, I'd have to see how much interest there was to make that an option.

Worked, thank you.

On the question of Warmups, and a cvar to control whether it activates or not? In this case for me it would be due to the competitive.

As you have to type ready the 10 players to start, there are times when an AFK player is left and does not type ready and is not kicked by the AFK Manager.

In any case I'll be waiting to see if it will be added or not, thank you.

paulo_crash 11-29-2021 08:26

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

Originally Posted by Rothgar (Post 2757117)
I think I specifically tried to capture and not take effect during "Warmups" for most Mods, I'd have to see how much interest there was to make that an option.

News? If it's not a big change I would be grateful if you can tell me where to change to make the plugin work with warmup system too.

paulo_crash 11-29-2021 09:20

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
I don't know if it would be the best solution, but for me it solved the issue of players not being checked/kicked or moved to spec during warmup.

Code:

public Action Event_RoundStart(Handle event, const char[] name, bool dontBroadcast)
{
#if _DEBUG
        LogDebug(false, "Event_RoundStart");
#endif
        if (g_bEnabled)
                if (CSGO)
                {
#if _DEBUG
                        LogDebug(false, "Event_RoundStart - CSGO - Freeze Time: %i Warmup Period: %i", GetConVarInt(FindConVar("mp_freezetime")), GameRules_GetProp("m_bWarmupPeriod"));
#endif
                        if (GameRules_GetProp("m_bWarmupPeriod") == 0)
                                g_bWaitRound = true;
                        else if (GameRules_GetProp("m_bWarmupPeriod") == 0)
                                if (GetConVarInt(FindConVar("mp_freezetime")) > 0)
                                        g_bWaitRound = true;
                                else
                                        g_bWaitRound = false;
                }
                else if ((CSTRIKE) && (GetConVarInt(FindConVar("mp_freezetime")) > 0))
                {
#if _DEBUG
                        LogDebug(false, "Event_RoundStart - Freeztime Pausing AFK");
#endif
                        g_bWaitRound = true;
                }

        return Plugin_Continue;
}

In case I changed:
Code:

if (GameRules_GetProp("m_bWarmupPeriod") == 1)
for:
Code:

if (GameRules_GetProp("m_bWarmupPeriod") == 0)

paulo_crash 12-02-2021 13:05

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

Originally Posted by paulo_crash (Post 2764628)
Code:

if (GameRules_GetProp("m_bWarmupPeriod") == 1)
for:
Code:

if (GameRules_GetProp("m_bWarmupPeriod") == 0)

Just an observation.This change only works for servers configured as competitive.
  • game_type 0
  • game_mode 1

Casual servers the plugin does not work with this change.
  • game_type 0
  • game_mode 0
Players are not moved or kicked.

ZBzibing 07-10-2022 00:53

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
If a player uses the command +left, the model will rotate in place, so he cannot be idle automatically

`666 07-10-2022 14:29

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

Originally Posted by ZBzibing (Post 2783429)
If a player uses the command +left, the model will rotate in place, so he cannot be idle automatically

Just ban at that point.

Wizzardoff 02-26-2023 18:51

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
One simple question. Any chance i can change player name color in phrases? For ex [AFK]{1} was moved to spectate for being AFK too long. . {1} Player name i would like to make it blue,or urple or whatever. Thanks

paulo_crash 02-26-2023 19:11

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

Originally Posted by Wizzardoff (Post 2800327)
One simple question. Any chance i can change player name color in phrases? For ex [AFK]{1} was moved to spectate for being AFK too long. . {1} Player name i would like to make it blue,or urple or whatever. Thanks

Quote:

Originally Posted by Rothgar (Post 708265)
Compiled Download with Multi Colors and Updater
If you are looking for a compiled download of the latest version of the AFK Manager which includes both "Multi Colors" and "Updater" include files, you can use the Updater download URL
Must User Right Click Save As: http://afkmanager.dawgclan.net/plugins/afk_manager4.smx

The compiled download URL should be static and contain the latest version of the plugin if you for example want to add to server provisioning scripts or similar, please also make sure you get the translation file either through the forum or via the Updater download URL http://afkmanager.dawgclan.net/trans...er.phrases.txt

Download this version and edit the translation with the colors you want.

Fate97 03-05-2023 02:08

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

//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// afk_manager4.sp
//
// C:\Users\remec\Desktop\scripting\afk_manager4.sp(657) : warning 246: function ActionToString returns an array but return type is not marked as an array
// Code size:        63560 bytes
// Data size:        24988 bytes
// Stack/heap size:      18512 bytes
// Total requirements:  107060 bytes
//
// 1 Warning.
//
// Compilation Time: 0,53 sec
// ----------------------------------------

Press enter to exit ..


Wizzardoff 03-08-2023 18:50

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

Originally Posted by paulo_crash (Post 2800329)
Download this version and edit the translation with the colors you want.

For ex like this?

{orchid}{1}{default} ?

paulo_crash 03-08-2023 20:00

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

Originally Posted by Wizzardoff (Post 2800908)
For ex like this?

{orchid}{1}{default} ?

Exactly :up:

Wizzardoff 03-10-2023 14:44

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
Any way afk manager doesnt take -1 kill during automoving to spectate?

egorka2 04-08-2023 09:37

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
2 Attachment(s)
Small fixes for SM 1.11 compiler (v4.3.1)

paulo_crash 09-17-2023 11:08

Re: [ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)
 
@Rothgar could you add support for VIP Core?

Currently I add VIP through VIP Core, but even though I have configured it so that VIP players are not kicked through AFK Manager, they are being kicked.

freak.exe_uLow 09-18-2023 09:54

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

Originally Posted by paulo_crash (Post 2810180)
@Rothgar could you add support for VIP Core?

Currently I add VIP through VIP Core, but even though I have configured it so that VIP players are not kicked through AFK Manager, they are being kicked.

check the first line in cfg/sourcemod/afk_manager.cfg
Quote:

// This file was auto-generated by SourceMod (v1.10.0.6478)
// ConVars for plugin "afk_manager4.smx"


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

paulo_crash 09-18-2023 12:00

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

Originally Posted by freak.exe_uLow (Post 2810216)
check the first line in cfg/sourcemod/afk_manager.cfg

:3

Yes, first thing I did... I even configured it for flag a even though cvar says that leaving it blank works for all flags.

freak.exe_uLow 09-19-2023 10:08

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

Originally Posted by paulo_crash (Post 2810218)
Yes, first thing I did... I even configured it for flag a even though cvar says that leaving it blank works for all flags.

mhhhh try this here: https://github.com/sazonische/player-checker or on hlmod: https://hlmod.net/resources/player-c...ing-camp.1823/ (you also have an account there)


All times are GMT -4. The time now is 13:16.

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