I wrote a plugin I give you only kill the enemy with hand grenades health.
Once I get compile errors.
What do I do?
Code:
#include <amxmodx>
#include <fun>
public plugin_init()
{
register_plugin("PLUGIN", "VERSION", "AUTHOR")
register_event("DeathMsg", "EventDeathMsg", "a", "1>0")
}
public EventDeathMsg()
{
if(get_user_weapon() == CSW_HEGRENADE)
{
Bonus()
}
}
public Bonus(id)
{
client_print(id, print_center, "Since You killed the enemy with the HE\nYou add 25 to health")
set_user_health(id, (get_user_health(id) + 25))
}