This is a way, but, you should create a specific folder in models/ folder, with for example the name of your plugin, as you have changed animations of the model.
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "Knife Model"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"
#define m_pPlayer 41
new g_iVModel
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Item_Deploy, "weapon_knife", "Knife_Deploy", 1)
g_iVModel = engfunc(EngFunc_AllocString, "models/v_medickit.mdl")
}
public plugin_precache()
{
precache_model("models/v_medickit.mdl")
}
public Knife_Deploy( iEnt )
{
set_pev( get_pdata_cbase(iEnt, m_pPlayer, 4), pev_viewmodel, g_iVModel)
}
__________________