I want to Detect when you shoot with a deagle
This codes the detect when you press the shoot button
Tex: If you dont got any bullets and shoot it will print in the chat
I want it only to print in the chat when you shoot with a bullet
Code:
RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_deagle", "Ham_Attack" )
public Ham_Attack(entity)
{
new id = pev(entity, pev_owner)
if(is_user_alive(id))
{
ColorChat(0, GREY, "BanG!")
}
}
return HAM_IGNORED
}
__________________