mIRC Homepage
Posted By: zorin Need a little help :) - 07/09/03 08:47 PM
If someone says a word more than once it such a long time (30 seconds) Then that person would be kicked / banned..
Now, how should i do that? confused
Posted By: SladeKraven Re: Need a little help :) - 07/09/03 08:54 PM
I hope I understood correctly, you want something if someone says a word more than once, within 30 seconds it will kick ban them?
Code:
on 1:TEXT:*:#:{
  if ($me ! isop #) return 
  if ($nick isop #) return
  else {
    var %x = $strip($1-)
    inc -u30 %i. [ $+ [ $hash($nick $chan %x,32) ] ]
    if (%i. [ $+ [ $hash($nick $chan %x,32) ] ] == 5) {
      ban -u30 # $nick 2
      kick # $nick  Your kick message here.
    }
  }
}
Posted By: zorin Re: Need a little help :) - 07/09/03 09:13 PM
ye, that right, tnx laugh
Posted By: J0ke Re: Need a little help :) - 07/09/03 10:22 PM
for mIRC v6.1
Code:
on @1:TEXT:*:#:{
  if ($nick !isop #) { 
    var %x = $strip($1-)
    inc -u30 %i. [ $+ [ $hash($nick $chan %x,32) ] ]
    if (%i. [ $+ [ $hash($nick $chan %x,32) ] ] == 5) {
      ban -ku30 # $nick 2 Your kick message here.
    }
  }
}
Posted By: SladeKraven Re: Need a little help :) - 07/09/03 11:38 PM
Thanks for that dude, I haven't actually got round to reading mIRC 6.1 help file yet, I am still using 6.03.
© mIRC Discussion Forums