示例#1
0
 private static CodPlayer CreatePlayer(string name, string id)
 {
     var player = new CodPlayer(name, id);
     ThreadPool.QueueUserWorkItem((e) =>
     {
         Thread.Sleep(10000);
         Logging.WriteLog("Greeting player {0}", player.FullName);
         rcon.Say(String.Format(Strings.PersonalGreet, player.FullName, CodServerLogLine.RulesTrigger), player.Id);
     });
     player.Greeted = true;
     return player;
 }
示例#2
0
        private static CodPlayer CreatePlayer(string name, string id)
        {
            var player = new CodPlayer(name, id);

            ThreadPool.QueueUserWorkItem((e) =>
            {
                Thread.Sleep(10000);
                Logging.WriteLog("Greeting player {0}", player.FullName);
                rcon.Say(String.Format(Strings.PersonalGreet, player.FullName, CodServerLogLine.RulesTrigger), player.Id);
            });
            player.Greeted = true;
            return(player);
        }