You're likely thinking of "The A-Team" (1983–1987). While not a direct spin-off, it was inspired by Stallone's 1982 film "The Expendables".
The Expendables influenced The A-Team with its ragtag former-soldiers-as-mercenaries concept, developed into the popular series.
Note: The film wasn't a spin-off of the show—they shared similar elements independently.