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); }
private static CEPlayer GetCEPlayer(int ply) { CEPlayer ceplayer = new CEPlayer(); foreach (CEPlayer ceplayerctr in CEPlayers) { if (ceplayerctr.ID == ply) { ceplayer = ceplayerctr; } } return(ceplayer); }
private static CEPlayer GetCEPlayer(int ply) { CEPlayer ceplayer = new CEPlayer(); foreach (CEPlayer ceplayerctr in CEPlayers) if (ceplayerctr.ID == ply) ceplayer = ceplayerctr; return ceplayer; }