1
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("hit", "AdminKill")
function AdminKill(victim, killer, weapon, hpdmg)
	-- Check if the killer is 'iDios' here, if so, proceed to the step below:
	if player(victim, "health") - hpdmg <= 0 then
		local oldname = player(killer, "name")
		local newname = oldname .. " (Adm)"
		parse("setname %i %s":format(killer, newname))
		parse("customkill %i %s %i":format(killer, weapon, victim))
		parse("setname %i %s":format(killer, oldname))
		return 1
	end
end