Gets called when a client attempts to connect to the server.
Code cpp:
VAULTSCRIPT VAULTSPACE State OnClientAuthenticate(VAULTSPACE cRawString, VAULTSPACE cRawString) _CPP(noexcept);
Code c:
forward OnClientAuthenticate(const name{}, const pwd{});
This is what gets passed to the callback
cRawString - the name of the client (guaranteed to be at least 3 and at maximum
MAX_PLAYER_NAME characters long)
cRawString - the password of the client (guaranteed to be at maximum
MAX_PASSWORD_SIZE characters long)
If returned
True, the client is allowed to connect and play on this server. If returned
False, the client gets kicked (authentication denied).
Code cpp:
State VAULTSCRIPT OnClientAuthenticate(cRawString name, cRawString pwd)
{
return True; // Everybody is allowed to connect
}