try this:
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(1); // changed 2 -> 1
if(is_user_alive(id))
set_user_health(id , 100);
}
http://wiki.amxmodx.org/index.php/Ha...vents#DeathMsg
[edit]
please use small-tags instead of code-tags to make code better readable..
__________________