Hi peeps!
This is the first time I've posted on this forum, I've read thru the forum for a long time, and now I really need your help.
I got this code;
on *:TEXT:!ts*:#gamerhuset: {
if ($nick isop #) {
.msg $chan Hejsa $2-
.halt
}
.msg $chan Hejsa $Nick
.ignore $nick
/timer 1 30 .ignore -r $nick
}
Since people are spamming !ts in the chat to spam the command, I used /ignore since I'm not the best coder in the world.
But, people have figured it out, and now the whole chat (200+) is spamming the command, making the chat unreadable.
How can I make it timed, so the command(s) can only be used 1 time for 30 seconds for everyone except OPs ?
I tried something like this, but it doesn't work
on *:TEXT:!test:#jokkebaby: {
if ((%floodalt) || ($($+(%,floodalt.,$nick),2)) || ($nick isop #)) {
msg $chan Dette er skrald12121.! $+
.halt
}
set -u30 %floodalt On
set -u30 %floodalt. $+ $nick On
msg $chan Dette er skrald.! $+
}
Also, I've searched on google for it and I didn't find anything that could help me. I might have searched for the wrong things, I'm not sure.