Apparently, there is nothing wrong with the code. To mute someone, you should use
/mute <nickname> - the script takes care of the rest. Are you an @Op in the channel? Because if you're not, then the script won't work.
Btw, you can also replace
If ($1 ison #) { for
if ($me isop #) && ($1 ison #) { - this way the code only works if you are opped in the channel.
Also try typing
/remote on - this will turn the scripts on, if they are off.
Hope this helps,
Zyzzyx
