[lua]function ENT:Use()
ply:SetHealth(ply:Health() + 20)
self.Entity:Remove()
end[/lua]
in this code how do i get the player that is using the entity
[lua]function ENT:Use()
ply:SetHealth(ply:Health() + 20)
self.Entity:Remove()
end[/lua]
in this code how do i get the player that is using the entity
[lua]function ENT:Use( ent )
if ent:IsPlayer() then
ent:SetHealth(ent:Health() + 20)
end
self.Entity:Remove()
end[/lua]
It worked Thankes