try indexing the global killer variable
Code:
new g_killer[ 33 ];
then in the death event change to this
Code:
g_killer[ iVictim ] = iKiller // stores the killers index for that victim only. which means the next player who gets tk will have there killers index set to there variable.
then change this
Code:
public MenuHandler(iVictim, menu, item)
{
switch(item)
{
case 1:
{
client_print(g_killer,print_chat, "%s has slayed you",g_vname)
user_kill(g_killer)
menu_destroy( menu )
return PLUGIN_HANDLED
}
case 0:
{
client_print(g_killer,print_chat, "%s has forgiven you",g_vname)
menu_destroy( menu )
return PLUGIN_HANDLED
}
case MENU_EXIT:
{
menu_destroy( menu )
return PLUGIN_HANDLED
}
}
menu_destroy( menu )
return PLUGIN_HANDLED
}
to this
Code:
public MenuHandler(iVictim, menu, item)
{
switch(item)
{
case 1:
{
client_print(g_killer[iVictim],print_chat, "%s has slayed you",g_vname)
user_kill(g_killer[iVictim])
menu_destroy( menu )
return PLUGIN_HANDLED
}
case 0:
{
client_print(g_killer[iVictim],print_chat, "%s has forgiven you",g_vname)
menu_destroy( menu )
return PLUGIN_HANDLED
}
case MENU_EXIT:
{
menu_destroy( menu )
return PLUGIN_HANDLED
}
}
menu_destroy( menu )
return PLUGIN_HANDLED
}
__________________