/// <summary> /// Finds the matchmaking information /// </summary> /// <param name="ignoreBots">Should bots be ignored?</param> /// <param name="steamInfo">Should steam info be shown?</param> /// <returns>Formatted string with information</returns> private string getMatchmakingInfoAsString(bool ignoreBots, bool steamInfo, FilterTypes filter) { offsets.RenewOffsets(); if (!offsets.IsIngame()) { return("Not ingame"); } List <Offsets.Player> playerList = offsets.GetPlayers(ignoreBots, filter); if (playerList == null) { return("No valid player was found"); } string temp = ""; for (int i = 0; i < playerList.Count; i++) { if (playerList[i].name.Length <= 0) continue; } temp += "[" + (i + 1) + "] " + (i + 1 < 10 ? " " : "") + playerList[i].name + " \n"; temp += "Rank: " + Offsets.RANKS[playerList[i].rank] + "\n"; temp += "Wins: " + playerList[i].winCount + "\n"; if (steamInfo) { temp += "SteamID: " + playerList[i].steamID + "\n"; temp += "SteamID3: " + playerList[i].steamID3 + "\n"; temp += "SteamID64: " + playerList[i].steamID64 + "\n"; temp += "Profile: " + playerList[i].profileLink + "\n"; } if (i + 1 < playerList.Count) temp += "\n\n"; }