Construct Script vs BeginPlay via RPC

Hi everyone!

Could you explain what is going on?I need to register new players and add them my variable throw the network

So I tried to add this code in PlayerController in the Construction Script, because spawning pawns will be executed in the GameMode in the “OnPostLogin” function.The “Server Set Spectator Mode” function doesn`t execute by connected client, but if this code will be in the BeginPlay instead of Constructor Script, it works

How could I send my variable from client to server?(With BeginPlay it works, BUT OnPostLogin executed before BeginPlay and I had bad result eventually)