OK i think it works something like this but I'm not sure because I havent tried this in ages and I just pulled the code out of a game I started making a long time ago where there were several guns and stuff so Im not sure if I've got everything you need.
At the top:
Ammo#=12
the ammo value can be anything you want
In the loop:
if Mouseclick()=1 and BulletLife=0 and Ammo#=>0 and tog=1
bX#=Object position X(2)
bY#=Object position Y(2)
bZ#=Object position Z(2)
play sound 2
Ammo#=Ammo#-1
Position object 2,X#,Y#+43,Z#
Set object to camera orientation 2
BulletLife =25
Show object 2
Endif
then
If BulletLife > 0
Dec BulletLife
Move object 4,20
If BulletLife = 0 then Hide object 4
Endif
Am I the only one here who's really confused?