new count = 0, string[50]; for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) { if(IsPlayerConnected(i)) count++; } format(string,sizeof(string),"Players OnLine: %d",count);