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