I have continuous problem of gas. What about offering prayer & doing imaamat?
You should study the maslas of mazoor in Bahishti Zewar and try to fit your condition to those mentioned there. If you fall in the category of mazoor, then you are not allowed to lead the prayer, and if you are not mazoor then you can continue as imam, but it is advisable for such a person to shun from imamat. Since, your question is too short, therefore we were unable to write the ruling clearly.
Allah (Subhana Wa Ta’ala) knows Best
Darul Uloom Deoband