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

Remember player team after reconnect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
krikus62
Senior Member
Join Date: Jan 2015
Old 07-24-2017 , 11:41   Remember player team after reconnect
Reply With Quote #1

I was unable to find a plugin that does this feature, would anyone be able to make one?
__________________
My plugins:
Spoiler
krikus62 is offline
WatchDogs
Senior Member
Join Date: Oct 2015
Location: Iran
Old 07-24-2017 , 13:01   Re: Remember player team after reconnect
Reply With Quote #2

Hi, I can do it for you.

Just a question: Force him to join his last team or just switch him when he connected ?
WatchDogs is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 07-25-2017 , 06:42   Re: Remember player team after reconnect
Reply With Quote #3

Wow, I'd love to use this too!!
I have too many players who try to bypass the auto assign by retrying until they can get to the "easy" team :p
__________________
Obyboby is offline
trzmielu
Member
Join Date: Aug 2016
Old 07-25-2017 , 09:13   Re: Remember player team after reconnect
Reply With Quote #4

LOL, this'll be an awesome plugin!!!
trzmielu is offline
Pruppet
Junior Member
Join Date: Dec 2016
Old 07-27-2017 , 14:29   Re: Remember player team after reconnect
Reply With Quote #5

Tested and works, changes client's team upon team selection after having joined, although they still can change team again later on.
If you want it to keep denying team change, just tell me
Attached Files
File Type: sp Get Plugin or Get Source (team_reminder.sp - 300 views - 2.3 KB)
__________________
Contact me on Steam for private plugins.

Last edited by Pruppet; 07-27-2017 at 14:30.
Pruppet is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 07-27-2017 , 15:05   Re: Remember player team after reconnect
Reply With Quote #6

Quote:
Originally Posted by Pruppet View Post
Tested and works, changes client's team upon team selection after having joined, although they still can change team again later on.
If you want it to keep denying team change, just tell me
Why would you use clientprefs? Once a player joins a team they will be force to be on that team for every map change and server restart until the plugin is removed.
It'd probably be best to just use a StringMap to store player's team number underneath their accountId (or steamid) then clear that array every map. Also you should take auto team balance into consideration, as half of the other team could disconnect then it would be extremely unfair.

Last edited by Mitchell; 07-27-2017 at 15:07.
Mitchell is offline
krikus62
Senior Member
Join Date: Jan 2015
Old 08-01-2017 , 07:35   Re: Remember player team after reconnect
Reply With Quote #7

Quote:
Originally Posted by Mitchell View Post
Why would you use clientprefs? Once a player joins a team they will be force to be on that team for every map change and server restart until the plugin is removed.
It'd probably be best to just use a StringMap to store player's team number underneath their accountId (or steamid) then clear that array every map. Also you should take auto team balance into consideration, as half of the other team could disconnect then it would be extremely unfair.
Sounds like a nice solid plugin idea right there
__________________
My plugins:
Spoiler
krikus62 is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 09-28-2017 , 16:28   Re: Remember player team after reconnect
Reply With Quote #8

Quote:
Originally Posted by Mitchell View Post
Why would you use clientprefs? Once a player joins a team they will be force to be on that team for every map change and server restart until the plugin is removed.
It'd probably be best to just use a StringMap to store player's team number underneath their accountId (or steamid) then clear that array every map. Also you should take auto team balance into consideration, as half of the other team could disconnect then it would be extremely unfair.
Damn. I installed the plugin without reading this first.

Is it possible to update the code with this modification?
Thanks
__________________
Obyboby is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 12-24-2017 , 12:22   Re: Remember player team after reconnect
Reply With Quote #9

Plz developer come back :C
__________________
Obyboby is offline
SZOKOZ
Member
Join Date: Jan 2014
Old 12-24-2017 , 20:45   Re: Remember player team after reconnect
Reply With Quote #10

I did make a plugin for this but then I realised that csgo already has this feature in built. It is what's used in competitive to keep track of our scores. I can't actually remember the cvar atm so here's the plugin.
Attached Files
File Type: sp Get Plugin or Get Source (Reconnecters.sp - 322 views - 2.5 KB)
__________________
May still be available for SM scripting. Just look at my Steam profile regarding my availability.
My Steam
SZOKOZ 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 00:47.


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