tag @a remove ammo_m9
tag @a [hasitem={item=true:ammo_m9}] add ammo_m9

replaceitem entity @a [hasitem={item=true:m9,location=slot.weapon.mainhand},scores={m9_reloading=0}] slot.weapon.mainhand 0 true:m9_empty 1 0

tag @a remove ammo_m1911
tag @a [hasitem={item=true:ammo_m1911}] add ammo_m1911

replaceitem entity @a [hasitem={item=true:m1911,location=slot.weapon.mainhand},scores={m1911_reloading=0}] slot.weapon.mainhand 0 true:m1911_empty 1 0

tag @a remove ammo_micro_uzi
tag @a [hasitem={item=true:ammo_micro_uzi}] add ammo_micro_uzi

replaceitem entity @a [hasitem={item=true:micro_uzi,location=slot.weapon.mainhand},scores={micro_uzi_reloading=0}] slot.weapon.mainhand 0 true:micro_uzi_empty 1 0

tag @a remove ammo_mk16
tag @a [hasitem={item=true:ammo_mk16}] add ammo_mk16

replaceitem entity @a [hasitem={item=true:mk16,location=slot.weapon.mainhand},scores={mk16_reloading=0}] slot.weapon.mainhand 0 true:mk16_empty 1 0
replaceitem entity @a [hasitem={item=true:mk16_scope_4x,location=slot.weapon.mainhand},scores={mk16_scope_4x_reloading=0}] slot.weapon.mainhand 0 true:mk16_scope_4x_empty 1 0
replaceitem entity @a [hasitem={item=true:mk16_scope_6x,location=slot.weapon.mainhand},scores={mk16_scope_6x_reloading=0}] slot.weapon.mainhand 0 true:mk16_scope_6x_empty 1 0

tag @a remove ammo_hk416
tag @a [hasitem={item=true:ammo_hk416}] add ammo_hk416

replaceitem entity @a [hasitem={item=true:hk416,location=slot.weapon.mainhand},scores={hk416_reloading=0}] slot.weapon.mainhand 0 true:hk416_empty 1 0
replaceitem entity @a [hasitem={item=true:hk416_scope_4x,location=slot.weapon.mainhand},scores={hk416_scope_4x_reloading=0}] slot.weapon.mainhand 0 true:hk416_scope_4x_empty 1 0
replaceitem entity @a [hasitem={item=true:hk416_scope_6x,location=slot.weapon.mainhand},scores={hk416_scope_6x_reloading=0}] slot.weapon.mainhand 0 true:hk416_scope_6x_empty 1 0

tag @a remove ammo_ak47
tag @a [hasitem={item=true:ammo_ak47}] add ammo_ak47

replaceitem entity @a [hasitem={item=true:ak47,location=slot.weapon.mainhand},scores={ak47_reloading=0}] slot.weapon.mainhand 0 true:ak47_empty 1 0
replaceitem entity @a [hasitem={item=true:ak47_scope_4x,location=slot.weapon.mainhand},scores={ak47_scope_4x_reloading=0}] slot.weapon.mainhand 0 true:ak47_scope_4x_empty 1 0
replaceitem entity @a [hasitem={item=true:ak47_scope_6x,location=slot.weapon.mainhand},scores={ak47_scope_6x_reloading=0}] slot.weapon.mainhand 0 true:ak47_scope_6x_empty 1 0