It's all in the brain.
You can never help someone stop such habits, only he himself can help stop it.
Tell your friend just once that 'you' do not like him smoking and ask him to decide. Although I am sure, he will prefer losing you for cigaret's; But if "he" wants to quit smoking 'he' can.