This could be named "Victim hunt time" or something, time of death sounds like the actual system time when the plyer died O.o
Still, you should recode it, use a double array with 33 cells each... a wth, let me give you an example:
Code:
new g_iMaxPlayers
new Float:g_fFirstDamageTime[33][33]
//...
public plugin_init()
{
//... hooks and stuff
g_iMaxPlayers = get_maxplayers()
}
public player_spawn(id)
{
if(!is_user_alive(id))
return
for(new i = 1; i <= g_iMaxPlayers; i++)
g_fFirstDamageTime[id][i] = 0.0
}
public player_damage(id, attacker)
{
if(1 <= attacker <= g_iMaxPlayers && !g_fFirstDamageTime[attacker][id])
g_fFirstDamageTime[attacker][id] = get_gametime()
}
public player_death(id, killer)
{
if(!(1 <= killer <= g_iMaxPlayers))
return
client_print(killer, print_chat, "It took you %.1f seconds to kill <name here>", get_gametime() - g_fFirstDamageTime[killer][id])
g_fFirstDamageTime[killer][id] = 0.0
}
... something like that.
__________________