28.08.2016, 06:10
EDIT
I like your method but it will only work for avoiding the fall damage,it cant work in the instant spawn thing.
And please take a look at the code again,i added 2 ways of detecting,if the player does not dies when the player falls,the health remains the same,and there is a default system in the game (Gta SA) that when the player falls from a high place,the player dies,so avoid that i added that spawn canceling system.
I like your method but it will only work for avoiding the fall damage,it cant work in the instant spawn thing.
And please take a look at the code again,i added 2 ways of detecting,if the player does not dies when the player falls,the health remains the same,and there is a default system in the game (Gta SA) that when the player falls from a high place,the player dies,so avoid that i added that spawn canceling system.