You cannot pick up weapons in Shadow the Hedgehog (PS2). Shadow's primary attack is the Chaos Spear. Gameplay revolves around Chaos Energy abilities:
If you want weapon-based gameplay, you may be thinking of another Sonic title.