Yes as I said in my previous replies I am already aware of the situations the current implementation can cause. What Im trying to explain is that the suggested solutions are susceptible to user manipulation (something most people in this post seem to forget)
That said, the idea I have in mind is what I said in my previous posts, which is to consider players who have been spawned in the last 30 to 40 seconds as players who are alive so the script can count them and avoid issues. But this needs some more thought as I'm trying to create a solution that doesnt simply balance the teams but also make sure it's not too easy to manipulate. While it's not 100% impossible to manipulate, it's still not as easy to manipulate as only couting the players assigned to each team.
Regardless, I won't be making any changes to the script until probably next week since I'm on a business trip right now and I'm not home.
UPDATE: Didn't forget about this but haven't had the time and probably wont have much free time any time soon either. There's a few other bugs ELK reported to me that I need to look into and there's also CTF6 which has been ready since May2020 but I've been too busy with IRL stuff. Not sure when I'll pick this back up.