Skip to content

OnClientAuth

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnClientAuth( 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, false);
	}
	Interface.CallHook("OnClientAuth", packet.connection);
	if (branch != string.Empty && branch != text)
	{
		string[] expr_1BB = new string[7];
		expr_1BB[0] = "Kicking ";
		int arg_1D7_1 = 1;
//---

Released under the MIT License.