Gets called when a client attempts to connect to the server.
Code cpp:
VAULTSCRIPT vaultmp::State OnClientAuthenticate(vaultmp::String, vaultmp::String);
forward OnClientAuthenticate(const name{}, const pwd{});
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
True, the client is allowed to connect and play on this server. When returned
False, the client gets kicked (authentication denied).
Code cpp:
vaultmp::State VAULTSCRIPT OnClientAuthenticate(vaultmp::String name, vaultmp::String pwd)
{
return True; // Everybody is allowed to connect
}