Whether you are a smoker, or you have just bought a car from an ex-smoker, there are fortunately things you can do to remove and control the cigarette smoke odor in a vehicle.
First, add baking soda to the ashtray. Remember to remove it frequently and replace if fresh baking soda, especially if using it as an ash tray.
Next, find a scent of fabric softener sheets that appeals to you, and place them under the seats. Change when they lose scent.
Lastly, you can use Febreze on the upholstry, including the ceiling of the vehicle if it is a fabric. Here is a recipe to make your own Febreze.
These things will all help control and eliminate the pesky odor from cigarettes in your car.