Here is a somewhat useful include if you do lots of things with weapons. This was written for weapon restrict plugin originally. Also included is the weapon tracking code used in weapon restrict plugin. There is 0 documentation as of right now ill add some as I get time.
The weapon tracking include requires you to use sdkhooks along with the css_weapons.inc
Note:some features provided by css_weapons include may seem to be a duplicate of some natives. This was written before the natives were added and this also adds to the native (but still uses the natives). The WeaponId system goes in line with the one in cstrike.inc but adds a few extra weapons that do not have an id by default (defuser for example).
Usage:
Place the css_weapons.inc file in the include directory.
If you want to use the weapon tracking place the .sp in the same folder as the sp for your plugin.