Anti Op { permanet }

By }{exer on Jun 10, 2009

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 }
;
;

Comments

Sign in to comment.
|[Arkham]|   -  Jun 11, 2009

WorldDMT: yeah thats what im talking about.. i mean its better to put cs deop command only on op event.. in that way script can make sure that nick were about to be deopped is in an op`s state..

 Respond  
Jonesy44   -  Jun 11, 2009

/ban much?

 Respond  
FordLawnmower   -  Jun 11, 2009

Cheers }{exer :)

 Respond  
WorldDMT   -  Jun 11, 2009

u r right arkham :)

but if he dont have an access u'll have a error msg only

 Respond  
|[Arkham]|   -  Jun 11, 2009

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?

 Respond  
WorldDMT   -  Jun 11, 2009

welcome }{exer

 Respond  
}{exer   -  Jun 10, 2009

WorldDMT your Version is fine too

Thank you for this

 Respond  
Kirbeh_Pr0nz   -  Jun 10, 2009

for some reason when i tried putting them into one menu, it failed epicly, but in separate menus, it works just fine, idk.

 Respond  
WorldDMT   -  Jun 10, 2009

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
 Respond  
Kirbeh_Pr0nz   -  Jun 10, 2009

np =]

 Respond  
}{exer   -  Jun 10, 2009

yea, Kirbeh_Pr0nz yours looks better :)
I am not a Master in MSL !

Thank you :)

 Respond  
Kirbeh_Pr0nz   -  Jun 10, 2009
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. }
  -
} 
 Respond  
}{exer   -  Jun 10, 2009

Yes a Error. Should mean "Permanent"
Sry for :(

 Respond  
Kirbeh_Pr0nz   -  Jun 10, 2009

Do you mean "Permanent" ? unless there's something that i dont know named permanet. idk
This is very messy, but i guess it gets the job done.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.