🟦AddDmg
𝗦𝗛𝗔𝗥𝗘𝗗
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 )
Last updated