Code:
/* AMX[X] Mod script.
*
* Weapon Cloak by MMX
* This file is provided as is (no warranties).
*
* For each weapon there is an aplha value for the player's model
* i.e. amx_invis_knife "80" means a player holding a knife
* will be moderately visible, whereas amx_invis_ak47 "200" would
* make anywone holding a knife be normal transparency.
*
* If you want to alter values make a line in admin.cfg
* i.e. amx_invis_knife "80"
*
* My first plugin so comments welcome
*/
#include <amxmodx>
#include <amxmisc>
#include <fun>
I ported this from MMX, it basically changes how invisible you are depending on what gun is in your hand. Tested and works fine!