Help with OnPlayerDeath +rep
#3

Well, you can check the player health under OnPlayerTakeDamage and if it is below like 20 you can put him in that anim and with TogglePlayerControllable(someid, 0); so he wouldn't get that teleport, however, if he somehow get damaged more than 100 and dies like if he fall from a building or get shotted with 40 dmg while he has 30 health, the OnPlayerTakeDamage wouldn't work because he'd be death therefore you would still have to use both OnPlayerDeath and OnPlayerTakeDamage.
Reply


Messages In This Thread
Help with OnPlayerDeath +rep - by Matical - 09.01.2016, 17:48
Re: Help with OnPlayerDeath +rep - by N0FeaR - 09.01.2016, 18:19
Re: Help with OnPlayerDeath +rep - by thefirestate - 09.01.2016, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)