mIRC Homepage
Posted By: Bleah__ !kick command - 'if' problems - 24/05/05 02:32 PM
if person is oped on #bla - check if oped, if not: ban (HALT?) - if not, /notice. If person in on #bla - if he is, ban - if he is not, /notice.

Code:
on *:TEXT:!kick*:#bla.crew:{
  if ($2 !isop #bla) { ban #bla $2 3 | kick #bla $2 You've been very naughty. | notice $nick Done. } 
  else { notice $nick User is oped. } 
  elseif ($2 !ison #bla) { ban #bla $2 3 | kick #bla $2 You've been very naughty. | notice $nick Done. } 
  else { notice $nick user not found. } 
}


As you can see, I'm a total newb at mirc scripting and I would appreciate any help figuring this out and I've tried a dozen possibilities and tried looking it up on google.

Thanks.
Posted By: mIRCManiac Re: !kick command - 'if' problems - 24/05/05 02:38 PM
Code:
on @*:TEXT:!kick &:#bla.crew: {
  if ($2 !ison #) notice $nick User not found.
  elseif ($2 isop #) notice $nick User is opped.
  else {
    ban -k # $2 3 You've been very naughty.
    notice $nick Done.
  }
}
Posted By: Bleah__ Re: !kick command - 'if' problems - 24/05/05 02:53 PM
Thanks.
Posted By: mIRCManiac Re: !kick command - 'if' problems - 24/05/05 03:17 PM
You're welcome smile
© mIRC Discussion Forums