Author Topic: Getting a server's player count cliently?  (Read 2322 times)

Why not just uh... get that player count thats right in the top of the f2 window?
That's just a title.

That's just a title.
I'm pretty sure there used to be a player count there.

I'm pretty sure there used to be a player count there.
It's like what Nexus said.

I'm pretty sure there used to be a player count there.

There was and probably still is, but I'm pretty sure it only updates when you open the window itself, the same way the old scores for people linger temporarily.

Right, forgot about that part. But all players are added to the list as they join whether or not you open the window, so you could just get the count.

Getting it from master server data would be the worst way of doing it, especially the way Nexus did it. It will show the player count of when you last refreshed the server list.

There was and probably still is, but I'm pretty sure it only updates when you open the window itself, the same way the old scores for people linger temporarily.
servercmd??? = update gui

call that and win

servercmd??? = update gui

call that and win


Servercmd();
Servercmd();
Servercmd();
Servercmd();

How come I am not winning?


Servercmd();
Servercmd();
Servercmd();
Servercmd();

How come I am not winning?
You did, you just got no reward.
:cookieMonster:

Why would you call a server-sided function?

We're looking for a client-way, dammit.

commandToServer('OpenPlayerList');

This discussion is handicapped, do a count on the number of rows in the player list and that'll be fine.

This discussion is handicapped, do a count on the number of rows in the player list and that'll be fine.
See: second post in this thread
NPL_List.rowCount();
I think

commandToServer('OpenPlayerList');
that's what I was thinking of