Jump to content

kill timer not work


Death

Recommended Posts

        local pre_ataque[zona] = setTimer(function() 
        if iniciando[zona] <= 100 then 
        iniciando[zona] = members_in_turf[team][zona] + iniciando[zona] 
        else 
        Atacar(thePlayer,zona,group,gang) 
        end 
         
        end,500,0) 
  
function tester(thePlayer,zona) 
        local gang = getPlayerTeam(thePlayer) 
        local team = getTeamName(gang) 
        local timerr[thePlayer] = setTimer(function() 
                    triggerClientEvent(thePlayer, "onPreAtaque", thePlayer, iniciando[zona], zona) 
            end,500,0) 
end 
  
function Atacar(thePlayer,zona,group,gang) 
    zoned = zona 
    outputChatBox (zoned) 
    killTimer(iniciando[zoned]) 
    killTimer(timerr[thePlayer]) 
    triggerClientEvent(thePlayer, "onIniciarAtaque", thePlayer, zoned) 
end 

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...