mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2005
Posts: 7
B
Bleah__ Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Apr 2005
Posts: 7
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.

Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
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.
  }
}

Joined: Apr 2005
Posts: 7
B
Bleah__ Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Apr 2005
Posts: 7
Thanks.

Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
You're welcome smile


Link Copied to Clipboard