If the violation is at a team 's own basket , no points can be scored .
The ball is given to the opponent for a throw - in at the out - of - bounds spot nearest the violation .
If the violation is at a team 's own basket , no points can be scored , and the ball is given to the opponent for a throw - in at the out - of - bounds spot nearest the violation .