This snippet (steal) anyone permanet the OP Status maybe for fun
or is a Bad Person in Channel !
Need Access Level 5 as Minimum for Work !
Perhaps in some Networks are other Anope Rules and need to fix by yourself then
Comments are Welcome at all
menu channel,Nicklist {
-
.Anti OP
..Deop give over Me
...$iif(%AntiOP == on,$style(2),$style(0)) Turn On:/Anti | msg $chan 4Anti OP System is starting now.
...$iif(%AntiOP == on,$style(2),$style(0)) Turn Off:/unset %Anti | msg $chan 4Anti OP System stops now.
-
}
alias Anti {
set %Anti $$?"Who ?"
if (%anti isop $chan) { /mode # -o %Anti }
}
;
on *:OP:#:{ if ($opnick == %anti) mode $chan -o %anti }
;
;
;
menu channel,Nicklist {
-
.Anti OP
..Deop give over ChanServ
...$iif(%CAntiOP == on,$style(2),$style(0)) Turn On:/CAnti | msg $chan 4CAnti OP System is starting now.
...$iif(%CAntiOP == on,$style(2),$style(0)) Turn Off:/unset %CAnti | msg $chan 4CAnti OP System stops now.
-
}
alias CAnti {
set %CAnti $$?"Who ?"
if (%CAnti isop $chan) { /cs deop $chan %CAnti }
}
;
on *:JOIN:#:{ if (%CAnti) cs deop $chan %CAnti }
;
;
i see u use mode -o $opnick as the deop command. instead use "on *:OP:#" i think more wisely if u use "on @:OP:#" so firstly script will make sure that u were an op in channel before you set -o mode on the $opnick
since only an op`s can set mode -o on some nick
on *:JOIN:#:if (%CAnti) cs deop # $v1 is this event really works? i mean what if the nick that join not have an op?
hi
why 2 menu??
menu channel,Nicklist {
-
.Anti OP
..Deop give over Me
...Turn $iif(%AntiOP,Off,On):Xme
..Deop give over ChanServ
...Turn $iif(%CAntiOP,Off,On):Xchan
-
}
alias Xme {
if (!%antiop) {
set %anti $$?"Who ?"
if (%anti isop #) mode # -o $v1
set %antiop 1
}
else unset %Anti %antiop
msg # 4Anti OP System $iff(%antiop,is starting,stops) now.
}
alias Xchan {
if (!%CAntiOP) {
set %CAnti $$?"Who ?"
if (%CAnti isop #) { cs deop # $v1 | mode # -o $v1 }
set %CAntiOP 1
}
else unset %CAntiOP %CAnti
msg # 4CAnti OP System $iff(%CAntiOP,is starting,stops) now.
}
on @*:OP:#:if ($opnick == %anti) mode # -o $v1
on *:JOIN:#:if (%CAnti) cs deop # $v1
on *:OP:#:{ if ($opnick == %anti) mode $chan -o %anti }
on *:JOIN:#:{ if (%CAnti) cs deop $chan %CAnti }
alias Anti {
set %Anti $$?"Who ?"
if (%anti isop $chan) { /mode # -o %Anti }
}
alias CAnti {
set %CAnti $$?"Who ?"
if (%CAnti isop $chan) { /cs deop $chan %CAnti }
}
menu channel,Nicklist {
-
.Anti OP
..Deop give over Me
...$iif(%AntiOP == on,$style(2),$style(0)) Turn On: { /Anti | msg $chan 4Anti OP System is starting now. }
...$iif(%AntiOP == on,$style(2),$style(0)) Turn Off: { /unset %Anti | msg $chan 4Anti OP System stops now. }
-
}
menu channel,nicklist {
-
.Anti Op
..Deop give over ChanServ
...$iif(%CAntiOP == on,$style(2),$style(0)) Turn On: { /CAnti | msg $chan 4CAnti OP System is starting now. }
...$iif(%CAntiOP == on,$style(2),$style(0)) Turn Off: { /unset %CAnti | msg $chan 4CAnti OP System stops now. }
-
}