07-18-2012, 15:59
Hello,
I'm trying to code a small plugin with the possiblity to buy weapons, but i have some problems
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!
I'm trying to code a small plugin with the possiblity to buy weapons, but i have some problems

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!