Page 1 of 1

Welcom Messages?

Posted: 09 Feb 2006, 04:49
by josh
Welcome Messages: are they possible? I would like to send a message to a user as they log into a room or a zone. I can't see anything in the documentation about it.

Posted: 09 Feb 2006, 08:23
by Lapo
Hello and welcome,
we don't have a specific "method" for welcome messages but it would be quite simple to create it.

If the message is the same for all you could even implement it on the client side. As soon as a user joins a room for the first time just show the welcome message. No server side work needed :D

Alternatively, if the welcome message changes often, you could implement it in a server side extension.
When the user successfully login you can send the welcome message inside the login response coming from the server.

You will need SmartFoxServer PRO, and you could learn more about custom logins in chapter 8.5 of our docs ( http://www.smartfoxserver.com/docs/ )

Hope it helps :)