Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Gai
« on: February 08, 2011, 07:02:44 pm »

Thanks Using this.
Posted by: Jane
« on: February 08, 2011, 02:59:21 pm »

Nice script and a very usefull one, Thank you.
Posted by: Hamo
« on: February 08, 2011, 02:54:59 pm »

full mute and unmute script was made by me ( used some help from [MM]IKKE )

note: i deleted the owners code from it so u can add urs :)

Code: [Select]
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 ]  ]
        }
      }
    }
  }
}