Page 1 of 1
send user in another room
Posted: 10 Oct 2006, 10:40
by beate
hello,
I would like to send, as moderator, a user into another room. is this possible?
best regards beate
Posted: 10 Oct 2006, 10:48
by beate
ups, sorry i was blind
_server.joinRoom() is the solution, right?
best regards beate
Posted: 10 Oct 2006, 12:32
by Virusescu
Yep, you're right.
Just build an en extension that will do that action for you if you are a moderator.
Posted: 10 Oct 2006, 13:41
by beate
thanks Virusescu,
i have build the extensions and the code works fine. the moderator can now send users in other rooms.
but now i have a new little problem
i will inform all other users in the room (after _server.joinRoom) , that a new user joins the room, but the 'smartfox.onUserEnterRoom' event dont fired ... only 'smartFox.onUserCountChange' event fired.
best regards beate
Posted: 10 Oct 2006, 15:36
by Virusescu
If you look closer to the
joinRoom server method you will notice the last parameter "sendUpdate"
You need to give it a value of
true to do his magic

.
Good luck
Posted: 10 Oct 2006, 16:25
by beate
THANKS !!!
best regards