TF2 seems to have different events
https://wiki.alliedmods.net/Team_Fortress_2_Events
The events are
teamplay_round_start (round start)
teamplay_round_win (round end, win/loss)
teamplay_round_stalemate (round end, stalemate)
Looks like a pretty easy clientside fix, just replace the HookEvent events (round_start, round_end) in the code with the TF2 events (you probably care about round_win) and recompile.
I actually just added the two lines of teamplay_ events and it works in TF2 now:
Code:
public OnPluginStart()
{
g_CVarEnabled = CreateConVar("sm_roundexec_enable", "1", "<1/0> Set to 1 to enable plugin.");
HookEvent("round_start", RoundStart, EventHookMode_Post);
HookEvent("round_end", RoundEnd, EventHookMode_Post);
HookEvent("teamplay_round_start", RoundStart, EventHookMode_Post);
HookEvent("teamplay_round_win", RoundEnd, EventHookMode_Post);
}