coding a SWEP secondery ammo counter?

Hello… how can i code a secondary ammunition counter for a scripted weapon that uses the alternate ammo counter of the HL2 hud? or somthing that looks familiar to it? and only works when the weapon is being used?

i’ve tried a few tutorials… but being the nooblet i am still cant get it to work…