1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add Delay text

Discussion in 'Skript' started by Gintec, Dec 7, 2019.

Thread Status:
Not open for further replies.
  1. Gintec

    Gintec Member

    Joined:
    Dec 6, 2019
    Messages:
    1
    Likes Received:
    0
    hello can someone make it send out the time remaining. Replace {time_remaining} to whatever you need to, to add this in
    command /dupe:
    description: Dupelicate
    trigger:
    if {cooldown.%player%} is set:
    message "&eYou Can't Dupe Now, You Must Wait {time_remaining}!"
    stop
    if {cooldown.%player%} isn't set:
    set {cooldown.%player%} to false
    if {cooldown.%player%} is false:
    set {cooldown.%player%} to true
    give player's tool to player
    wait 1 minute
    set {cooldown.%player%} to false
     
  2. LukynkaCZE

    LukynkaCZE Member

    Joined:
    May 12, 2019
    Messages:
    26
    Likes Received:
    2
    Hi, this should work:

    Code (Text):
    1. command /dupe:
    2.     description: Dupelicate
    3.     trigger:
    4.         if {cooldown::%player%} is not set:
    5.             give player's tool to player
    6.             add 60 to {wait_dupe::%player%}
    7.             set {cooldown::%player%} to true
    8.         else:
    9.             message "&eYou Can't Dupe Now, You Must Wait %{wait_dupe::%player%}% Seconds!"
    10.             stop
    11.  
    12.  
    13.  
    14. every second:
    15.     loop all players:
    16.         if {cooldown::%loop-player%} is not set:
    17.             stop
    18.         else:
    19.             remove 1 from {wait_dupe::%loop-player%}
    20.             if {wait_dupe::%loop-player%} is less than 1:
    21.                 delete {cooldown::%loop-player%}
     
Thread Status:
Not open for further replies.

Share This Page

Loading...