After even your original script does not work I noted that problem I had a long timer ago:
if you copy text from textfiles or forums or whatever in the script window (for myLevel), it can be possible that the sh1t does not work :/
I bet I have to do it over the longer way to make it work (external u file > then myleveling)
Edit: No I was wrong, it still does not work Oo .. well in that way the script does not work, compiling is possible.
I got the script to work for TeamDeathMatch using TeamGamePlus. I created a simple test map with two teams on opposing sides of a river.
It took some haggling with the editor. For example player starts for team 1 should be set to 0, then 1,2,3 for the next teams.
You might also want to change the default game type to TeamGamePlus.
None the less, I verified this with an independant load of UT. It works. Each team was on *THEIR* side of the river. The only time someone got booted to the other side was due to a redeemer bounce from a fellow teammate. (I threw in some weapons to make the testing, more, ahem, enjoyable)