I'm not that familiar with CS:GO, but for other games, the player does not have a SteamID assigned when they connect... you have to wait for the authorization step to finish first:
Quote:
Originally Posted by hlstriker
I don't believe it was ever safe to get a client's steamid until OnClientAuthorized was called (paired with IsClientAuthorized). Code written otherwise has always been invalid.
|
On a side note, you're ignoring the return val for GetClientAuthId. If it returns false, it will also set the Steam ID to STEAM_ID_STOP_IGNORING_RETVALS to tell you to
stop ignoring its return val.
__________________