Add new event NewOnRespawnAfter NewOnRespawnBefore. Only copy paste and change.
This is very cumbersome and show me a script relies on the ... in this case, theoretically joingame is useless because I use yet onrespawn and add only one variable, and check whether the player spawn first and in leavegame give correction to the variable.
FIX THIS FIX THIS AND FIX THIS. Devs must eliminate bugs.