Так, вроде
Код
#include <sourcemod>
new String:RealHostname[128];
new WinnersRounds[2] = {0, ...};
public OnPluginStart()
{
GetConVarString(FindConVar("hostname"), RealHostname, sizeof(RealHostname));
HookEvent("round_end", Event_OnRoundEnd);
}
public OnMapStart()
{
for (new i = 0; i < 2; i++)
{
WinnersRounds[i] = 0;
}
}
public Event_OnRoundEnd(Handle:event, const String:name[], bool:silent)
{
WinnersRounds[GetEventInt(event, "winner") == 2 ? 0 : 1]++;
ServerCommand("hostname \"%s [TR: %d || CT: %d]\"", RealHostname, WinnersRounds[0], WinnersRounds[1]);
}