PHP Code:
public UpdateClientData(id, sendweapons, cd)
{
if( sendweapons )
{
static Float:nextattack;
get_cd(cd, CD_flNextAttack, nextattack);
if( nextattack > 0.0 )
{
set_cd(cd, CD_WeaponAnim, 0)
}
}
}
Try that instead. Not tested but it should work, next attack is higher than 0 when you draw your weapon and when you're reloading. Your cl_lw has to be 0 or 1 I don't remember which so try both for the animation block to take effect when using updateclientdata.
Edit:
Quote:
Originally Posted by Bugsy
That code I posted does that. Did you try it?
|
He doesn't want to block shooting animation, just draw and reload.