HTML Code:
if (actionserverside) {
}
Is what you want.
Or, if you are using GScript2 (which it looks like you may... from that params[]).
HTML Code:
function onActionServerSide()
{
}
It also may be a better idea to do the triggeraction before the say2, as say2 probably is blocking (eg; the triggeraction does not occur until after the player has read the entire message and closed it).