Author Topic: [Solved] Players in server table?  (Read 677 times)

Is there a table which contains all of the players connected to the server?

[I am not looking for players within a minigame, but within the server.]
« Last Edit: February 26, 2016, 12:58:14 PM by Marios »

all the GameConnections connected to the sever are put into the "ClientGroup" script group. here, have an example script which echoes all player names to console

Code: [Select]
%count = ClientGroup.getCount();
for(%i = 0; %i < %count; %i++)
{
         %client = ClientGroup.getObject(%i);
          echo(%client.getPlayerName());
}

« Last Edit: February 26, 2016, 12:57:50 PM by Marios »