OnClientAuth
Usage
- No return behavior
Example Autogenerated
csharp
private void OnClientAuth( Network.Connection connection )
{
Puts( "OnClientAuth works!" );
}Location
- ServerMgr::OnGiveUserInformation(Network.Message packet)
csharp
//---
string branch = ConVar.Server.branch;
if (packet.read.Unread >= 4)
{
text = packet.read.String(128);
}
Interface.CallHook("OnClientAuth", packet.connection);
if (branch != string.Empty && branch != text)
{
DebugEx.Log("Kicking " + packet.connection?.ToString() + " - their branch is '" + text + "' not '" + branch + "'");
Network.Net.sv.Kick(packet.connection, "Wrong Steam Beta: Requires '" + branch + "' branch!");
}
//---