That really doesn't detect if someone is attacking, it will only tell you if they are holding a key that is bound to +attack, which does not always mean they are attacking. The only way you could make a weapon shoot faster is by changing the m_flNextPrimaryAttack or whatever it is called within the server dll, which is not possible.