예제 #1
0
        public static bool ShouldIgnore(Connection connection)
        {
            var steamTicket = new SteamTicket(connection);

            if (steamTicket.Ticket.Token.AppID == 480)
            {
                return(true);
            }
            return(false);
        }
예제 #2
0
        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);
        }