Progress bar for ammo box

i need sum1 to giv me a code so when i shoot a bullet the prog bar goes up and covers the bullets in the ammo box so it looks lik ammo is going done, here is an ex of the game