Hello.
I've been trying to do a command where if a player is on a team it will execute teams command. But after a lot of messed up code I realized that I don't know how to fix it..
It does not TP the team players. (It has to be all players on the team) {ir::team::%player%} is alredy defined and working. I just don't know how to make this work. Please help!
[doublepost=1534885624,1534818927][/doublepost]bump since I need to fix this asap <3
I've been trying to do a command where if a player is on a team it will execute teams command. But after a lot of messed up code I realized that I don't know how to fix it..
Code:
command /timer [<text>] [<integer>]:
trigger:
if arg-1 is "start":
set {_countdown} to arg 2
set {countdown} to true
wait 1 tick
loop arg 2 times:
if {countdown} is true:
broadcast "&eMatch will start in &c%{_countdown}% &eseconds"
remove 1 from {_countdown}
wait 1 second
else:
stop
play sound "NOTE_PLING" to all players with volume 100 and pitch 15
broadcast ""
broadcast "&aMatch has started!"
broadcast ""
loop all players:
if {ir::obs::%player%} is set:
make loop-players execute command "/armor0"
if {ir::red::%player%} is set:
make loop-players execute command "/armor1"
if {ir::blue::%player%} is set:
make loop-players execute command "/armor2"
It does not TP the team players. (It has to be all players on the team) {ir::team::%player%} is alredy defined and working. I just don't know how to make this work. Please help!
[doublepost=1534885624,1534818927][/doublepost]bump since I need to fix this asap <3