View Single Post
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 12-14-2018 , 18:08   Re: [Any] Force Auth
Reply With Quote #2

Thread Connect Events Order (OnClientAuthorized), and especially Post #4 gives some insight about the different OnClient* procedures.

From OnClientPutInServer:

Quote:
Whether a client has a steamid is undefined until OnClientAuthorized is called, which may occur either before or after OnClientPutInServer. Similarly, use OnClientPostAdminCheck() if you need to verify whether connecting players are admins.
From OnClientAuthorized:

Quote:
Called when a client receives an auth ID. The state of a client's authorization as an admin is not guaranteed here. Use OnClientPostAdminCheck() if you need a client's admin status.
If you have any specific things to do, or need to make e sure a Steam ID is what it really is, like you say (for bans), I suggest moving to OnClientPostAdminCheck.

The quotes from above in crystal clear English: "Use OnClientPostAdminCheck if you need to rely on a player's authentication with Steam".

That one is also called automatically, so if I join your server at 10:00, but doesn't authenticate 100%, it will be called automatically on 10:05 when the Steam servers are back up (or your server's connection to the Steam servers are back up).
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].

Last edited by DarkDeviL; 12-14-2018 at 18:09.
DarkDeviL is offline