Posts: 330
Threads: 118
Joined: Jul 2010
Reputation:
0
Is there is any way i can prevent a weapon from leaving the player when it runs out of ammo??
Posts: 925
Threads: 36
Joined: Dec 2009
Reputation:
0
Get his weapon, store it somewhere and when he refills ammo, give it back to him ?
Posts: 2,629
Threads: 40
Joined: Mar 2008
Reputation:
0
Unless you give the player ammo, the game auto changes the weapon to the next one.
Posts: 2,431
Threads: 86
Joined: Nov 2009
Reputation:
0
Couldn't you save the weapon to a file, and once the ammo runs out. Wait until the player buys more ammo(make that feature) and when he buys the ammo detect if he has that weapon in a file, and if he does use the GivePlayerWeapon function.
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
It's GTA:SA's code that gets rid of your weapon once the ammo depleted.