#I tryed making a skript to add ChatCooldown into the game for default players but it doesnt work..

1 messages · Page 1 of 1 (latest)

frosty marten
#

This is the skript : on chat:
player don't have permission "chat.admin":
set {_chat} to difference between {chat.%player%.cooldown} and now
if {_chat} is less than 3 seconds:
message "&cYou must wait &e%difference between 2 seconds and {_chat}% &cto chat again!"
cancel event
set {chat.%player%.cooldown} to now
stop

#

Can someone help me please

slow onyx
#

are there any error messages?

fresh reef
#

use code blocks (```code here```)

#

use list variables and uuids

#

why are you checking for 3 seconds then saying 2 seconds?

#

line 2 should have an "if", and it's "doesn't" not "don't"

#

i'd also set the cooldown in an else, that way it doesnt reset the cooldown

#

the stop is also useless

frosty marten
#

alr thanks