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
Rothgar
Veteran Member
Join Date: Nov 2007
Old 02-13-2017 , 05:33   Re: AFK Manager (Version 4.1.0 / Updated January 14th 2017)
Reply With Quote #1761

Quote:
Originally Posted by Aura89 View Post
Is there a way to disable !afk /afk?
What do you mean? There are no such commands in this plugin?
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Aura89
Member
Join Date: Jan 2014
Old 02-14-2017 , 19:55   Re: AFK Manager (Version 4.1.0 / Updated January 14th 2017)
Reply With Quote #1762

Quote:
Originally Posted by Rothgar View Post
What do you mean? There are no such commands in this plugin?
Nevermind, i am dumb.

Last edited by Aura89; 02-14-2017 at 20:20.
Aura89 is offline
Nvoid
Junior Member
Join Date: Feb 2017
Old 02-14-2017 , 20:42   Re: AFK Manager (Version 4.1.0 / Updated January 14th 2017)
Reply With Quote #1763

Note for GoldenEye:Source that the spectatorid is actually 0, the affected player becomes a phantom, i set g_iSpec_Team to 0 but this probably breaks some things.

//afk_manager4.sp

Line 151:
Code:
int g_iSpec_Team = 1; //GE:S Incorrect
int g_iSpec_Team = 0; //GE:S Correct?
I would submit a block to patch this but I'm just now picking up sourcemod.


Null

Last edited by Nvoid; 02-14-2017 at 20:43. Reason: Q
Nvoid is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 02-17-2017 , 16:50   Re: AFK Manager (Version 4.1.0 / Updated January 14th 2017)
Reply With Quote #1764

Quote:
Originally Posted by Nvoid View Post
Note for GoldenEye:Source that the spectatorid is actually 0, the affected player becomes a phantom, i set g_iSpec_Team to 0 but this probably breaks some things.

//afk_manager4.sp

Line 151:
Code:
int g_iSpec_Team = 1; //GE:S Incorrect
int g_iSpec_Team = 0; //GE:S Correct?
I would submit a block to patch this but I'm just now picking up sourcemod.


Null
Hi Null,

Unfortunately I am not sure what issue exactly you are facing? Spectator team should usually be 1.

I spoke to the SourceMod devs and they confirmed this, I even found a Discord channel for GES and spoke to a couple of the devs and they have also confirmed the teams for GES are:

#define TEAM_UNASSIGNED 0 // not assigned to a team
#define TEAM_SPECTATOR 1 // spectator team

So I am not sure, you'd probably need to work out if there is something specific to your setup before I change code. Maybe jump on their discord https://discord.gg/MTwT3Ch and see if they can pinpoint and if it changes I can look at updating the detection for GES.

Last edited by Rothgar; 02-17-2017 at 16:50.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Nvoid
Junior Member
Join Date: Feb 2017
Old 02-19-2017 , 05:17   Re: AFK Manager (Version 4.1.0 / Updated January 14th 2017)
Reply With Quote #1765

I'm actually in that discord server already, but must have missed your conversation with the devs.

I was mistaken about the id's, the correct id's are:

TEAM_NONE:0
TEAM_SPECTATOR:1
TEAM_MI6:2
TEAM_JANUS


When i changed g_ispect_team to 0 i thought i was on the right track because the user was actually moved instead of continuing to play as a phantom player. I'll take a closer look at the code and if i find anything I'll post an update.

Thanks for your help!
Nvoid is offline
Nvoid
Junior Member
Join Date: Feb 2017
Old 02-19-2017 , 07:23   Re: AFK Manager (Version 4.1.0 / Updated January 14th 2017)
Reply With Quote #1766

Success!

So it was fairly simple to fix, all that that was needed was the "ForcePlayerSuicide;" called before the "ChangeClientTeam" which wasn't called at all. I've attached a file with line numbers and code inserts that follows your structure to add ges support. I plan to do more to make sure i don't miss any other unforeseen problems.

Null
Attached Files
File Type: txt afk_manager4_gesource_update.txt (925 Bytes, 129 views)

Last edited by Nvoid; 02-19-2017 at 07:23. Reason: Add Attachment
Nvoid is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 02-20-2017 , 06:01   Re: AFK Manager (Version 4.1.0 / Updated January 14th 2017)
Reply With Quote #1767

Quote:
Originally Posted by Nvoid View Post
Success!

So it was fairly simple to fix, all that that was needed was the "ForcePlayerSuicide;" called before the "ChangeClientTeam" which wasn't called at all. I've attached a file with line numbers and code inserts that follows your structure to add ges support. I plan to do more to make sure i don't miss any other unforeseen problems.

Null
Ok that sounds a better, if you can run it for a few days and confirm it's fixed I'll make a small release to patch that for GE:S, thanks.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Nvoid
Junior Member
Join Date: Feb 2017
Old 02-21-2017 , 01:15   Re: AFK Manager (Version 4.1.0 / Updated January 14th 2017)
Reply With Quote #1768

Awesome! It seems to be working well now, I've tested immunity, kick, and afk. No problems that i see, my players are happy now.

Null
Nvoid is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 02-24-2017 , 17:57   Re: AFK Manager (Version 4.1.0 / Updated January 14th 2017)
Reply With Quote #1769

Quote:
Originally Posted by Nvoid View Post
Awesome! It seems to be working well now, I've tested immunity, kick, and afk. No problems that i see, my players are happy now.

Null
Ok just added the fix to the plugin, thanks for the report!
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Nvoid
Junior Member
Join Date: Feb 2017
Old 02-25-2017 , 05:08   Re: AFK Manager (Version 4.1.0 / Updated January 14th 2017)
Reply With Quote #1770

Quote:
Originally Posted by Rothgar View Post
Ok just added the fix to the plugin, thanks for the report!
Thank you!
Nvoid is offline
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 02:20.


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