07.08.2010, 00:56
What about melee weapons?
I had this problem when making THIS. There seems to be really no efficient way to make a removeplayerweapons function lol. Using GetPlayerWeaponData to store the players weapons and ammo, ResetPlayerWeapons, and then giving it back normally results in bugged ammo (happens when players scroll through their weapons). SetPlayerAmmo and giving them the same weapon with negative ammo both seem to work fine, except when it comes to melee weapons. They simply will not be removed.
I had this problem when making THIS. There seems to be really no efficient way to make a removeplayerweapons function lol. Using GetPlayerWeaponData to store the players weapons and ammo, ResetPlayerWeapons, and then giving it back normally results in bugged ammo (happens when players scroll through their weapons). SetPlayerAmmo and giving them the same weapon with negative ammo both seem to work fine, except when it comes to melee weapons. They simply will not be removed.
![Sad](images/smilies/sad.gif)