Posts: 31
Threads: 7
Joined: Jan 2017
Reputation:
0
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
Posts: 249
Threads: 56
Joined: Jun 2013
Reputation:
0
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.
Posts: 31
Threads: 7
Joined: Jan 2017
Reputation:
0
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
Posts: 399
Threads: 77
Joined: Jun 2011
Reputation:
0
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.