public void CmdPartyPromote(int index)
    {
        string[] members = party.members;

        for (int k = 1; k < members.Length; k++)
        {
            PartySystem.KickFromParty(party.partyId, name, members[k]);
        }

        PartySystem.LeaveParty(party.partyId, name);
        PartySystem.FormParty(members[index], name);

        Player invitor = onlinePlayers[members[index]];

        for (int a = 1; a < members.Length; a++)
        {
            if (a != index)
            {
                PartySystem.AddToParty(invitor.party.partyId, members[a]);
            }
        }
    }
Ejemplo n.º 2
0
 public void CmdKick(string member)
 {
     // try to kick. party system will do all the validation.
     PartySystem.KickFromParty(party.partyId, name, member);
 }