19.05.2017, 10:22
You'll have to make an array of some sort, that stores the ID of the player who caused the damage, and how much damage they did.
This will be rather advanced as it will require shifting the oldest damages up in the array, and putting them into the next on each OnPlayerTakeDamage/OnPlayerGiveDamage. Which really, may take a bit of work, and you'll need to optimize it as if you do it wrong, you'll end up lagging out the server if multiple people are fighting.
This will be rather advanced as it will require shifting the oldest damages up in the array, and putting them into the next on each OnPlayerTakeDamage/OnPlayerGiveDamage. Which really, may take a bit of work, and you'll need to optimize it as if you do it wrong, you'll end up lagging out the server if multiple people are fighting.