This is a simple code that just "Mute's" The user of your choice.
You must be an Half-Op Or higher to use this script.
PASTE THE BELOW SCRIPT IN THE ALIASES SECTION OF THE SCRIPTS EDITOR
This can be activated by typing "/mute " Once the Script has been entered into the ALIASES section you can goto the Remote Section and paste the following:
menu nicklist {
Mute User:/mute $$1
}
<u>**PLEASE READ THE INTRODUCTION FIRST!**</u>
mute {
say $1-, You are now muted from # until Further Notice.
mode # +m
mode # -havoqe $1- $1- $1- $1- $1- $1-
}
menu nicklist {
$iif(%muted [ $+ [ $1 ] ],Unmute,Mute) $1: $iif(%muted [ $+ [ $1 ] ],unmute,mute) $1
Unmute All { unset %muted* | mode # -m | say Everyone is now unmuted from # $+ . }
}
alias unmute unset %muted [ $+ [ $1 ] ] | say $1 is now unmuted from # $+ .
on *:join:#:{
if (%muted [ $+ [ $nick ] ] == muted) {
timer 1 5 mode # -havoqe $str($nick $chr(32),6)
msg $chan $nick $+ , You are muted from # until Further Notice.
}
}
alias mute {
var %x = 1
while ($nick($active, %x)) {
mode # +vvv $nick($active, %x) | inc %x 1
if (%muted [ $+ [ $nick($active, %x ] ] == muted) mode # -v $nick($active, %x)
}
mode # +m
mode # -havoqe $str($1- $chr(32),6)
say $1 $+ , you are now muted from $chan until further notice.
set %muted [ $+ [ $1 ] ] muted
}
that should work