Write Get Controller, Player State and Player Name that I have in BP into C++

Hello UE Community!

I want to have these stuff (Set Player Name Box) in Blueprint translated into C++. I have a multiplayer project and if I write these in BP it won’t actually get the ‘PlayerName’ of the specific character that I have chosen but your own character. In this project all characters exist on the Server.

I have very few knowledge in C++ syntax so hopefully someone could be so kind to help me write this in C++

My sincerest gratitude!