Posted by: Gai
« on: February 08, 2011, 07:02:44 pm »Thanks Using this.

on *:text:!mute*:#:{
if ( $me isop $chan ) {
if ( $2 == $null ) { msg $chan 4usage:5!mute <nick>
halt }
if ( %mute [ $+ [ $2 ] ] == 1 ) { msg $chan 12 $+ $2 5is already Muted
halt }
if ( $2 !ison $chan ) { msg $chan 12 $+ $2 5isn't in 12 $+ $chan 5Right Now
Halt }
/mode $chan +b ~q: $+ $address($2,2)
set %mute [ $+ [ $2 ] ] 1
if ($chr(38) isin $nick($chan,$2).pnick) { set %Prot [ $+ [ $2 ] ] 1
}
if ( $2 isop $chan ) { set %op [ $+ [ $2 ] ] 1
}
if ( $2 ishop $chan ) { set %hop [ $+ [ $2 ] ] 1
}
mode $chan -qaohv $2 $2 $2 $2 $2
/msg $chan 12 $+ $2 5have been muted by 12 $+ $nick
}
}
}
}
on *:text:!unmute*:#:{
if ( $me isop $chan ) {
if ( $2 == $null ) { msg $chan 4 usage: 5!unmute <nick>
halt
}
if ( %mute [ $+ [ $2 ] ] == $null ) { msg $chan 12$2 12isn't Muted
halt }
/mode $chan -b ~q: $+ $address($2,2)
unset %mute [ $+ [ $2 ] ]
/msg $chan 12 $+ $2 5have been unmuted by 12 $+ $nick
if ( %prot [ $+ [ $2 ] ] == 1 ) {
mode $chan +voa $2 $2 $2
unset %Prot [ $+ [ $2 ] ]
}
if ( %op [ $+ [ $2 ] ] == 1 ) {
mode $chan +vo $2 $2
unset %op [ $+ [ $2 ] ]
}
if ( %hop [ $+ [ $2 ] ] == 1 ) {
mode $chan +vh $2 $2
unset %hop [ $+ [ $2 ] ]
}
}
}
}
}