Code:
#include <amxmodx>
public plugin_init()
{
register_plugin( "Death Message", "1.0", "Wrecked" )
register_event( "DeathMsg", "EventDeathMsg", "a", "1>0" )
}
public EventDeathMsg()
{
// read_data( 1 ) = Killer
// read_data( 2 ) = Victim
// read_data( 3 ) = Headshot
new name[32]
get_user_name( read_data( 2 ), name, 31 )
client_print( read_data( 1 ), print_chat, "You killed '%s'%s", name, read_data( 3 ) ? "with a headshot!" : "!" )
}
__________________