Clear cooldown on death and notify player on cooldown expire

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

varboosted

Active Member
Apr 20, 2020
50
3
8
24
Code:
on right click with a sugar:
    name of tool of player is "&cFlash!"
    set {_waited} to difference between {speed.%player%.lastused} and now
    if {_waited} is less than 30 seconds:
        message "&6&lKitPvP &8» &7You have to wait&6 %difference between 30 seconds and {_waited}% &7until you can use your ability again!"
        stop

    apply potion of speed of tier 5 to player for 10 seconds

    on player dead
        set {_waited} to 0
        stop


    set {speed.%player%.lastused} to now

How can I make it clear the cooldown on death, and when the cooldown expire it will tell him
 
Status
Not open for further replies.