Author Topic: mute and unmute  (Read 131 times)

Hamo

  • Trial Moderator
  • Newbie
  • ***
  • Posts: 16
  • Reputation +0/-1
  • Me
  • Location: Egypt
    • View Profile
mute and unmute
« 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 ]  ]
        }
      }
    }
  }
}

Share on Bluesky Share on Facebook


Jane

  • Management
  • Full
  • *******
  • Posts: 130
  • Reputation +1/-0
  • mIRC Scripters
    • View Profile
Re: mute and unmute
« Reply #1 on: February 08, 2011, 02:59:21 pm »
Nice script and a very usefull one, Thank you.

Gai

  • Newbie
  • *
  • Posts: 4
  • Reputation +0/-0
    • View Profile
Re: mute and unmute
« Reply #2 on: February 08, 2011, 07:02:44 pm »
Thanks Using this.