public static bool ShouldIgnore(Connection connection) { var steamTicket = new SteamTicket(connection); if (steamTicket.Ticket.Token.AppID == 480) { return(true); } return(false); }
private static int CountSteamPlayer() { int count = 0; foreach (var player in BasePlayer.activePlayerList) { SteamTicket steamTicket = new SteamTicket(player.Connection); bool check = steamTicket.SteamId != 0 && steamTicket.SteamId == player.userID; if (check && steamTicket.Ticket.Token.AppID == 252490) { count++; } } return(count); }