29.05.2014, 08:38
His/her health will be reduced by 5% with the additional damage native to SA-MP, which doesn't solve anything and in fact just makes the problem worse. The only REAL way that you can solve this is by setting the players to the same team using SetPlayerTeam. This will disallow friendly fire within teams, so the player will natively do no damage at all. Then you can use OnPlayerGiveDamage etc. to calculate an appropriate deduction from the player's health when they are hit with a certain fighting style.
Note that this would affect all weapons and you would need to add callbacks like OnPlayerWeaponShot, OnPlayerTakeDamage etc.
To be honest, it really isn't worth all the hassle, just to stop all the damage from the fighting style. If it bothers you that much, just remove the fighting style.
Note that this would affect all weapons and you would need to add callbacks like OnPlayerWeaponShot, OnPlayerTakeDamage etc.
To be honest, it really isn't worth all the hassle, just to stop all the damage from the fighting style. If it bothers you that much, just remove the fighting style.