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