Quote:
Originally Posted by kp_uparrow
the little text and animation shows up
|
Code:
public plugin_init()
{
register_forward(FM_UpdateClientData, "forward_updateclientdata", 1);
}
public forward_updateclientdata(id, sendweapons, cd_handle)
{
if(!is_user_alive(id))
return FMRES_IGNORED;
new const weapon = get_user_weapon(id);
if(weapon == CSW_AUG || weapon == CSW_GLOCK18 || weapon == CSW_M4A1 || weapon == CSW_USP || weapon == CSW_FAMAS || weapon == CSW_SG552) // || weapon == CSW_KNIFE
{
new const button = pev(id, pev_button);
if(button & IN_ATTACK2 && !(button & IN_ATTACK))
set_cd(cd_handle, CD_flNextAttack, halflife_time() + 0.01);
return FMRES_HANDLED;
}
return FMRES_IGNORED;
}