Damage player with set Attacker

How would I damage a player, and set who the attacker was? I imagine something like:

[lua]ply:Hurt( damage, attacker )[/lua]
or
[lua]ply:Hurt( damageinfo )[/lua]

Thanks in advance.

Alright, thanks.

Alternatively:

This one’s perfect for my needs, thanks.

Is it possible to do the damage without any view kick?