Here you go, it would look like this later:
PHP Code:
/* in plugin_init */
RegisterHam( Ham_Item_Deploy, "weapon_knife", "FwdDeployKnifePost", 1 );
/* function */
public FwdDeployKnifePost( iEntity )
{
new iPlayer = get_pdata_cbase( iEntity, 41, 4 );
//check if hands should become abit invisible
entity_set_string( iPlayer, EV_SZ_viewmodel, HAND_MODEL );
}
Don't forget to precache it.
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.