mIRC Homepage
Posted By: Reader Playing sound on:op event - 14/03/20 11:15 PM
Hi

I wrote a script like this:

on *:op:#: {
if ($opnick == $me) /splay op.mp3
}

Sound is playing when the operator gives it later, but it does not play when he enters the channel and becomes an operator, so i wrote the following code but it doesn't work:

on me:*:join:#:{
if ($me isop $chan) /splay op.mp3
}

I would be happy if you help me
Have a nice day
Posted By: TECO Re: Playing sound on:op event - 18/03/20 04:17 AM
Only with this small code, it works both ways. When you join a channel and receive OP and when someone gives you OP status.
Code
on *:op:#: {
  if ($opnick == $me) { .splay op.mp3 }
}
© mIRC Discussion Forums