SA-MP Forums Archive
Question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question (/showthread.php?tid=217324)



Question - yanir3 - 27.01.2011

I want to make on OnPlayerDeath that someone's dies, it will move him to his death position, and he will have to acceptdeath,
I know how to do it, but, I made the SetPlayerPos, Toggle and such.. and the player respawns and nothing happens



Re: Question - yanir3 - 27.01.2011

Help


Re: Question - yanir3 - 05.02.2011

bumpXD


Re: Question - _Tommy - 05.02.2011

All you need is to save the current player's postion before he dies and setting any var for the player so we will be able to know if the player should be in the "death screen", and OnPlayerSpawn restoring player's health and applying th needed animation (here we are using our variable which we set for the dead player). After he types the command to accept death, kill the player and respawn him after deleting the death variable so it won't spawn him again in the same position.

Good luck.