Skip to content
MSN Addons

Add/Remove to prot lvl

A TG007 community discussion started by sugarboy.

Discussion 4 posts
Page 1 of 1
Open
Topic #4823 · 4 published posts · 665 views

Kinda new to the whole scripting thing, and trying to right a protection trying to figure out where this is wrong.

 

User Protection
.Protect User: auser protected * $+ $remove($ial($snicks),$snicks) $snicks
.De-protect User: ruser protected * $+ $remove($ial($snicks),$snicks) $snicks

*Insert interesting signature here*

try this

 

User Protection
.Protect User : muser -a protected $snicks
.De-Protect User : muser -r protected $snicks

 

Put that into popups, and this into remotes

 

alias muser {
 var %l = 1 | while ($gettok($3,%l,44)) {
   var %i = $ifmatch
   $iif($1 == -a,auser,ruser) $2 $ial(%i).addr %i
   inc %l
 }
}

i actually tried it a different way and it worked. I had another question though.

 

How can i have it so i can turn this part on and off

 

on protected*:deop:#:{
 /kick # $nick :-P Bia Bia
}

*Insert interesting signature here*

.Deop Protection
..$iif($group(#deop) == on,$style(1)) On: .enable #deop | msg # Deop Protection On
..$iif($group(#deop) == off,$style(1)) Off: .disable #deop | msg # Deop Protection Off

above goes in popups.. scripts editor , then popups


#deop off
on protected*:deop:#:{ kick # $nick :-P Bia Bia }
#deop end

Edited Sep 22, 2005 7:41 AM by Seph