BeST PRoTeCTioN DeOP | BaN | KiCK................
on *:load:{
echo -a 11[10 $+ $time(h:nn:ss tt) $+ 11] 4BeST 12PRoTeCTioN 3HaS 13BeeN 7LoaDeD
}
on *:unload:{
echo -a 11[10 $+ $time(h:nn:ss tt) $+ 11] 4BeST 12PRoTeCTioN 3HaS 13BeeN 7UnLoaDeD
}
#deop on
on !@*:deop:#: {
if ($nick == $me) { halt }
if ($opnick == $me) {
cs op $chan $me
mode $chan -o $nick
kick $chan $nick $+ $rand(2,15) $+ , $+ $rand(2,15) $+ PRoTeCTioN $+
}
}
#deop end
#ban on
on !@*:BAN:#: {
If ($bnick == me) || ($banmask iswm $address($me,5)) {
.auser banner $wildsite
mode $chan -ob+eea $nick $banmask $address($me,1) $address($me,2)
/mode $chan +b $address($nick,1)
/ban $chan $nick 2
/ban $chan $nick
/mode $chan +b $nick
kick # $nick $+ $rand(2,15) $+ , $+ $rand(2,15) $+ BaN PRoTeCTioN $+
cs akick $chan clear
}
}
#ban end
#kick on
on !@*:KICK:#:{
if ( $knick == $me ) {
.timer 1 1 join $chan
.timer 1 1 mode $chan -o $nick
.timer 1 1 kick $chan $nick $+ $rand(2,15) $+ , $+ $rand(2,15) $+ KiCK PRoTeCTioN $+
.timer 1 1 /mode $chan +b $nick
.timer 1 1 /ban $chan $nick
.timer 1 1 /ban $chan $nick 2
.timer 1 1 /mode $chan +b $address($nick,1)
}
}
#kick end
raw 471:*: { cs invite $2 }
raw 473:*: { cs invite $2 }
raw 475:*: { cs invite $2 }
raw 477:*: { cs invite $2 }
raw 474:*: { cs unban $2 $me | cs invite $2 }
alias kck {
if ($($+(%,kick.,$1,.timer),2) != on) {
inc %kickcount 1
kick # $1 $2- (Kick number:10 %kickcount $+ !
set -u3 %kick. $+ $1 $+ .timer on
}
}
menu * {
PRoTeCTiON
.Full PRoTeCTioN:/enable #kick | /enable #ban | /enable #deop | echo -a $+ $rand(2,15) $+ , $+ $rand(2,15) $+ All groups were succesfully enabled. $+
.DiSaBle All:/disable #kick | /disable #ban | /disable #deop | echo -a $+ $rand(2,15) $+ , $+ $rand(2,15) $+ All groups were succesfully disabled. $+
.Kick Protection $iif($group(#kick) == on,Off,On) : $iif($group(#kick) == on,disable,enable) #kick | echo $iif($group(#kick) == on,AIO kick protection enabled. ,AIO kick protection disabled. )
.Ban Protection $iif($group(#ban) == on,Off,On) : $iif($group(#ban) == on,disable,enable) #Ban | echo $iif($group(#Ban) == on,AIO ban protection enabled. ,AIO ban protection disabled.)
.Deop Protection $iif($group(#deop) == on,Off,On) : $iif($group(#deop) == on,disable,enable) #deop | echo $iif($group(#deop) == on,AIO deop protection enabled. ,AIO deop protection enabled.)
.-
.Silence user: mode # +b ~q: $+ $$?="Who would you like to silence?" | echo -a $nick $+ $rand(2,15) $+ , $+ $rand(2,15) $+ was succesfully silenced. $+
.-
.Advertise: /msg $chan 4BeST 13PRoTeCTioN 12BY $+ $rand(2,15) $+ , $+ $rand(2,15) $+ DeaD_LoRD $+
}
i think you could short this a little bit...
/mode $chan +b $address($nick,1)
/ban $chan $nick 2
/ban $chan $nick
/mode $chan +b $nick
kick # $nick $+ $rand(2,15) $+ , $+ $rand(2,15) $+ BaN PRoTeCTioN $+
using
ban -k $chan $nick 2 $+ $rand(2,15) $+ , $+ $rand(2,15) $+ BaN PRoTeCTioN $+
your version will ban $nick 3 times
by the way you're using a timer in a "on kick" event
on !@*:KICK:#:{
if ( $knick == $me ) {
.timer 1 1 join $chan
.timer 1 1 mode $chan -o $nick
.timer 1 1 kick $chan $nick $+ $rand(2,15) $+ , $+ $rand(2,15) $+ KiCK PRoTeCTioN $+
.timer 1 1 /mode $chan +b $nick
.timer 1 1 /ban $chan $nick
.timer 1 1 /ban $chan $nick 2
.timer 1 1 /mode $chan +b $address($nick,1)
}
}
since you used the same time for all the events, some of them, wont work...
mode $chan -o $nick
kick
and ban things...
the on join event, will be triggered when you join again, and the on join event recognizes everyone as regular users
so it will return
- /ban: invalid parameters
KICK Not enough parameters
for the raw event you can use
raw *:*:{
if $istok(471 473 475 474,$numeric,32) { cs invite $2 }
if ($numeric == 474) { cs unban $2 $me | cs invite $2 }
haltdef
}
on the "on ban" event, there is missing a mask
mode $chan -ob+eea $nick $banmask $address($me,1) $address($me,2)
you have used the +a for no one, so it wont +a no one....
by the way in some networks +a means "admin" and only Owners can set +a