So basically what my problem is, is that I build a map, where 2 teams send each other units (similar to line wars) and I define my income, which units to send to which side of the map, etc by the player number.
Now the player number does not apply to the player slots, but the order the players join the lobby... => How can I solve this problem? I want that a player can be swapped into team 2, without "breaking" the map mechanics.
If there are more details necessary for helping me, just let me know and I post whatever is missing.
Thank you for the fast reply and sorry for another stupid question, but how would i check in which lobby team a player is/was ?
Do I have to write a method there or is there already one I could use in a "IfThenElse" - I have an AI in each team (the summoned creeps for the enemy team), but I can't find any comparison about "player is allied with" or something like that.