Help Me Please

I am making a game (www.airsoft1.bravehost.com). I want you to be able to buy a gun from the store and then that goes under your gear which you can then choose to use before a match.

I do not know how to make it so when you buy a Pistol and a rifle they show up in your gear, Then make it so that when you select the pistol then when you start the round, you will have the pistol and not the rifle.

Please point me in the right direction!

Password is dog

Thank you

have some kind of global variable such as pistol = false. When it is selected set it true. Then when you are looking at your inventory have it check the variables.

ps - edit your original post and stick the password to get into the game in there.

SO the code in the inventory would be If pistol = true then (what code would I use to display a pic of the pistol?