addweaponvar <var1> <var2>
Adds a weapon to the nearest player. Command functions exactly like the addweapon command, but takes gamevars rather than predefined numbers. <var1> is the weapon's number, <var2> is the amount of ammo.