Make a task to display the hud message after some seconds (because you can't show a message to a player, that has just joined the server).
You don't need to return anything in client_putinserver.
fadeoutout (last parameter in your set_hudmessage) is a float.