hmm.. not so much.. but ill give it a try..
basicly, if a unit dies,
it sets the boolean(player number of the owner of the dying unit)
to true,
then if all players 1 - 4(red, blue, teal, purple) are dead aswell,
it will say that team 2 won,
but if all players 5 - 8 (yellow, orange, green, pink) are dead,
it will say team 1 won.
just edit where the comments are.
-------- Team 2 won actions! --------
below that put the actions of what happends when team 2 wins
-------- Team 1 won actions! --------
and below that put the actions of what happends when team 1 wins.
you can go to tutorials section and look for variables tutorial.
im sure there are plenty of those..