Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /startg:
- trigger:
- broadcast "The game is going to start in 30 seconds"
- countDown(30)
- #next lines is if you want some action after this countdown
- wait 30 seconds
- {game.status} is not "stop" #check if game is still running
- broadcast "The game is ended with a tie!"
- #It depends on your game, here I created a command which will stop the countdown
- command /stopg:
- trigger:
- set {game.status} to "stop"
- broadcast "The game has been stopped!"
- function countDown(am: number):
- if {_am} is 30:
- set {time} to "00:30"
- set {_w} to 31
- else if {_am} is 10:
- set {time} to "00:10"
- set {_w} to 51
- wait 1 second
- loop {_am}-1 times:
- if {game.status} is "stop":
- stop
- if {_w} is greater than 50:
- set {time} to "00:0%60-{_w}%"
- else:
- set {time} to "00:%60-{_w}%"
- if {time} is "00:15":
- broadcast "Something"
- add 1 to {_w}
- wait 1 second
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement