How to change from one model "draw" animation to another.
In PreThink I've tryied(Doesn't work):
PHP Code:
///PRETHINK////
new iAnim = pev(id, pev_weaponanim)
if( iAnim == 3)
{
Set_Weapon_Animation(id, _, 9)
}
///STOCK////
Set_Weapon_Animation(id=0, iEnt=0, iAnim)
{
if( id || (iEnt && (id = pev(iEnt, pev_owner))) )
{
set_pev(id, pev_weaponanim, iAnim)
message_begin(MSG_ONE, SVC_WEAPONANIM, _, id)
write_byte(iAnim)
write_byte(pev(id, pev_body))
message_end()
}
}