Have a look into my plugin "Excessive Buy Punisher" (see link in my signature)
You can check in client_command() for the aliases "deagle" and "nighthawk" and you can hook when the player invokes the buy command using the menu. Use "register_menucmd" for that.