Solved Once a life time a win

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

Djavan

Member
Jul 19, 2019
16
0
0
Hey everyone!
I am bussy with a script that give people things from opening crates.
I want that if someone won the /launch permission command, he can't get it anymore.
Can you guy's help me with this?
Thanks!


Code:
command /trollcrategui:
    trigger:
        set {_waited} to difference between {trollcrate.%player%.lastused} and now
        if {_waited} is less than 5 hours:
            message "&cJe moet %difference between 5 hours and {_waited}% wachten voor je dit weer kan proberen!"
            stop
     
        chance of 10%:
            send "&cJe hebt gewonnen"
            wait 5 ticks
            make server execute command "/launcher permission command"
            send "&cJe kan nu het command: /launcher gebruiken"
        else:
            send "&cJe hebt niks gewonnen"
     
        set {trollcrate.%player%.lastused} to now
 
Last edited:
Status
Not open for further replies.