Hi every one, i am making sub model for my weapons mod, but i have some mistake with p_model when change to sub model, Sequences of this is not change, so please help my the way to change Sequences of p_model, thank so much.
I try with set_pev(id, pev_sequence, 1) but not happen!
This is my code and model:
PHP Code:
register_event("WeapPickup","checkModel","b","1=19")
public checkModel(id)
{
if ( !g_has_ak47red[id] || !is_user_alive(id) )
return PLUGIN_CONTINUE;
new szWeapID = read_data(2)
if ( szWeapID == CSW_AK47 && g_has_ak47red[id] == true )
{
set_pev(id, pev_viewmodel2, ak47red_V_MODEL)
set_pev(id, pev_body, 1) //Change to submodel
set_pev(id, pev_weaponmodel2, ak47red_P_MODEL)
//So how to set Sequences of p_model?
}
return PLUGIN_HANDLED
}