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