Exemplo n.º 1
0
        public void InviteAccepted(Player playerJoined, Player playerInviter)
        {
            playerJoined.SendChatCommand(Player.ChatCommand.GROUPJOINED, playerInviter.FLPlayerID);

            foreach (Player member in Members)
            {
                member.SendChatCommand(Player.ChatCommand.NEWGROUPMEMBER, playerJoined.FLPlayerID);

                if (member != playerInviter)
                {
                    playerJoined.SendChatCommand(Player.ChatCommand.NEWGROUPMEMBER, member.FLPlayerID);
                }
            }

            AddPlayer(playerJoined);
        }
Exemplo n.º 2
0
        public void Leave(Player player)
        {
            RemovePlayer(player);

            player.SendChatCommand(Player.ChatCommand.GROUPLEFT, player.FLPlayerID);

            foreach (var member in Members)
            {
                member.SendChatCommand(Player.ChatCommand.GROUPMEMBERLEFT, player.FLPlayerID);
            }
        }