can i get some help with figuring out how to make it when a player damages a nextbot they again 10 points
i thought it would have some thing to do with the function ENT:OnInjured with a AddMoney(10) command but that got me no ware as i dont know how to call the player who injured it
could i please get some help from you lovely people who are smarter at this than me
[code]
function ENT:OnInjured(info)
local attacker = info:GetAttacker()
if(IsValid(attacker) and attacker:IsPlayer()) then
attacker:AddMoney(10)
end
end
[/code]
[QUOTE=Coffeee;50194558][code]
function ENT:OnInjured(info)
local attacker = info:GetAttacker()
if(IsValid(attacker) and attacker:IsPlayer()) then
attacker:AddMoney(10)
end
end
[/code][/QUOTE]
thank you man
Sorry, you need to Log In to post a reply to this thread.