for the ame you can use: on *:action:*:#:{ echo -a $nick sent me an action. }
/help on action
for the amsg i don't know since it's like any other text send to the channel. Same goes for /ame . it's sent the same way as /me, only that you send it to more then one channel.