09.06.2013, 19:04
Just a couple of questions.
1.) This line is on OnPlayerGiveDamage()
Why are you damaging the player who gave the damage but not the person who received the damage?
2.) What happens when a shot is synced but also OnPlayerGiveDamage() is called the player will receive a more damage.
3.) When setting a players health to zero it will case a lot a problems with who killed who.
4.) Why do this in DamagePlayer()?
It's not needed.
I think you have some serious issues to work out with this include.
1.) This line is on OnPlayerGiveDamage()
pawn Код:
DamagePlayer(playerid, float(final)); //Damages player more!
2.) What happens when a shot is synced but also OnPlayerGiveDamage() is called the player will receive a more damage.
3.) When setting a players health to zero it will case a lot a problems with who killed who.
4.) Why do this in DamagePlayer()?
pawn Код:
if(!IsPlayerConnected(playerid)) return 0;
I think you have some serious issues to work out with this include.