Discord Thread on chat cooldown

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

    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.

skUnity Discord

Site Manager
Aug 5, 2023
12,749
1
0
The skUnity Discord
discord.gg
Sup, i need cooldown on my skript, but idk how to do that.
My original skript is this:
`on chat:
loop all players:
if message matches loop-player's name:
wait 1 tick
play sound "ENTITYEXPERIENCEORB_PICKUP" to loop-player
send action bar "&aSomeone pinged you :O" to loop-player`

And i need to do that players can ping for example after 5 seconds and i created something like this, but its not working as i want to ?
`on chat:
loop all players:
set {mention.%player%.cooldown} to 5 seconds
if message matches loop-player's name:
if {mention.%player%.cooldown} is not set:
wait 1 tick
play sound "ENTITYEXPERIENCEORB_PICKUP" to loop-player
send action bar "&aSomeone pinged you :O" to loop-player
else:
send "&cYou cant ping that fast!"
cancel event`

Posted by: danrub from the skUnity Discord. View the thread on skUnity Discord here
 
Status
Not open for further replies.