public void OnPluginStart()
{
HookEvent("round_end", evr, EventHookMode_Pre);
}
public void evr(Event hEv, const char[] sEv, bool bdb)
{
int ct = 0, t = ct;
for(int i = 1; i <= MaxClients; i++)
{
if(IsClientInGame(i) && !IsFakeClient(i) && IsPlayerAlive(i) && GetClientTeam(i) > 1)
GetClientTeam(i) == 3 ? ct++ : t++;
}
SetConVarInt(FindConVar("mp_round_restart_delay"), (ct == 0 && t > 0 || t == 0 && ct > 0) ? 1 : 7);
}