OnPlayerViolation
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPlayerViolation( BasePlayer ply, AntiHackType type, float amount, BaseEntity entity )
{
Puts( "OnPlayerViolation works!" );
}
Location
- AntiHack::AddViolation(BasePlayer ply, AntiHackType type, float amount, BaseEntity entity)
csharp
public static void AddViolation(BasePlayer ply, AntiHackType type, float amount, BaseEntity entity = null)
{
if (Interface.CallHook("OnPlayerViolation", ply, type, amount, entity) != null)
{
return;
}
using (TimeWarning.New("AntiHack.AddViolation", 0))
{
//---