Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: ChemiKhazi on May 23, 2013, 05:12:46 AM

Title: Communicating between players in different channels
Post by: ChemiKhazi on May 23, 2013, 05:12:46 AM
Is there a way to send messages to players who are in different channels? I need it to keep a list of enemies that have been defeated in different channels synchronized.
Title: Re: Communicating between players in different channels
Post by: ArenMook on May 23, 2013, 11:04:15 AM
You can send private messages by specifying a player as target.
Title: Re: Communicating between players in different channels
Post by: ChemiKhazi on May 24, 2013, 09:51:42 AM
Is there a way to list all the players on a server?
Title: Re: Communicating between players in different channels
Post by: SketchWork on May 24, 2013, 11:13:57 AM
You can get the list of players in the current channel by checking TNManager.players.
Title: Re: Communicating between players in different channels
Post by: ArenMook on May 24, 2013, 04:40:07 PM
If you want the server to send you the list of all connected players, you will need to add a custom packet to request it, and handle it on the server.