on *:deop:#:{
if $opnick == $me && $nick ison $chan && $nick != $me {
set %nick $nick
.cs $chan op $me
.timer 1 2 .msg $chan I don't suggest you do that again.
.ban -ku $chan %nick kicks u for deop me :^_^ %nick $+ .
}
}
The line
.cs $chan op $me may need to be changed depending on the exact format that chanserv on that network requires.
on @*:JOIN:#ktm: {
msg $chan $nick $+ : You are about to be kicked.ask ur Q ..u cant idle here..
.timer 1 300 msg $chan Goodbye!
.timer 1 300 $iif($nick !isop $chan,inc %kick.number)
.timer 1 300 $iif($nick !isop $chan,.ban -ku $chan $nick)
.timer 1 300 msg $chan That was person number %kick.number to get kicked!
}
The original code you posted, kicked after 5 seconds, however you asked for 5 minutes,