mIRC Home    About    Download    Register    News    Help

Print Thread
B
Bleah__
Bleah__
B
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.

M
mIRCManiac
mIRCManiac
M
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.
  }
}

B
Bleah__
Bleah__
B
Thanks.

M
mIRCManiac
mIRCManiac
M
You're welcome smile


Link Copied to Clipboard