
I need a simple script that count the damage you did for the other players , and show it in a hud text.
yuki = {} addhook("hit", "yuki.hit") function yuki.hit(vic, src, wpn, dmg1, dmg2, dmg3) 	if src < 33 and src > 0 and player(src, "exists") then 		msg2 (src, "\169255255255-"..dmg1.."HP@C") 		return 1 	end end
sd = {} function initArray(m) 	local array = {} 	for i = 1, m do 		array[i]=0 	end 	return array end sd.damage = initArray(32) addhook('hit','sd.hit') function sd.hit(id,src,wpn,hp) 	if hp > 0 then 		sd.damage[src] = sd.damage[src] + hp 		sd.show(src) 	end end function sd.show(id) parse('hudtxt2 '..id..' 1 "\169255000000Damage Total: \169255195100'..sd.damage[id]..' " 120 338') end
dmgdealed = {} addhook("hit", "_h") addhook("spawn", "_s") function _h (vic, src, wpn, dmg1, dmg2, dmg3) 	if vic > 0 and vic < 33 and src > 0 and src < 33 then 		dmgdealed[src] = dmgdealed[src] + dmg1 		parse ('hudtxt2 '..src..' 1 "\169255255255Dmg Dealed: '..dmgdealed[src]..' " 577 350 1') 	end end function _s (p) 	dmgdealed[p] = 0 	parse ('hudtxt2 '..p..' 1 "\169255255255Dmg Dealed: '..dmgdealed[p]..' " 577 350 1')	 end