init()
{
level endon("game_ended");
level thread PrintAssignedTeam();
}
PrintAssignedTeam()
{
for (;;)
{
wait 1;
team = getAssignedTeam(self);
iprintln("You are team: " + team);
}
}
On this script i only get the number 0. Wich means i am in not a team. But i choosed a team and it still said 0. What did i do wrong? And if it isnt working what can i do to find out wich team a player is?