Author Topic: Get list of all players across all channels?  (Read 2048 times)

fgame

  • Guest
Get list of all players across all channels?
« on: November 28, 2013, 04:01:51 AM »
TNManager.players return the player list from the channel only. How to get all players all connected to the same server?

addebooi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: Get list of all players across all channels?
« Reply #1 on: November 28, 2013, 09:30:26 AM »
If you're using the latest verision of Tnet, so coul you use the RFC by sending a broadcast, and then it returns for an example the playerID that you can do whatever that is needed for :) Hope it helped!

fgame

  • Guest
Re: Get list of all players across all channels?
« Reply #2 on: November 28, 2013, 10:21:51 AM »
If you're using the latest verision of Tnet, so coul you use the RFC by sending a broadcast, and then it returns for an example the playerID that you can do whatever that is needed for :) Hope it helped!

I'm not trying to send private msg to player in the server. It's to get the whole list of all players connected to server (not that channel) and loop them, and also able to know the size of it of course.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Get list of all players across all channels?
« Reply #3 on: November 28, 2013, 04:12:34 PM »
You can request the list of players in the same channel you are in, but you can't request a list of all players connected to the server without adding a custom packet. If you need that, just add a custom packet to TNPacket and your own handling of this packet to the server / client.