07-14-2012, 20:53
Hello,
I set the server classes with only a simple gun as secondary weapon.
I set no primary weapon and i set a trowingknife to those classes.
When i use this code to change the weapon, (primary, secondary and current do the same result) it didn't change the weapon but it take off the throwingknife...
I did something wrong with Client.Other.PrimaryWeapon, and the 2 others functions or there is a bug?
Thank you in advance for you help!
I set the server classes with only a simple gun as secondary weapon.
I set no primary weapon and i set a trowingknife to those classes.
When i use this code to change the weapon, (primary, secondary and current do the same result) it didn't change the weapon but it take off the throwingknife...
Code:
// Client.Other.PrimaryWeapon = GetWeapon("iw5_m4");
Client.Other.SecondaryWeapon = GetWeapon("iw5_m4");
// Client.Other.CurrentWeapon = GetWeapon("iw5_m4");
I did something wrong with Client.Other.PrimaryWeapon, and the 2 others functions or there is a bug?
Thank you in advance for you help!