how to determine the room that the user join when the user log in for the first time?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Toni83
Posts: 7
Joined: 21 Jun 2019, 21:15

how to determine the room that the user join when the user log in for the first time?

Postby Toni83 » 21 Jun 2019, 21:43

am using SFS pro
how can I determine the room that the user join when the user log in for the first time?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: how to determine the room that the user join when the user log in for the first time?

Postby Lapo » 22 Jun 2019, 07:06

Hi,
typically you have defined a number of Rooms in your Zone under the config.xml file.
One of these room can be set to "autoJoin". If an autoJoin Room exists and the client calls the autoJoin() method then he will be joined there.
https://www.smartfoxserver.com/docs/1x/ ... l#autoJoin

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Toni83
Posts: 7
Joined: 21 Jun 2019, 21:15

Re: how to determine the room that the user join when the user log in for the first time?

Postby Toni83 » 22 Jun 2019, 08:54

What if I want to make males join a room different from the room which females join in the first login (when they log in for the first time )?
After that, the room which they log out will be stored to join it when they log in again .

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 34 guests