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!

#2
You could get the amount of ammo at spawn, and save that.
[Image: MaEIQ.png]

#3
See the cod mw3 wiki. it has all the weapon stats including ammo capacities
LOL

#4
Thx for your help Wink



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 3,938 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 8,991 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 6,605 09-15-2013, 16:43
Last Post: DidUknowiPwn
  [Request] no ammo for infected gamemode ExoGamer* 8 7,947 08-15-2013, 18:59
Last Post: Dr3am95
Exclamation [Request] Random Weapon At Spawn Scripts18 3 6,888 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 4,142 07-06-2013, 19:22
Last Post: surtek
  M320 and GP25 ammo McKinleySPB 3 4,416 07-06-2013, 12:56
Last Post: archit
Question can't find it (ammo box) DJSKilly 8 7,831 05-29-2013, 11:27
Last Post: Dr3am95
  [Request] List of all weapon models DidUknowiPwn 3 6,504 04-20-2013, 09:13
Last Post: Dominator56
  Menu base EliTeEishiii 1 4,088 04-17-2013, 16:10
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
2 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.