mIRC Homepage
Posted By: smos recognizing a userlevel - 05/09/04 03:26 PM
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
Posted By: dr_Eamer Re: recognizing a userlevel - 05/09/04 04:23 PM
if ($$2 isop #belgium) || ($$2 isvoice #belgium) || $level($address($$2,5)) == friend { halt }
Posted By: smos Re: recognizing a userlevel - 05/09/04 05:32 PM
thanks!
it works smile
© mIRC Discussion Forums