Losing Health When Entering a Checkpoint [HELP] +REP
#3

Replace your code with the following.
pawn Код:
public OnCheckpointEnter(playerid, checkpointid)
{
    switch(checkpointid)

    {
        case Checkpoint 1:

        {
           
            new Float:hp;
                        GetPlayerHealth(playerid, hp);
                        SetPlayerHealth(playerid, hp - 50.0);  

        }

    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)