mIRC Homepage
Posted By: Garou masskick script - 24/08/07 12:38 PM
Can anyone make or have something for masskick protection?
Posted By: Lpfix5 Re: masskick script - 24/08/07 02:22 PM
Originally Posted By: Garou
Can anyone make or have something for masskick protection?


Code:
alias EnProt { 
  if ($1 == on) { %e.prot = on | %e.count = 0 }
  elseif ($1 == off) { %e.prot = off }
}

on *:KICK:#:{
  if (!%e.time) { .timer 1 5 /unset %e.det | %e.nick = %e.count }
  elseif (%e.prot == on) && (%e.count > 3) { ban -u300 $nick 3 | kick # $nick DO NOT MASSKICK EVER IN THIS CHANNEL 5MIN BAN }
}


Here's something that should work (Not tested)
Posted By: hixxy Re: masskick script - 24/08/07 05:08 PM
That won't work because you never set %e.time
Posted By: Lpfix5 Re: masskick script - 24/08/07 08:02 PM
Originally Posted By: hixxy
That won't work because you never set %e.time


my bad

Code:

alias EnProt { 
  if ($1 == on) { %e.prot = on | %e.count = 0 }
  elseif ($1 == off) { %e.prot = off }
}

on *:KICK:#:{
  if (!%e.time) { .timer 1 5 /unset %e.det | %e.nick = %e.count | .timer 1 5 /set %e.time on }
  elseif (%e.prot == on) && (%e.count > 3) { ban -u300 $nick 3 | kick # $nick DO NOT MASSKICK EVER IN THIS CHANNEL 5MIN BAN }
}


It would of stil lworked because i did !%e.time not %e.time except it would of always been constant and never close lol
Posted By: Garou Re: masskick script - 24/08/07 10:37 PM
does it have to be set on manual?
whats the trigger to set of the alias EnProt?
Posted By: xDaeMoN Re: masskick script - 24/08/07 11:40 PM
/enprot on|off
© mIRC Discussion Forums