thanks!
yeah, but it's works only if u change current weapon
(if you do not change weapons you can still attack)
PHP Code:
public Weapons_Deploy(iWeapon)
{
if( get_cvar_num("amx_nodamage") == 1 )
{
new id = get_pdata_cbase(iWeapon, m_pPlayer, XO_WEAPONS)
new iId = get_pdata_int(iWeapon, m_iId, XO_WEAPONS)
set_pdata_float(iWeapon, m_flNextPrimaryAttack, 99999.0, XO_WEAPONS)
set_pdata_float(iWeapon, m_flNextSecondaryAttack, 99999.0, XO_WEAPONS)
set_pdata_float(id, m_flNextAttack, 99999.0, XO_PLAYER)
}
}
it's possible make, when amx_damage 1 (blocks attacks for all players) like this:
PHP Code:
set_pev(id, pev_button, (pev(id, pev_button) & ~IN_ATTACK) & ~IN_ATTACK2)