Question: asking aboutfruit fly in pumpkin 
Answer: spray rogor or malathion @ 2ml/lit of water at 5 days interval for 3 times