From Garry's Mod
Returns how much secondary ammo is in magazine.
The amount of secondary ammo in the magazine.
Prints the amount of seconday ammo in the magazine of the weapon the 1st player has equipped.
print( player.GetByID( 1 ):GetActiveWeapon():Clip2() )
Will print -1 for all HL2 weapons.