Example #1
0
        public void StandUp(CGamePlayer player)
        {
            if (tableR.ContainsKey(player))
            {
                Logger.Log(LogType.Debug, player.Name + " stood up in " + name);

                int seat = tableR[player];
                table.Remove(seat);
                tableR.Remove(player);

                player.DepositWallet();

                BroadcastSeatInfo(seat);
            }
            else
            {
                Logger.Log(LogType.Error, player.Name + " tried to stand without sitting in " + name);
            }
        }
        public void StandUp(CGamePlayer player)
        {
            if (tableR.ContainsKey(player))
            {
                Logger.Log(LogType.Debug, player.Name + " stood up in " + name);

                int seat = tableR[player];
                table.Remove(seat);
                tableR.Remove(player);

                player.DepositWallet();

                BroadcastSeatInfo(seat);
            }
            else
            {
                Logger.Log(LogType.Error, player.Name + " tried to stand without sitting in " + name);
            }
        }