Skip to main content

OnPlayerViolation

Usage​

  • Called when the player triggers an anti-hack violation
  • Return a non-null value to override default behavior

Examples​

""
object OnPlayerViolation(BasePlayer player, AntiHackType type, float amount)
{
Puts("OnPlayerViolation works!");
return null;
}