Gets the ammo count for the weapon in the given slot.
ammo = level.player getweaponslotammo("primary");