Posts: 212
Threads: 91
Joined: Jul 2013
Reputation:
0
So basically my script is already scripted for people to buy ammo etc. however all the guns they recieved are all unlimited. How can i make it no unlimited so they would have to buy ammo
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
When you use GivePlayerWeapon, you can select both weapon ID and ammo, just set the ammo that whatever you wish.
It will become unlimited if it's set to 99999 or more.
Posts: 212
Threads: 91
Joined: Jul 2013
Reputation:
0
is that unlimited? GivePlayerValidWeapon(playerid,weapon,60000); what can i change to make it normal
this is for /sellgun
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
60000 is the amount of ammo. NGRP / GF edits typically aren't made for ammunition. You'll need to replace every GivePlayerValidWeapon with the amount of 60000(or simply edit the stock to not give that amount).