Jump to content

Counter


Alex1002

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...