Archer91SM, the code trill has shown you already has a dynamic trigger control variable for a delay of 4 seconds, but it doesn't account for the user that triggers it, so people can still flood it. I have edited the code here:
on !*:kick:#:kbcounter
on !*:ban:#:kbcounter
on $*:text:/^!k(counter restart|status)$/iS:#:kbcounter
alias -l kbcounter {
if $event = text {
if $nick isop # && !$($+(%,f,#),2) {
inc -u4 $+(%,f,#)
if $regml(1) = counter restart {
unset %blitzz*
msg # Kick/Ban Counter is restarted now totalstats is zero.
}
else {
msg # 4Total kick/ban status on channel # $+ : $iif($($+(%,blitzz,kick,#),2),$v1,0)$&
Kick(s). - $iif($($+(%,blitzz,ban,#),2),$v1,0) Ban(s).
}
}
}
else inc $+(%,blitzz,$event,#)
}
I wouldn't recommend dynamic variable for a trigger control, because you can still get flooded if they use a bot to bombard you with different proxies, various idents and nicknames.