Roleplay Death - 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: Roleplay Death (
/showthread.php?tid=562599)
Roleplay Death -
lwilson - 10.02.2015
How to make Roleplay Death when you died , you will have 100 HP again and get an INJURED Animation and Gametext "Injured"/service ems"
Re: Roleplay Death -
HazardouS - 10.02.2015
Just an idea, make the lowest HP of a player be 1, not 0. When he reaches 1 HP, any source of damage (OnPlayerGiveDamage / OnPlayerTakeDamage) will be blocked (return 0 or something, not sure), and the player will be healed. Then, you can freeze him, send him a message that he has to call for EMS and whatever you want.
Re: Roleplay Death -
bradleyofniet - 10.02.2015
Use a simple system where it saves the coordinates of the place where the person died, then TP the person to that coordinates, freeze them, or set them in an animation which makes them unable to move, and let it show a text with "Call the EMS to get rescued."
Re: Roleplay Death -
Beckett - 10.02.2015
Save the coordinates upon OnPlayerDeath into variables then when he spawns set a time of atleast 300 ms setting the player's position to where he was. I've acknowledged that you can't set the player pos once he spawns, you can do that but it causes issues sometimes then simply apply the animation.
Good luck.