mIRC Home    About    Download    Register    News    Help

Print Thread
#96778 05/09/04 03:26 PM
Joined: Sep 2004
Posts: 2
S
smos Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Sep 2004
Posts: 2
I've made a very simple remote kicking script, but i don't want that person that uses it to kick people that are on userlist (ulevel = friend)
the command is !kick $$2 $$3-
and i'm looking for a way to check if $$2 on my friends list and if so to halt.
so far I've got:
Code:
on allowkick:TEXT:!kick*:#belgium: {
  if ($$2 ison #Belgium) { 
    if ($$2 isop #belgium) { halt }
    if ($$2 isvoice #belgium) { halt }
    k $$2 $$3- $+ ..kick by $nick $+ 
  } 
}  


it doesn't kick ops and voices but if a friend isn't opped or voiced i don't want him to be kicked smile

#96779 05/09/04 04:23 PM
Joined: Aug 2004
Posts: 101
D
Vogon poet
Offline
Vogon poet
D
Joined: Aug 2004
Posts: 101
if ($$2 isop #belgium) || ($$2 isvoice #belgium) || $level($address($$2,5)) == friend { halt }


Maybe I wake up one day to notice that all my life was just a dream!
#96780 05/09/04 05:32 PM
Joined: Sep 2004
Posts: 2
S
smos Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Sep 2004
Posts: 2
thanks!
it works smile


Link Copied to Clipboard