just count them:Is there any way to check the number of players on the server for things other than expert stats? I'm trying to see how to make an increased spawn multiplier based on the number of players.
Code:
if (Main.netMode != 0)
{
for (int i = 0; i < 255; i++)
{
if (Main.player[i].active)
{
num4++;
}
}