PHP Code:
g_Victim[__int_Victim] = __int_Attacker
As soon as you damage someone, the victim will catch your id.
And then, when damaging again, use
PHP Code:
if(g_Damage[__int_Attacker] == __int_Victim)
This will return true if the victim has damaged you before.
Your #4 sample was just in reverse, but you got the idea right.
__________________