-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable the teamjoin menu #2
Comments
We've tested most situation of your plugin. I totally prove: this code works as expected jfkz@921fbb9#diff-e8739654d1116a471bcf5b790538274eR8 |
The last time I worked on the team logic (which was 6 months ago when I made #1), I could not get team placements during halftime periods to work consistently at all. I didn't know whether clients should be placed on their 1st half team or their 2nd half team if they connect during the halftime. I tried both, and always saw issues. I suspect the transition has to be done sometime during the middle of the halftime. All that is to say, disabling the teamjoin menu isn't such a good idea since it will cause issues for clients if they join during a halftime period - they will be unable to get onto a team until they use a jointeam command in console once the halftime period is over. |
Ok. I just want to say that I uncomment your code and it works fine in any cases that I tested. And that's all =) |
https://forums.alliedmods.net/showpost.php?p=2543217&postcount=38 might help
|
EDIT: nevermind, while it is working, this change seem to randomly cause the server to reject player connections with the message
in this
The player automatically join the right team upon connection (not tested with coach and casters yet). |
This is my current solution for my 5on5 plugin which I use for my upcoming website, feel free to use it: OnPluginStart;
Actual logic:
|
Oh, I just saw that you already posted that solution. ;D |
Pull requests are welcome. |
Hinges on #1's completion.
Two parts:
sv_disable_show_team_select_menu 1
joingame
command listener, put the player on the correct teamThe text was updated successfully, but these errors were encountered: