Buyable ammo
#1

Hello, i just came to an idea to create a simple system . when in ammunation we do /buy it should give option to buy ammo if you dont have gun it come up with the error that you must have gun before buying ammu and if you have gun so it should give some ammo as defined in script can anyone help me out with this i cant give much time as i am busy in practical life
Reply
#2

well this is not a section to make script request but i can show you a way to do it. Copy and paste your buygun script and make it named buy ammo and check for what weapons player has. if player has weapon_uzi give him a chance to buy weapon_uzi with how much bullet you want for a cheaper price. It will result in combining both uzis making like add ammo effect to first uzi. I have been using like that before.
Reply
#3

I know its not the correct section to request script but i cant do that would you like to join my server as a Administrator add me on skype @mustaqeem.karo + this is not a server advertisement
Reply
#4

Bump
Reply
#5

Do as above said. At the very simplest level, have the script check if the player has the weapon and, if they do, add ammo on to the gun for a lower price. If the player does not have the gun, he or she would then buy the weapon itself for a higher price.

A more advanced system would be to have the player buy ammo independently, regardless of whether he / she has the gun at the time, and then he / she can use the ammo later with a command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)