I am making a game where players have to buy weapons and earn money by killing other players. Any tips of how I can do this? For an example if were to buy a weapon which cost 150 and I have 1000 in my pocket it would subtract the money from my pocket and I would be able to obtain the weapon. (I tried searching this on YouTube and Google I had no LUCK!) I already know how to make a GUI for it.
It's not all that hard, if you've gotten GUI down, (but not buttons, research from there) just go to the wiki and pull resources from there. I'm pretty sure there's a lot of API things you can look through that can help you with your endeavor. We're not stackoverflow.