mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 35
O
Om3gA Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Feb 2003
Posts: 35
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

Last edited by Om3gA; 15/03/03 05:31 PM.

Butterflies are random thoughts people have.
They Live, They Die, They Are Pointless.
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
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

Last edited by Cheech; 16/03/03 04:00 AM.
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
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 }




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Joined: Feb 2003
Posts: 35
O
Om3gA Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Feb 2003
Posts: 35
ty both very much laugh


Butterflies are random thoughts people have.
They Live, They Die, They Are Pointless.

Link Copied to Clipboard