Health & armor not being touched. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Health & armor not being touched. (
/showthread.php?tid=550775)
Health & armor not being touched. -
RedCounty - 14.12.2014
For some reason the person being shot at isn't losing any health or armour upon them being shot at, nor is weapon damage to vehicles doing anything.
There is nothing under the following:
OnPlayerTakeDamage
OnPlayerGiveDamage
OnPlayerWeaponShot
As I have commented them out. What could be the issue?
Re: Health & armor not being touched. -
Pottus - 14.12.2014
All the players are on the same team other than team 0 look into that.
Re: Health & armor not being touched. -
Threshold - 15.12.2014
As mentioned above by Pottus, this is your error.
This information is referenced on the SA-MP wiki.
Quote:
Originally Posted by SA-MP Wiki
Players can not damage/kill players on the same team unless they use a knife to slit their throat. As of SA-MP 0.3x, players are also unable to damage vehicles driven by a player from the same team. This can be enabled with EnableVehicleFriendlyFire.
|
References:
https://sampwiki.blast.hk/wiki/EnableVehicleFriendlyFire
https://sampwiki.blast.hk/wiki/SetPlayerTeam