Health Not Decreasing ? - 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 Not Decreasing ? (
/showthread.php?tid=516475)
Health Not Decreasing ? -
rockhopper - 31.05.2014
I dont know wat happened suddenly To my server No Ones Health Decresing on shooting Explosion ETC Can some one tell me what is goin Wrong ?
Re: Health Not Decreasing ? -
Parallex - 31.05.2014
Try exploding the vehicle if someone is in it. If someone dies - maybe, in the script you got a god-mode function. Also, show us your code...
Re: Health Not Decreasing ? -
rockhopper - 31.05.2014
Thanks to help But idk It is working now ?? I also Dont know how this happened Lol Sorry
Re: Health Not Decreasing ? -
Eth - 31.05.2014
Check onplayergivedamage or onplayertakedamage, if you got any of it post it on the forums so we can see it.
Re: Health Not Decreasing ? -
rockhopper - 31.05.2014
Working
Re: Health Not Decreasing ? -
rockhopper - 01.06.2014
Its not working again -_-
Re: Health Not Decreasing ? -
Threshold - 01.06.2014
Are you using 'SetPlayerTeam' anywhere in your script?
Re: Health Not Decreasing ? -
rockhopper - 01.06.2014
Yes Many Times
Re: Health Not Decreasing ? -
Threshold - 01.06.2014
If a player's team is the same, they will not take damage from that other player.
Player A = Team 1
Player B = Team 2
Player C = Team 1
Player A cannot harm Player C, but can attack Player B.
Player B can attack both Player A and Player C.
Player C cannot harm Player A, but can attack Player B.
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.
|
Quote:
Originally Posted by SA-MP Wiki
255 (or NO_TEAM) is the default team to be able to shoot other players, not 0.
|
References:
SetPlayerTeam
Re: Health Not Decreasing ? -
rockhopper - 01.06.2014
Wow Thanks but how do i fix this ?