PHP Code:
new g_hasKilledTimer[33]
ham_killed(...)
{
if(g_hasKilledTimer[attacker])
{
g_hasKilledTimer[attacker] = false
// *********************
// attacker did a double kill
// add actions here
// *********************
}
else
{
g_hasKilledTimer[attacker] = true
set_task(5.0, "resetTimer", attacker)
}
}
public resetTimer(id)
{
g_hasKilledTimer[id] = false
}
Like this you could detect a doublekill in 5.0 seconds. Make sure you validate the attacker and the victim in ham_killed...