You have to play through every level. There is no shortcut or code; weapon unlocks in the Miniclip version are tied to campaign progress.
If a weapon still seems locked after you have finished, the usual culprit is a mission completed on a lower difficulty, since some unlocks are gated behind the harder settings. Replaying the level at the required difficulty is faster than starting over.