Add Delay text

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

Gintec

Member
Dec 6, 2019
1
0
1
33
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
 
Hi, this should work:

Code:
command /dupe:
    description: Dupelicate
    trigger:
        if {cooldown::%player%} is not set:
            give player's tool to player
            add 60 to {wait_dupe::%player%}
            set {cooldown::%player%} to true
        else:
            message "&eYou Can't Dupe Now, You Must Wait %{wait_dupe::%player%}% Seconds!"
            stop



every second:
    loop all players:
        if {cooldown::%loop-player%} is not set:
            stop
        else:
            remove 1 from {wait_dupe::%loop-player%}
            if {wait_dupe::%loop-player%} is less than 1:
                delete {cooldown::%loop-player%}
 
Status
Not open for further replies.