• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help How to know weapon's base ServerClient.Ammo.PrimaryAmmoClip
#1
Hello,

I'm trying to code a small plugin with the possiblity to buy weapons, but i have some problems Wink

When a player buy a weapon, i set Primary and CurrentWeapon with the new weapon id and the player get the new weapon, but it has only 1 ammo...
I setted ServerClient.Ammo.PrimaryAmmoClip and ServerClient.Ammo.PrimaryAmmo manually to give them ammo but i don't know where i can find the basic amout of ammo for each different weapon....

I have to make an array with the weapons list and find the ammos of each manualy or there is an other way to get them?

Thx!
  Reply
#2
You could get the amount of ammo at spawn, and save that.
[Image: MaEIQ.png]
  Reply
#3
See the cod mw3 wiki. it has all the weapon stats including ammo capacities
LOL
  Reply
#4
Thx for your help Wink
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 2,755 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 5,996 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 4,322 09-15-2013, 16:43
Last Post: DidUknowiPwn
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 30,301 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  [Request] no ammo for infected gamemode ExoGamer* 8 5,002 08-15-2013, 18:59
Last Post: Dr3am95
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,364 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 2,679 07-06-2013, 19:22
Last Post: surtek
  M320 and GP25 ammo McKinleySPB 3 2,830 07-06-2013, 12:56
Last Post: archit
Smile [Release] Unlimited ammo v2.3 & @Nukems unlammo hillbilly 40 21,829 06-26-2013, 11:33
Last Post: X-Track
Question can't find it (ammo box) DJSKilly 8 4,670 05-29-2013, 11:27
Last Post: Dr3am95

Forum Jump:


Users browsing this thread: 1 Guest(s)