Hasselhoff to Ex -- It's Pay-Bach Time

David Hasselhoff is about to get a check from his ex-wife Pamela Bach for a change.

The judge in their divorce case just ruled Pammy has been filing frivolous legal actions against The Hoff and David has been forced to pay his lawyer to fend her off.

So the judge has ordered Pam to foot David's legal bill, to the tune of $7,550.80

The judge said Pamela must send David $3,000 up front, and then she can either send David a check for $500 a month until they're all squared up or just deduct it from her spousal support.

Decisions, decisions.