Do you mean hitting your enemy with your gun or using a seperate weapon as a melee hitter. I'm assuming it would be the second one. Say for exaple a black Jack like in thief. You would get a model of it(or make one). Have a hitting animation or use a sequence of moving the object forward and back. For the gun hiting you would wnt an animation or y rotating say a rifle to make it a side thrust like in Halo. Or turning the gun around and moving it forward so you hit with the back of the gun. Tell me more and I may be able to supply source code.
Hope I helped.
I'm such a