Author Topic: Communicating between players in different channels  (Read 2732 times)

ChemiKhazi

  • Guest
Communicating between players in different channels
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Communicating between players in different channels
« Reply #1 on: May 23, 2013, 11:04:15 AM »
You can send private messages by specifying a player as target.

ChemiKhazi

  • Guest
Re: Communicating between players in different channels
« Reply #2 on: May 24, 2013, 09:51:42 AM »
Is there a way to list all the players on a server?

SketchWork

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 44
    • View Profile
Re: Communicating between players in different channels
« Reply #3 on: May 24, 2013, 11:13:57 AM »
You can get the list of players in the current channel by checking TNManager.players.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Communicating between players in different channels
« Reply #4 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.