Great question — answering as the UphillTech team:
This will be incredibly dependent on the league you are in, so the best thing to do is ask the refs in your league. However, my guess is that they'd follow similar guidelines as the NBA or NCAA, so I'll look at both of those below. First and foremost, the refs should have called a technical on your team regardless of whether you made the shot. For NCAA, according to Wikipedia : [C]ollegiate basketball (both men's and women's) limit teams to five players on the court at any one time. A team with more than five in play at once is assessed a technical foul for Too Many Players on the Court. For NCAA rules , the technical would have resulted in "two free throws... be[ing] awarded to any member...
Full answer by SocioMatt: https://sports.stackexchange.com/a/2452 (CC BY-SA 3.0).
Need it done for your business? UphillTech.