Untested, at CS_TerminateRound the 5.0 is the delay before new round starts and the CSRoundEnd_Draw is the reason (you can change it of course). Here all all the reasons:
https://sm.alliedmods.net/new-api/cs...RoundEndReason
PHP Code:
#include <sourcemod>
#include <cstrike>
#define KILLS 3
new g_Kills[MAXPLAYERS + 1]
public OnPluginStart()
{
HookEvent("round_start", Event_RoundStart)
HookEvent("player_death", Event_PlayerDeath)
}
public Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
for(new i = 1; i <= MaxClients; i++)
{
if(IsClientInGame(i))
{
g_Kills[i] = 0
}
}
}
public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
new victim = GetClientOfUserId(GetEventInt(event, "userid"))
new attacker = GetClientOfUserId(GetEventInt(event, "attacker"))
if(attacker > 0 && IsClientInGame(attacker) && attacker != victim)
{
g_Kills[attacker]++
if(g_Kills[attacker] >= KILLS)
{
CS_TerminateRound(5.0, CSRoundEnd_Draw)
}
}
}