use "DeathMsg" event.
underside will check out the first victim every round:
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#define PLUGIN_NAME "New Plug-In"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "CZ*Ryu"
new iFirstVictim
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_event("HLTV", "e_HLTV_NewRound", "a", "1=0", "2=0")
register_event("DeathMsg", "e_DeathMsg_CheckFirstVictim","a", "1!0", "4!c4")
}
public e_HLTV_NewRound()
{
iFirstVictim = 0
}
public e_DeathMsg_CheckFirstVictim()
{
if ( iFirstVictim > 0 )
return
new iKiller = read_data(1)//killer id
new iVictim = read_data(2)//victim id
if ( iKiller == iVictim )//filtrate suicide
return
//do something you want here
iFirstVictim = iVictim
new sVictim[32]
get_user_name(iVictim, sVictim, sizeof sVictim - 1)
client_print(0, print_chat, "The first victim is %s", sVictim)
}