to stop repeating the checkpoint
#2

I took it to myself to create it for you. Edit it how you like. (Untested)
pawn Код:
new HealthTimer;
forward RaiseHealth(playerid, Float:Health);

public RaiseHealth(playerid)
{
    new
        Float:Health;
       
    GetPlayerHealth(playerid, Float:Health);
    SetPlayerHealth(playerid, Float:Health+1.00);
    return true;
}

public OnPlayerEnterCheckpoint(playerid)
{
    HealthTimer = SetTimerEx("RaiseHealth", 1000, true, "f", playerid);
    return true;
}

public OnPlayerLeaveCheckpoint(playerid)
{
    KillTimer(HealthTimer);
    return true;
}
Reply


Messages In This Thread
to stop repeating the checkpoint - by WardenCS - 11.12.2009, 22:43
Re: to stop repeating the checkpoint - by Abernethy - 11.12.2009, 22:54
Re: to stop repeating the checkpoint - by Correlli - 11.12.2009, 23:07

Forum Jump:


Users browsing this thread: 1 Guest(s)