Exemplo n.º 1
0
        public void OnGreetPlayer(int who, HandledEventArgs e)
        {
            CEPlayer player = new CEPlayer();

            player.ID         = who;
            player.Bet        = 0;
            player.challenged = -1;
            player.DuelReward = 0;
            CEPlayers.Add(player);
        }
Exemplo n.º 2
0
        private static CEPlayer GetCEPlayer(int ply)
        {
            CEPlayer ceplayer = new CEPlayer();

            foreach (CEPlayer ceplayerctr in CEPlayers)
            {
                if (ceplayerctr.ID == ply)
                {
                    ceplayer = ceplayerctr;
                }
            }
            return(ceplayer);
        }
Exemplo n.º 3
0
 private static CEPlayer GetCEPlayer(int ply)
 {
     CEPlayer ceplayer = new CEPlayer();
     foreach (CEPlayer ceplayerctr in CEPlayers)
         if (ceplayerctr.ID == ply)
             ceplayer = ceplayerctr;
     return ceplayer;
 }
Exemplo n.º 4
0
 public void OnGreetPlayer(int who, HandledEventArgs e)
 {
     CEPlayer player = new CEPlayer();
     player.ID = who;
     player.Bet = 0;
     player.challenged = -1;
     player.DuelReward = 0;
     CEPlayers.Add(player);
 }