I'm writing a plugin and I want to force a user into a team based on my own auto balance algorithm.
So far I tried the code from 'Auto Join on Connect" plugin by VEN. It's the most simple plugin I could find. Others are very complex and it's hard to separate only the auto join team code so I can easily use it.
Apparently, there are issues with Gun Game that prevents users from respawning sometimes.
https://forums.alliedmods.net/showthread.php?p=708588
I want the user class to be selected automatically also. The fix described in the topic above just opens the select class menu and user has to click on the class buttons manually.
Can anyone help me with some auto join code that works?