Quote:
Originally Posted by Neuro Toxin
Because changing m_iItemDefinitionIndex can get your server GSLT banned.
There is no good way to do this. If you want to avoid setting FollowCSGOServerGuidelines you can.
- Spawn the weapon to a client using GiveNamedItem
- When WeaponEquip is called inside GiveNamedItem block it
- Teleport the weapon
Edit/Note:
Teleporting the weapon inside the WeaponEquip hook should block another player from equipping it. It may also cause issues.
|
This is wrong, I have done tests on this and changing the item definition is safe as long as you don't change it to a knife, you can safely change it to anything else but you will need to turn off the core option.