Found a few threads in the Scripting Help forum (this one) with a quick search for "get_players team".
Here is one that should help.
This one talks about the difference between the new and old versions of the function.
Interestingly, I found that the official documentation actually shows an example for getting all players on a team that are also alive (for both versions
here and
here).
__________________