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

Remember player team after reconnect


Post New Thread Reply   
 
Thread Tools Display Modes
SZOKOZ
Member
Join Date: Jan 2014
Old 01-04-2018 , 17:05   Re: Remember player team after reconnect
Reply With Quote #21

Indeed, I wish I revised the plugin before posting. Anyway here is a revised version. You can switch between two team change methods using a cvar, though u can only change those in config since I didn't add a hook.
Attached Files
File Type: sp Get Plugin or Get Source (Reconnecters.sp - 116 views - 2.8 KB)
__________________
May still be available for SM scripting. Just look at my Steam profile regarding my availability.
My Steam

Last edited by SZOKOZ; 01-04-2018 at 22:13.
SZOKOZ is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 01-04-2018 , 17:16   Re: Remember player team after reconnect
Reply With Quote #22

Quote:
Originally Posted by SZOKOZ View Post
Indeed, I wish I revised the plugin before posting. Anyway here is a revised version. You can switch between two team change methods using a cvar, though u can only change those in config since I didn't add a hook.
Thanks, uploaded and testing.
EDIT: after loading the plugin, a player msgd me saying he couldn't connect, his connection was refused and he got a message: "Connection rejected by game". I unloaded the plugin and he was able to connect.
Is that related to this plugin?
__________________

Last edited by Obyboby; 01-04-2018 at 17:26.
Obyboby is offline
SZOKOZ
Member
Join Date: Jan 2014
Old 01-04-2018 , 22:14   Re: Remember player team after reconnect
Reply With Quote #23

TRy now
__________________
May still be available for SM scripting. Just look at my Steam profile regarding my availability.
My Steam
SZOKOZ is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 01-05-2018 , 07:18   Re: Remember player team after reconnect
Reply With Quote #24

Quote:
Originally Posted by SZOKOZ View Post
TRy now
Thanks, I'll let u know asap. It's live now.
Also in the future it would be nice to get a message just like that other plugin that was posted here, hl_teamenforcer, that tells the client when they have been re-assigned to their previous team.
Not a big deal but implementing that would be nice <3
__________________
Obyboby is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 01-05-2018 , 19:21   Re: Remember player team after reconnect
Reply With Quote #25

Quote:
Originally Posted by SZOKOZ View Post
Lol don't leave me hanging. What did you notice?
Quote:
Originally Posted by Mitchell View Post
A player disconnects and joins back a day later... he is forces onto the same team.
Summed it up pretty much, it's left into memory too, theoretically since you never dispose of it, and the server runs clean for a while, long while could lead to memory leaks
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS
OSWO is offline
SZOKOZ
Member
Join Date: Jan 2014
Old 01-05-2018 , 19:25   Re: Remember player team after reconnect
Reply With Quote #26

Quote:
Originally Posted by OSWO View Post
Summed it up pretty much, it's left into memory too, theoretically since you never dispose of it, and the server runs clean for a while, long while could lead to memory leaks
Yeah when I made that months back I was under the assumption plugins reloaded on map change. Until you guys posted I was still under that impression xD. Thanks for making me realise.
__________________
May still be available for SM scripting. Just look at my Steam profile regarding my availability.
My Steam
SZOKOZ is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 02-12-2018 , 13:25   Re: Remember player team after reconnect
Reply With Quote #27

Quote:
Originally Posted by SZOKOZ View Post
Yeah when I made that months back I was under the assumption plugins reloaded on map change. Until you guys posted I was still under that impression xD. Thanks for making me realise.
Hello.
Have you fixed those issues that were pointed out?
I'm currently using your plugin and wanted to know that.
Also, is it possible to add a message that is only displayed to the client, that says "you were re-assigned to your previous team" etc etc?
That way I can also figure if the plugin is still forcing me to the same team after the map change.
Thanks
__________________
Obyboby is offline
SZOKOZ
Member
Join Date: Jan 2014
Old 02-13-2018 , 04:03   Re: Remember player team after reconnect
Reply With Quote #28

I don't know any italian so you can swap out the text on line 137 if you wish.
Attached Files
File Type: sp Get Plugin or Get Source (Reconnecters.sp - 89 views - 2.9 KB)
__________________
May still be available for SM scripting. Just look at my Steam profile regarding my availability.
My Steam
SZOKOZ is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 02-13-2018 , 07:55   Re: Remember player team after reconnect
Reply With Quote #29

Quote:
Originally Posted by SZOKOZ View Post
I don't know any italian so you can swap out the text on line 137 if you wish.
Yeah no problem I can translate that, thanks a lot.
I'll upload it rn and test.

Btw, I renamed it to version 1.1, hope you don't mind, just to keep track of the changes.
Did u get a chance to look into resetting the plugin at map change? (to prevent auto assigning people again)

EDIT2: from a quick test, it seems like the message is not displayed to the client when they're re-assigned to their previous team.
__________________

Last edited by Obyboby; 02-13-2018 at 08:03.
Obyboby is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 02-22-2018 , 03:59   Re: Remember player team after reconnect
Reply With Quote #30

Actually it seems like the plugin is not auto-assigning the player to their previous team AT ALL. Could you look into that please?
__________________
Obyboby 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 19:30.


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