Michael Jordan famously had in his contract with the Bulls a "for the love of the game" clause which entitled him to play in any game that he wanted to.
Jordan had a clause specifically exempting him from any restrictions around playing basketball - by his contract, he could play basketball in any league, or even any scrimmage, exhibition, or pickup game.