IOnPlayerBanned
WARNING
This is an internal hook and will not be called in plugins. See Internal Hooks for more information.
Usage
- No return behavior
Example Autogenerated
csharp
private void IOnPlayerBanned( Connection connection, AuthResponse Status )
{
Puts( "IOnPlayerBanned works!" );
}
Location
- ServerMgr::OnValidateAuthTicketResponse(ulong SteamId, ulong OwnerId, AuthResponse Status)
csharp
//---
{
return;
}
if ((Status == AuthResponse.PublisherBanned || Status == AuthResponse.VACBanned) && !this.bannedPlayerNotices.Contains(SteamId))
{
Interface.CallHook("IOnPlayerBanned", connection, Status);
ConsoleNetwork.BroadcastToAllClients("chat.add", new object[]
{
2,
0,
"<color=#fff>SERVER</color> Kicking " + connection.username.EscapeRichText(false) + " (banned by anticheat)"
//---