How to change ammo quantity in CS:GO weapon? (broken since update)

Valve separated ammo values in last year update and I don’t know how to change spare ammunition since then. I have found some solution but can’t get it to work: csgo_adding_ammo_to_weapons