I need help to write plugin, which shows damage done.
When player hits a target, in bottom of his screen appears HUD-message with (all damage)+(damage of this hit) in 1 constant.
I have constants:
damage = read_data(2)
dmdone = 0 (starting value)
new killer = get_user_attacker(id) - index, which uses in HUD-msg
I know that this is a cycle, but dont know how organizate it.
without cycle I tried to write:
dmdone = dmdone + damage
But no effect (HUD-message prints value 0 without changes)
P.S. Constant must changes with every hit
P.P.S For Zombie Server