There isn't a simple code to unlock every gun in Metal Gear Solid 2. Instead, you acquire weapons by progressing through the story and picking them up at specific points in each area. Advancing the plot and exploring thoroughly is the reliable way to build up your arsenal.