Jump to content

Need help with timer Skript


Chqwy

Recommended Posts

every second:
	loop all players:
		if {_gamestarted} is equal to 1:
			remove 1 from {_s}
			if {_s} is equal to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:
				send action bar "{@prefix} &8>> &c%{_m}%:0%{_s}%" to loop-player
			else:
				send action bar "{@prefix} &8>> &c%{_m}%:%{_s}%" to loop-player
			if {_s} is equal to -1:
				remove 1 from {_m}
				set {_s} to 59
			if {_m} is equal to 0:
				if {_s} is equal to 0:
					send action bar "{@prefix} &8>> &40:00" to loop-player
		else:
			send action bar "&c&lPLEASE WAIT" to loop-player

I am wondering why this does not work. pls help

Link to comment
Share on other sites

8 hours ago, Darth1013 said:

put it into a command with a cooldown, that works for me.

every second:
 loop all players:
  execute player command "command here"

Im not sure what you mean by this, can you please explain further?

Link to comment
Share on other sites

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
×
×
  • Create New...