i created a weapon on the ground like that:
PHP Code:
int weaponIndex = CreateEntityByName("weapon_rifle");//m16
But in game when i picked up i found the weapon dont have reserve ammo.
I tried the code:
PHP Code:
SetEntProp(weaponIndex, Prop_Send, "m_iExtraPrimaryAmmo", 600);
or
PHP Code:
SetEntProp(weaponIndex, Prop_Send, "m_iClip1", 600);
or
PHP Code:
SetEntProp(weaponIndex, Prop_Send, "m_iClip2", 600);
Nothing happened. Is there a way that i can set the weapon entity's reserve ammo / primary ammo before player pick it up?