Discord Thread 0 Errors but dont working as i want, Mushroom that have cooldown in using after use

  • 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!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.
code_language.skript:
c++
on right click with crimson fungus:
    name of event-item is "&b&lGrzyb Prędkosci &7(PPM)"
    if {speedmushroom::%player%} = 0:
        apply swiftness 2 to the player for 3 minutes
        timer(player, 600 seconds, "speedmushroom")
    else:
        send "&cNie mozesz tego uzyc! Bedziesz mogl uzyc tego dopiero za &7%{speedmushroom::%player%}%s"

function timer(p: player, duration: timespan, name: string):
    set {name::%uuid of {_p}%::%{_name}%} to now
    wait {_duration}
    set {_wait} to difference between {name::%uuid of {_p}%::%{_name}%} and now
    if {_wait} >= {_duration}:
        delete {name::%uuid of {_p}%::%{_name}%}

Posted by: bartizer from the skUnity Discord.
 
code_language.skript:
applescript
on right click with crimson fungus:
    name of event-item is "&b&lGrzyb Prędkosci &7(PPM)"
    set {name::%uuid of player%::speedmushroom} to now
you understand this right?

Posted by: eult from the skUnity Discord.
 
Status
Not open for further replies.