Jump to content

[help] setTimer Stop !!


Reggae

Recommended Posts

addCommandHandler("comprar",function(player) 
    setTimer ( function() 
        givePlayerMoney (player, 25000 ) 
    end, 5000, 0 ) 
end  
  
addCommandHandler("vender",function(player) 
end  

I can not post the entire script.

But I want to know what you want I can use to stop the SetTimer so the player type /vender.

I want to stop the SetTimer WHAT can I use?

excuse my bad english I'm Brazilian

Link to comment
    addCommandHandler("comprar",function(player) 
        timer = setTimer ( function() 
            givePlayerMoney (player, 25000 ) 
        end, 5000, 0 ) 
    end  
      
    addCommandHandler("vender",function(player) 
        killTimer ( timer ) 
    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...