mIRC Home    About    Download    Register    News    Help

Print Thread
#259287 29/10/16 04:57 PM
A
AsimUK
AsimUK
A
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?

#259288 29/10/16 06:51 PM
B
Bestpeff
Bestpeff
B
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
  }
}

#259298 01/11/16 04:06 PM
V
Vladabgd
Vladabgd
V
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-
  }
}

Last edited by Vladabgd; 01/11/16 04:18 PM.

Link Copied to Clipboard