ItsMods

Full Version: How to know weapon's base ServerClient.Ammo.PrimaryAmmoClip
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
You could get the amount of ammo at spawn, and save that.
See the cod mw3 wiki. it has all the weapon stats including ammo capacities
Thx for your help Wink