Ooops! looks like that other code only serves to show how nooby I am in Source xD. I've fixed it so you can pick the winning team, and the gates and whatnot reset when its ended.
Let me know if this ones better than the last!
PHP Code:
public EndRound(iTeam)
{
new entindex = -1;
entindex = CreateEntityByName("game_round_win")
if(entindex != -1)
{
DispatchSpawn(entindex);
DispatchKeyValue(entindex, "force_map_reset", "1");
}
SetVariantInt(iTeam);
AcceptEntityInput(entindex,"SetTeam");
AcceptEntityInput(entindex,"RoundWin");
}