Baseplate Posted November 11, 2012 Share Posted November 11, 2012 Well, I wanna to make a countdown, which functions should I use? Link to comment
Baseplate Posted November 11, 2012 Author Share Posted November 11, 2012 :youdontsay: I know, but how to make the countdown counts? Link to comment
Smart. Posted November 11, 2012 Share 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) Link to comment
Castillo Posted November 11, 2012 Share Posted November 11, 2012 He could also use getTimerDetails to get the timer time left. Link to comment
Baseplate Posted November 11, 2012 Author Share Posted November 11, 2012 Thanks! now to put it in a label, can I use it client-sided? Link to comment
Castillo Posted November 11, 2012 Share Posted November 11, 2012 That is a client side script already. Link to comment
Baseplate Posted November 11, 2012 Author Share Posted November 11, 2012 Eh, fool meh, Thanks guys Link to comment
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