I'm trying to create a skill, it works nicely but when I use it when it's in cooldown, cooldown never ends. Otherwise if i weren't use it when it's in cooldown or use it when it's cooldown over it works perfectly, That's why I am opening this thread. And sorry for my bad england.
Thanks for all of your helps. Thanks!
[doublepost=1486662372,1486574659][/doublepost]No comments? :c
code_language.skript:
on leftclick with gunpowder:
if {x.%player%} isn't set:
set {x.%player%} to 1
send "cd"
player has permission "*"
1.8 spawn 50 of particle smoke:0 offset by 1, 10, 1 at player with data 0
1.8 spawn 50 of particle red dust:0 offset by 1, 10, 1 at player with data 0
wait 5 ticks
1.8 spawn 50 of particle smoke:0 offset by 1, 9, 1 at player with data 0
1.8 spawn 50 of particle red dust:0 offset by 1, 9, 1 at player with data 0
wait 5 ticks
1.8 spawn 50 of particle smoke:0 offset by 1, 8, 1 at player with data 0
1.8 spawn 50 of particle red dust:0 offset by 1, 8, 1 at player with data 0
wait 5 ticks
1.8 spawn 50 of particle smoke:0 offset by 1, 7, 1 at player with data 0
1.8 spawn 50 of particle red dust:0 offset by 1, 7, 1 at player with data 0
wait 5 ticks
1.8 spawn 50 of particle smoke:0 offset by 1, 6, 1 at player with data 0
1.8 spawn 50 of particle red dust:0 offset by 1, 6, 1 at player with data 0
wait 5 ticks
1.8 spawn 50 of particle smoke:0 offset by 1, 5, 1 at player with data 0
1.8 spawn 50 of particle red dust:0 offset by 1, 5, 1 at player with data 0
wait 5 ticks
1.8 spawn 50 of particle smoke:0 offset by 1, 4, 1 at player with data 0
1.8 spawn 50 of particle red dust:0 offset by 1, 4, 1 at player with data 0
wait 5 ticks
1.8 spawn 50 of particle smoke:0 offset by 1, 3, 1 at player with data 0
1.8 spawn 50 of particle red dust:0 offset by 1, 3, 1 at player with data 0
wait 5 ticks
1.8 spawn 50 of particle smoke:0 offset by 1, 2, 1 at player with data 0
1.8 spawn 50 of particle red dust:0 offset by 1, 2, 1 at player with data 0
wait 5 ticks
1.8 spawn 50 of particle smoke:0 offset by 1, 1, 1 at player with data 0
1.8 spawn 50 of particle red dust:0 offset by 1, 1, 1 at player with data 0
wait 5 ticks
1.8 spawn 50 of particle smoke:0 offset by 1, 0, 1 at player with data 0
1.8 spawn 50 of particle red dust:0 offset by 1, 0, 1 at player with data 0
wait 2 seconds
1.8 spawn 1 of particle huge explosion:0 offset by 1, 0, 1 at player with data 0
wait 1 seconds
1.8 spawn 1 of particle huge explosion:0 offset by 1, 0, 1 at player with data 0
wait 1 seconds
1.8 spawn 1 of particle huge explosion:0 offset by 1, 0, 1 at player with data 0
wait 3 seconds
1.8 spawn 1 of particle huge explosion:0 offset by 1, 0, 1 at player with data 0
loop all entities in radius 10 around the player:
damage the loop-entity by 5 hearts
wait 5 seconds
delete {x.%player%}
send "cd over"
[doublepost=1486662372,1486574659][/doublepost]No comments? :c