This is a modified list ops might need to be edited a bit and I know that using a while statment would be best but this should do the trick. Check the mIRC help files on how to use a while statment and the if-then-else for the isop statment. these will help.

Alias MSGOPS {
echo 4 * Notifying Op's on #
set %i 1
:next
set %nick $nick(#,%i)
if %nick == $null goto done
if %nick isop # MSG $1-
inc %i
goto next
:done
echo 4 * End of Ops list
}