function ammo_count_init(e) end function ammo_count_main(e) if g_PlayerGunID > 0 then cslot = 1 for a = 1,10 do if GetPlayerWeaponID() == GetWeaponSlot(a) then UpdateWeaponStatsItem(4,a,g_PlayerGunAmmoCount) cslot = a break end end Text(1,1,3,GetWeaponAmmo(cslot)) Prompt("clip ammo = "..g_PlayerGunAmmoCount.." , spare ammo = "..g_PlayerGunClipCount.." (total ammo = "..g_PlayerGunAmmoCount+g_PlayerGunClipCount..")") end end