[SOLVED] Don't know why it didn't work
#1

i want to disable damage on interiors, soo i made this
pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
    new Float:Health;
    GetPlayerHealth(playerid, Health);

    if((GetPlayerInterior(playerid) > 0))
  {
    SetPlayerHealth(playerid, 10000000);
    }
    if((GetPlayerInterior(playerid) == 0))
    {
        SetPlayerHealth(playerid, Health);
    }

    return 1;
}
but if u have for example 50.0 of health, when u enter an interior and then go out of it, ur health= 100.0 :S
can someone help me with this?
Reply


Messages In This Thread
[SOLVED] Don't know why it didn't work - by TheChaoz - 28.12.2009, 20:40
Re: Don't know why it didn't work - by Bearfist - 28.12.2009, 20:49
Re: Don't know why it didn't work - by TheChaoz - 28.12.2009, 20:57
Re: Don't know why it didn't work - by Bearfist - 28.12.2009, 21:03
Re: Don't know why it didn't work - by TheChaoz - 28.12.2009, 21:10
Re: Don't know why it didn't work - by Bearfist - 28.12.2009, 21:16
Re: Don't know why it didn't work - by Dark_Kostas - 28.12.2009, 21:23
Re: Don't know why it didn't work - by TheChaoz - 28.12.2009, 21:29
Re: Don't know why it didn't work - by Dark_Kostas - 28.12.2009, 21:30
Re: Don't know why it didn't work - by fsnameless - 28.12.2009, 21:38

Forum Jump:


Users browsing this thread: 1 Guest(s)