Here is the only thing that has had any degree of effectiveness whatsoever:
PHP Code:
SetEntProp(weapon, Prop_Data, "m_iClip1", ammo);
That, of course, does not set the maximum limit on the weapon; just how much it's holding.
I've attached the code as it was just tested a few minutes ago.