#include <sourcemod>
#include <cstrike>
#include <sdktools>
public OnPluginStart()
{
HookEvent("player_disconnect", OnClientDisconnect);
}
public OnClientDisconnect(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
if(GetClientTeam(client) == 3)
{
// 3 - Time (in seconds) to delay before new round starts
// reason - Reason for the round ending
// false - (blockhook)Set to true to stop the corresponding CS_OnTerminateRound forward from being called.
CS_TermianteRound(1, 15, false);
}
}