You need to have the button activate a server command, and that command would do the announcement.
so for example, in the client code
function TestGUIButtonPush()
{
commandToServer('announcemyname');
}
and in the server code:
function serverCmdAnnounceMyName(%Client)
{
announce("\c3" @ %Client.name SPC "\c6Has pressed the button!");
}