Baseplate Posted November 11, 2012 Posted November 11, 2012 Well, I wanna to make a countdown, which functions should I use?
Baseplate Posted November 11, 2012 Author Posted November 11, 2012 :youdontsay: I know, but how to make the countdown counts?
Smart. Posted November 11, 2012 Posted November 11, 2012 :youdontsay: I know, but how to make the countdown counts? Like I said, use setTimer to decrease it every second. *facepalm* function reduceCountdown() countdown = countdown - 1 outputChatBox(countdown) if (countdown == 0) then outputChatBox("Start") end end function startTimer(cmd, time) countdown = time outputChatBox(time) setTimer(reduceCountdown, 1000, countdown) end addCommandHandler("starttimer", startTimer)
Castillo Posted November 11, 2012 Posted November 11, 2012 He could also use getTimerDetails to get the timer time left.
Baseplate Posted November 11, 2012 Author Posted November 11, 2012 Thanks! now to put it in a label, can I use it client-sided?
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