So this would be the best way to do it, yes?
Sorry to get redundant with questions, i'm having a mid-life crisis and just ran out of weed.
PHP Code:
// globals
new g_allocPmod, g_allocVmod // model Handles
static const szg_Pbk[] = "models/p_bknuckles.mdl"
static const szg_Vbk[] = "models/v_bknuckles.mdl"
// plugin_init
g_allocPmod = engfunc(EngFunc_AllocString, szg_Pbk) //"model/p_bknuckles.mdl")
g_allocVmod = engfunc(EngFunc_AllocString, szg_Vbk) //"model/v_bknuckles.mdl")
// show_model
set_pev(id, pev_viewmodel, g_allocVmod)
set_pev(id, pev_weaponmodel, g_allocPmod)
// This was my original code (that works fine)
entity_set_string(id, EV_SZ_viewmodel, "models/v_bknuckles.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/p_bknuckles.mdl")
or do i skip the EngFunc_AllocString part and just use
set_pev(id, pev_viewmodel, szg_Vbk)
__________________