mIRC Homepage
Posted By: Om3gA anti-op script for chan protection - 15/03/03 05:02 PM
i need help writing a script addon so that users who shouldnt be op'd will be deop'd immediatly on op

any help will be appreciated smile

on 30:OP:#:/mode $chan -o $opnick
on 30:SERVEROP:#:/mode $chan -o $opnick

.Anti-Op
..Add:{ .guser -a 30 $$1 3 | echo 3 -a *** Added $$1 To Anti-Op List }
..Del:{ .ruser 30 $$1 3 | echo 3 -a *** Removed $$1 From Anti-op List }

is what i have so far thanks in advance
Posted By: Cheech Re: anti-op script for chan protection - 16/03/03 03:50 AM
might not be what you want but most chanserv's have a secure op option

just as a possible alternate solution .
Code:
 
 on 1:OP:#channel: {
 if ($opnick isin $read(opnicks.txt, w, $opnick)) { msg $chan Welcome Back $opnick }
 else /mode $chan -o $opnick
 }
 

all you will need is to create a opnicks.txt with the nicks that are supposed to have ops hope that helps
Posted By: Othello Re: anti-op script for chan protection - 16/03/03 04:30 AM
Here is a add on to your script I have added a ON/OFF switch to the script

.Anti-Op
..Anti-Op %auto.op :{ if ( %auto.op == ON ) { .set %auto.op OFF | .auto OFF | echo 3 -a *** Anti-Op 4OFF.... } | else { .set %auto.op ON | .auto ON | echo 3 -a *** Anti-Op 4ON.... } }
..-
..Add:{ .guser -a 30 $$1 3 | echo 3 -a *** Added $$1 To Anti-Op List }
..-
..Del:{ .ruser 30 $$1 3 | echo 3 -a *** Removed $$1 From Anti-op List }
Posted By: Om3gA Re: anti-op script for chan protection - 16/03/03 05:58 PM
ty both very much laugh
© mIRC Discussion Forums