this?
Code:
#include < amxmodx >
#include < engine >
#include < hamsandwich >
const m_pPlayer = 41;
public plugin_init() {
register_plugin( "No knife", "1.0", "Juice" );
RegisterHam( Ham_Item_Deploy, "weapon_knife", "FwdKnifeDeployPost", 1 );
}
public FwdKnifeDeployPost( iEnt ) {
new iClient = get_pdata_cbase( iEnt, m_pPlayer );
entity_set_string( iClient, EV_SZ_viewmodel, "" );
entity_set_string( iClient, EV_SZ_weaponmodel, "" );
}