/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <reapi>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new lasthitplayer[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHookChain(RG_CBasePlayer_TakeDamage, "playerdamage", 0)
}
public playerdamage(const victim, inflictor, const attacker, Float:damage)
{
get_user_name(attacker, lasthitplayer, charsmax(lasthitplayer))
showsay(victim,lasthitplayer)
}
stock showsay(const id, const hitplayer[]){
client_print(id, print_chat,"Last hit: %s", hitplayer)
}