Page 1 of 1

Does PlayerCount() count spectators?

Posted: Mon Aug 13, 2012 9:14 am
by Ænima
Does PlayerCount count all clients (including specs), or just ingame players?

RE: Does PlayerCount() count spectators?

Posted: Mon Aug 13, 2012 12:25 pm
by Theshooter7
Ænima wrote: Does PlayerCount count all clients (including specs), or just ingame players?
Just ingame players.

RE: Does PlayerCount() count spectators?

Posted: Mon Aug 13, 2012 7:58 pm
by Ænima
Thanks. That's what I need.

RE: Does PlayerCount() count spectators?

Posted: Mon Aug 13, 2012 8:56 pm
by Catastrophe
you might wanna keep in mind that in LMS it will return 2 even if you've won.

RE: Does PlayerCount() count spectators?

Posted: Mon Aug 13, 2012 9:06 pm
by Torr Samaho
Catastrophe wrote: you might wanna keep in mind that in LMS it will return 2 even if you've won.
This is because a player is not turned into a dead spectator immediately after dying, but only when the player tries to respawn. So in the moment you win, there actually are still two non-spectators left (one of them dead though without chance to respawn).

RE: Does PlayerCount() count spectators?

Posted: Sun Aug 19, 2012 2:42 pm
by ZzZombo
I think it can be worked around by using "Instant respawn" flag.