Jump to content

killTimer / setTimer


spAik

Recommended Posts

addEventHandler('onGamemodeMapStart',getRootElement(), 
function() 
killTimer (votetime) 
local votetime = setTimer ( happen, 240000, 1 ) 
end) 

Hi

i want to start a function on the start of a map. I know my script does not work, because I set the "votetime"variable after the killTimer-function. But how can I make it that a timer is created before the map, but the previous timer is also destroyed at mapstart?

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