EMP is very damaging and can cause blackouts and other bad results specially on electronic devices , so i heard that our sun is going to make an electromagnetic pulse during the next 50 years ..is that true ? and how is it going to affect us ?
You are probably referring to a Carrington Event where a large coronal mass ejection from the sun hits the Earth and creates massive disturbances in the magnetic field, with the result that things like the power grid are damaged by the induced currents.
On July 23, 2012 a "Carrington-class" Solar Superstorm (Solar flare, Coronal mass ejection, Solar EMP) was observed; its trajectory missed Earth in orbit.
It missed the Earth by about 9 days. Current estimates are that there is a 12% chance of being hit by such an event, per decade. Unless there was an orderly shut down of power grids worldwide before the event damage could cost trillions and take years to repair.