private string GetOnlineStatus(int Pid) { if (!GamespyEmulator.IsRunning) return "offline"; else return (GamespyEmulator.IsPlayerConnected(Pid)) ? "online" : "offline"; }