Alex1002 Posted July 10, 2016 Share Posted July 10, 2016 Hello, I have a Counter more always adds one to me for each of the two teams if who chooses one of the sides, I have the problem now this one as soon as from at all which reasons the team always leaves, too somebody should be counted down, that is -1, this only doesn't happen and it even shall be broken off at 0 against 1. local teamOne = 0 local teamTwo = 0 function teamSettings () if getTeamName(getPlayerTeam(client)) == "ONETeam" then teamOne = teamOne + 1 if teamOne >= 1 and teamTwo >= 1 then teamSpawnTime () end elseif getTeamName(getPlayerTeam(client)) == "TWOTeam" then teamTwo = teamTwo + 1 if teamTwo >= 1 and teamOne >= 1 then teamSpawnTime () end end function teamSpawnTime () if teamOne >= 1 and teamTwo >= 1 then if isTimer(gameTimeCounter) == false then gameTimeCounter = setTimer (function() outputChatBox("Works") end, 6000, 9) end end end Now my question: How I have the team crowd fetch down as soon as somebody leaves a team and the timer kill at not sufficient players again M.f.G Alex.W Link to comment
Alex1002 Posted July 10, 2016 Author Share Posted July 10, 2016 How does it look out, if to get down the number of the Team-Member I would allow to leave with of the team and that I finish the running timer with not enough Members??? M.f.G Alex.W Link to comment
Tails Posted July 10, 2016 Share Posted July 10, 2016 I'm not entirely sure as to what you're trying to accomplish. If you want to count the players in a team and compare them in any way, take a look at: https://wiki.multitheftauto.com/wiki/CountPlayersInTeam Link to comment
Alex1002 Posted July 10, 2016 Author Share Posted July 10, 2016 Thank you very much, I have not known the MTA something like that has to offer M.f.G Alex.W 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