I think you will get a squillion answers but what I did when I bought a car that smelt of smoke was...
Opened the window 2 inches left the engine running and had the hot blower on full for 10 minutes. (old army trick used to clear a vehicle of bad gasses, including human ones)
I got the seats and carpets done by the polish with there shampoo hoover thingy.
Its been fine since