just add a variable that prevents the usage
if(%floodawesome) { return }
set -u60 %floodawesome On
if you want to prevent single users from spamming it aswell you can add variables for each user
in this case every user that uses it has 60 second to wait while someone else can use the command after 30 seconds
if ($($+(%, floodawesome.,$nick),2) || (%floodawesome)) { return }
set -u60 %floodawesome. $+ $nick On
set -u30 %floodawesome On
Hope i could help :)
So like this:
on :TEXT:!awesome:#: msg # $nick is $r(1,100) $+ % awesome today! {
if(%floodawesome) { return }
set -u60 %floodawesome On
}
If that works is there any way I could show duration of the flood protection so it counts down, and how do I notice the person "You have to wait DURATIONHERE to use this command again."
on *:TEXT:!awesome*:#: {
if ($($+(%, floodawesome.,$nick),2) || (%floodawesome)) { return }
set -u60 %floodawesome. $+ $nick On
set -u30 %floodawesome On
msg # $nick is $r(1,100) $+ % awesome today!
}
Thats how you would put it in.
Im not sure though how you would show the timer.
I got a similar script somewhere, if i find something i will tell you.
That puts a timer before the message, I want a timer that /notices $nick and says "You have to wait xAmounOfTime to use this command" And counts down. I have a timer but don't know how to fit it in, so I would just like a new timer for both of the scripts.