Gets called when a client attempts to connect to the server.
<code cpp>
VAULTSCRIPT bool OnClientAuthenticate(std::string, std::string);
forward OnClientAuthenticate(const name{}, const pwd{});
</code>
This is what gets passed to the callback
name - the name of the client (guaranteed to be at least 3 and at maximum
MAX_PLAYER_NAME characters long)
pwd - the password of the client (guaranteed to be at maximum
MAX_PASSWORD_SIZE characters long)
When returned a non-zero value, the client is allowed to connect and play on this server. When returned zero, the client gets kicked (authentication denied).
<code cpp>
bool VAULTSCRIPT OnClientAuthenticate(std::string name, std::string pwd)
{
return true; // Everybody is allowed to connect
}
</code>