11.04.2016, 02:56
The heading describes most of it.
When I enter the interior it should block me from dying,
and when out, set to the same health I had before entering the interior
instead it just sets my health to 0, why?
What I have:
[Under OnPlayerInteriorChange]
If anyone can make me the script, I'll rep him/her.
Thanks!
When I enter the interior it should block me from dying,
and when out, set to the same health I had before entering the interior
instead it just sets my health to 0, why?
What I have:
Код:
new Float:oldHealth; if(newinteriorid != 0) { GetPlayerHealth(playerid, oldHealth); SetPlayerHealth(playerid, 99999); } if(newinteriorid == 0) { SetPlayerHealth(playerid, Float:oldHealth); }
If anyone can make me the script, I'll rep him/her.
Thanks!