Code:
public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float damage, int &damagetype)
{
char inflictorClass[32];
char attackerClass[32];
GetEdictClassname(inflictor, inflictorClass, sizeof(inflictorClass));
GetEdictClassname(attacker, attackerClass, sizeof(attackerClass));
if(strlen(inflictorClass) > 0 || strlen(attackerClass) > 0)
{
PrintToServer("\n[DEBUG] Player %N took damage from a %s using %s\n", victim, inflictorClass);
}
return Plugin_Continue;
}
This will log to console what entity does damage to a player with what weapon.
It should give you the info you need. Then you can multiply damage by 2 or whatever.