Hi I'm looking for a plugin so when you make a headshot you get back exactly 100hp. V3X wrote one for me but unforunately it isn't working.
Code:
#include <amxmodx>
#include <fun>
public plugin_init()
{
register_plugin("100hp on Headshot" , "0.1" , "v3x");
register_event("DeathMsg" , "event_DeathMsg" , "1>0" , "2>0" , "3=1");
}
public event_DeathMsg()
{
new id = read_data(2);
if(is_user_alive(id))
set_user_health(id , 100);
}
can somebody recheck if its write?