mIRC Homepage
Posted By: AsimUK Command help - 29/10/16 04:57 PM
Hello does anyone know of a script for when I want to timeout/ban a user I can just do !b username and it responds with timing out/banning the user?
Posted By: Bestpeff Re: Command help - 29/10/16 06:51 PM
Try these:

Code:
on *:text:!t:#CHANNELNAME:{
  if ($nick == $me) {
    msg $chan .timeout $1
  }
}


If you're using !b for banning:

Code:
on *:text:!b:#CHANNELNAME:{
  if ($nick == $me) {
    msg $chan .ban $1
  }
}
Posted By: Vladabgd Re: Command help - 01/11/16 04:06 PM
I belive it sould go like this:
ex You say to chan !b/!t nick Spammer have no place here.
Code:
on *:text:!t *:#:{
  if (($2 != $me)&&($2 !isop #)) {
    ban -ku300 $2 1 $3-
  }
}


Code:
on *:text:!b *:#:{
  if (($2 != $me)&&($2 !isop #)) {
    ban -k $2 1 $3-
  }
}
© mIRC Discussion Forums