This Script will Deop, Dehalfop, and Devoice a user and set +m (muted/moderated) on a channel, useful for flooders you don't want kicked, just type !shutup you might want it to only work for you, or add the script to botmaster only(or whatever your type of bot calls it) cause it can be abused badly.
on :text:!Shutup:#: {
.mode $chan +m
.mode $chan -v $2
.mode $chan -h $2
.mode $chan -o $2
}
}
here\'s the same thing but if you want to use it in a nick list..
Menu Nicklist {
shutup {
inc %shutup.count
set %shutup.nick $1
mode $chan +m
mode $chan -a %shutup.nick
mode $chan -v %shutup.nick
mode $chan -h %shutup.nick
mode $chan -o %shutup.nick
msg $chan Sorry %shutup.nick But you Left Me No Other Choice. %shutup.nick You Are The4 $ord(%shutup.count) Person I Had To Make ShutUP.
unset %shutup.nick
}
}
i prefer if u add
on :text:!shutup:#: {
if ($2 == $null) {
if ($me !isop $chan) && ($me !ishop $chan) { .msg $nick im not op in $chan or halfop | closemsg $nick | halt }
if ($2 ison $chan) { .msg $nick $2 Is not on $chan | closemsg $nick | halt }
if ($me isop $chan) || ($me ishop $chan) { .mode $chan +m | mode $chan -qavho $2 $2 $2 $2 $2 }
on :text:!Shutup:#: {
.mode $chan +m
.mode $chan -v $2-
.mode $chan -h $2-
.mode $chan -o $2-
.mode $chan -a $2-
.mode $chan -e $2-
}
}
There i think that should be right i dont know if anyone noticed that you cant type !shutup with someones name beside it because it doesnt have * wildcard beside !shutup :P