simply type !kon to activate the snippet and !koff to take it off
on *:text:!kon*:#: { if ($nick isop $chan) {
set %kick $2
msg $chan $2 next time you get talk you will be kicked
}
}
on *:text:!koff:#: { if ($nick isop $chan) {
msg $chan %kick you have been taken off the kick list
unset %kick
}
}
on *:text:*:#: { if ($nick == %kick) { kick # %kick
}
}
You can use this:
on *:text:*:#: {
if (%kicknick. [ $+ [ $nick ] ]) kick # $nick You're not allowed to talk.
if ($1 = !kon && $nick isop #) {
if (%kicknick. [ $+ [ $2 ] ]) { msg # That person is already added. | halt }
set %kicknick. $+ [ $2 ] ] | msg # $2 next time when you talk you will be kicked.
}
if ($1 = !koff && $nick isop #) {
if (!%kicknick. [ $+ [ $2 ] ]) { msg # $nick that person is not added. | halt }
msg # $2 has been removed out kicklist. | unset %kicknick. $+ [ $2 ] ]
}
}
I am a n00b here and am struggling with getting these to work in mIRC. I have a room, have some nicks set as SOPs and AOPs. I have tried several of these great scripts and can't get them to work. Do I just copy this into the Remote tab and it will work as long as the nick is a op? Sorry for the lame misunderstanding, on my part.
I even tried to copy this in my "unloaded" blank Remote, save it to a ini file, reload it and it doesn't work. even after a restart of mIRC. Do I need to declare any global variables for my channel or ops?
Is there a place for mIRC scripting / using 101? :D
http://www.zigwap.com/mirc/clueless