Could it possibly be 8-ball rules then?
8-ball rules: The first sunk ball determines whether you are only allowed to hit striped or solid colored balls. After all of your colored balls are sunk, you then proceed to sink the 8 ball. If you sink the 8 ball at any time other than at the end, you lose.