Builder-X
Browse ScriptsDownload RLIB
v2.x
v2.x
  • Introduction
  • Showcase
  • Changelog
    • โ—พ2.0.1.0
    • โ—พ2.0.0.0
  • FAQ
    • โ—พAddon Won't Show
    • โ—พIncompatible Addons
    • โ—พDamage Issues
    • โ—พModified Script
    • โ—พRefunds
    • โ—พScript Errors
    • โ—พWhen Are Updates?
  • โฑ Setup
    • โ—พInstall
    • โ—พVerify
    • โ—พWorkshop
    • โ—พDocs/Web
  • โฑ Configuration
    • โ—พEnv
    • โ—พFonts
    • โ—พLanguages
    • โ—พSettings
      • โ–ธsh_cfg_bg
  • โฑ First Use
    • โ—พBinds
  • โฑ Developers
    • โ—พFunctions
      • ๐ŸŸฆGetBuild
      • ๏ฟฝ๏ฟฝ SetBuild
      • ๐ŸŸฆGetDmg
      • ๐ŸŸฆSetDmg
      • ๐ŸŸฆAddDmg
    • โ—พHooks
      • ๐Ÿ”—builderx.mode.onswitch
      • ๐Ÿ”—builderx.pl.ondamage
      • ๐Ÿ”—builderx.pl.onjoin
      • ๐Ÿ”—builderx.pl.onnoclip
Powered by GitBook
On this page
  • โ–ธ Parameters
  • โ–ธ Description
  • โ–ธ Example
  1. โฑ Developers
  2. Functions

AddDmg

๐—ฆ๐—›๐—”๐—ฅ๐—˜๐——

PreviousSetDmgNextHooks

Last updated 4 years ago

pl:AddDmg( damage)

โ–ธ Parameters

int damage amount of damage to add to existing amount

โ–ธ Description

Adds damage to a player's total damage dealt to other players while in Build Mode Used for the punishment system.

โ–ธ Example

local function punish_pl_hurt( pl, attk, hp, dmg )
    attk:AddDmg( dmg )
end
rhook.new.gmod( 'PlayerHurt', 'builderx_sv_punish_pl_hurt', punish_pl_hurt )
โ—พ
๐ŸŸฆ
โฟแต˜แตแต‡แต‰สณ