Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Getting the number of players in game....
Getting the number of players in game....
2001-12-03, 7:10 PM #1
If it ain't team mode, ya can't do it. *buzzer* wrong! [http://forums.massassi.net/html/biggrin.gif] I just had a theory (I was sifting through ctf_main.cog) and to make a quick story even quicker, you can get the number of players in a non-team game by using GetNumPlayersInTeam(0);

It returned 1 when I tested it by myself, and returned 0 when I tried team 1, so I'm assuming it works. MP confirmation would be nice. [http://forums.massassi.net/html/smile.gif]

[edit]You know it's your bedtime when you reverse the opening and closing tags for ubbcode[/edit]

------------------
-Hell Raiser
Cogging type person that does, umm, stuff.

[This message has been edited by Hell Raiser (edited December 03, 2001).]
-Hell Raiser
2001-12-04, 10:28 AM #2
When you're not playing in team mode, all players have a team of zero. So yeah, GetNumPlayersInTeam(0) might work.

But if you just want the number of players, why not use GetNumPlayers()?

[This message has been edited by SaberMaster (edited December 04, 2001).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-12-05, 8:22 AM #3
I thought that it didn't work.... (I remember someone had problems a ways back)

*smacks self on head*
-Hell Raiser
2001-12-05, 8:38 AM #4
'Getnumplayer()' works. Thats why its there. (Unless you want to do it the hard way...)

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!