Gravestone Posted May 8, 2016 Author Share Posted May 8, 2016 I don't get it. I DO NOT want random selection. Look, if there are 8 players in Drug Dealers and 7 players in US Army then when the player who type /dd will be sent to US Army. This is what I want it to be like. Link to comment
Moderators IIYAMA Posted May 8, 2016 Moderators Share Posted May 8, 2016 Random selection is required when there are equal players in each team. Try to replace: local teamName = theTeams[1] To local teamName = theTeams[#theTeams] It seems it was placing players in the largest team instead of the smallest team. If you say it doesn't work, you should tell me WHAT exactly. This is really getting annoying. If you did debug your code correctly(not just the console), you would have figured this out on your own. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now