View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-18-2016 , 11:42   Re: GetClientAuthId not working as expected
Reply With Quote #4

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 View Post
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.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-18-2016 at 11:43.
Powerlord is offline