It will only kick non-voiced user out from a chan with a timer. u can rip it as u like.
menu * {
Masskick -v {
msg $chan Mass Kicking Normal User ..
mode $chan +i
var %k = $nick(#,0,a,ov)
while (%k) && ($me isop $chan) {
set %k.number $calc(%k.number + 1)
kick $chan $nick(#,%k,a,ov) Masskick!!1 ┌∩â”(â—£_â—¢)┌∩â”
dec %k
}
timer 1 15 /mode $chan -i
}
}
Your current code will kick yourself out. You want to make sure the message doesn't get sent every time when they are voiced. You can just use the r instead of a,ovh, and last but not least, you can use the local variable instead of the global:
menu * {
Masskick -v {
$iif($nick(#,0,r),msg # Mass Kicking Normal User...)
mode # +i
var %k = $nick(#,0,r)
while ($me isop #) && (%k) && ($v1 != $me) {
var %k.number = $calc(%k.number + 1)
kick # $nick(#,%k,r) Masskick!!1 ┌∩â”(â—£_â—¢)┌∩â”
dec %k
}
.timer 1 15 mode # -i
}
}