Quote:
Originally Posted by zXCaptainXz
There are many things I don't understand in your code, most importantly why are you giving assists in both Ham_TakeDamage and Ham_TakeDamage forwards. You should either do it in one or the other, either you get an assist immediately after dealing 1/3 the original health of the player or you get an assist after the player gets killed by someone other than you and you dealt more than 1/3 the original health of the player. The latter case makes more sense anyway, assists should be given when the victim dies. I coded a plugin which probably does what you want with way less clutter, if you want you can try it and see if it solves your problem.
|
Edited: I read wrong, I'll check if this way is better
Edited 2:
Problem solved. I seem to like to complicate my life when trying to create a thousand checks for a condition to be met.
I will rewrite my plugin taking your plugin as an example.
Thanks @zXCaptainXz