Skip to content
MSN Addons

Protection list setup...

A TG007 community discussion started by Iceheart22.

Discussion 4 posts
Page 1 of 1
Open
Topic #2898 · 4 published posts · 775 views

I'm trying to setup a script so if specific people are given +o | +q my script will automatically deop them

 

am i doing something wrong here?

 

on *:OP:#:{
 if ($address($opnick,1) == $ulevel($address($opnick,1),noop)) {
   mode # -o $opnick
   msg # I don't think so:)
 }
}

 

on *:OWNER:#:{
 if ($address($opnick,1) == $ulevel($address($opnick,1),noop)) {
   mode # -q $opnick
   msg # I don't think so:)
 }
}

 

I know I'm probably just overlooking something but im really confused with this

Try:

if ($level($address($opnick,1)) == noop)

 

on *:OP:#:{
 if ($nick == $me) { .halt }
  if (noop isin $level($address($msn.decode($nick))) {
  mode # -o $opnick
  msg # I don't think so:)
}
}

on *:Owner:#:{
  if ($nick == $me) { .halt }
  if (noop isin $level($address($msn.decode($nick))) {
  mode # -o $opnick
  msg # I don't think so:)
}
}

 

or

on *:owner:#:{
 if ($nick == $me) { .halt }
 if ($level($address($nick,6)) == noop) {
 mode # -q $nick
 msg # I don't think so:)
}
}

 

It depeneds on how u add them on ur user list if its $nick,1 or $nick,6

Edited Feb 18, 2005 4:34 PM by bonTy

thank you clerix, that worked well