If the code will be server-sided, then the function can't be a clientCmd, unless you are calling it with commandToClient()
If the code is to be client-sided, then change messageClient to clientCmdChatMessage, clientCmdCenterPrint, or clientCmdBottomPrint.
(with all of the correct arguments, that is)