PHP Code:
public plugin_init() {
register_event( "DeathMsg", "eDeath", "a" );
}
public eDeath() {
new iKillerID = read_data(1);
new IsHeadshot = read_data(3);
// also, read_data(2) for Victim and read_data(4) for weapon name
if(isHeadshot) {
client_cmd(iKillerID, "command")
}
return PLUGIN_CONTINUE
}
__________________