SA-MP Forums Archive
Entering Checkpoint - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Entering Checkpoint (/showthread.php?tid=484928)



Entering Checkpoint - Acres - 02.01.2014

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 ?


Re: Entering Checkpoint - Brandon_More - 02.01.2014

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.