28.04.2016, 15:39
Update!
I found a better way to negate damage by putting players to the same teams, which fixes a bug with decreasing damage and makes it look less laggy overall.
Also explained about OnPlayerGiveDamage, and how it differentiates from OnPlayerTakeDamage.
For everyone using the old system
Read "OnPlayerTakeDamage VS OnPlayerGiveDamage", "Part 1 - Setting Teams", and make sure you don't negate the damage anymore, teams does this automatically.
Thanks to everyone for their feedback, much appreciated!
I found a better way to negate damage by putting players to the same teams, which fixes a bug with decreasing damage and makes it look less laggy overall.
Also explained about OnPlayerGiveDamage, and how it differentiates from OnPlayerTakeDamage.
For everyone using the old system
Read "OnPlayerTakeDamage VS OnPlayerGiveDamage", "Part 1 - Setting Teams", and make sure you don't negate the damage anymore, teams does this automatically.
Thanks to everyone for their feedback, much appreciated!