Code:
#include <amxmod>
#include <Vexd_Utilities>
#include <Fun>
public plugin_init()
{
register_plugin("Scout Damage", "99.9", "Blah")
register_event("Damage", "scout_damage", "b", "2!0")
}
public damage(id)
{
if (!is_user_alive(id)) return
new damage = read_data(2)
new weapon, bodypart, attacker = get_user_attacker(id, weapon, bodypart)
new headshot = bodypart == 1 ? 1 : 0
if ( weapon == CSW_SCOUT && is_user_alive(id) ) {
new extraDamage = floatround(damage * 2.0") - damage)
if (extraDamage > 0) ExtraDamage( id, attacker, extraDamage, "scout", headshot )
}
}
If someone says how to fix this code, i will apriciate that