Activate the 'Cheat Console' and press the '~' (tilde) key to display it and then enter the following without the quotes replacing 'weapon cheat' with the password for the weapon you want to enable in the game.

"Give models/weapons/'weapon cheat'.tik"

"Give" adds the weapon to the inventory and "Spawn" will spawn the weapon on the ground letting you to pick up ammo.