1. Wulf

    Wulf Community Admin

    Yes, you can do that using the code provided with the links given to you in the previous posts. You'd need to get the session or identity using the SteamID, then get the name from that.
     
  2. I was wrong, really..
    You can get name/steamid on event OnPlayerConnected.
    Code:
    void OnPlayerConnected(PlayerSession session)
            {
               string name = session.Name;
               string steamid = session.SteamId.ToString();
            }
     
  3. Wulf

    Wulf Community Admin

    The OP is wanting to get the name from the Steam ID though, pulled from MySQL. He'd need to use one of the linked functions in the previous posts.
     
  4. But if player is offline and i want to get his nickname by steamid. I can do this this function?
     
  5. Wulf

    Wulf Community Admin

    You should be able to, else use the IdentityMap instead which for sure will.
     
  6. Hmm.. Can get username from oxide.covalence.playerdata.data, maybe.