Entering Checkpoint
#1

hey guys i got question. how am i abel to make this: lets say theres somekinda checkpoint made for like after something you will get reward when entering there but to make like that if you enter there once you get the stuff and if you enter again you wont get anything before finishing it again like race or some ?
Reply
#2

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(GetPVarInt(playerid, "GottenSomething") == 1) return 0;
    if(GetPVarInt(playerid, "GottenSomething") == 0)
    {
        //do something here.
    }
    return 1;
}
This is my way but there are other.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)