SA-MP Forums Archive
How you create pickups checkpoints? - 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: How you create pickups checkpoints? (/showthread.php?tid=581403)



How you create pickups checkpoints? - Metharon - 12.07.2015

How can i make ths kind of checkpoints as pickups ? i never tried before to use a checkpoint as pickup





Re: How you create pickups checkpoints? - Dan. - 12.07.2015

U can do:

Код:
YourCP = CreateDynamicCP(-895.0860,2002.6703,60.9141, 3.0, -1, -1, -1, 100.0);
And then:

Код:
forward OnPlayerEnterDynamicCP(playerid, checkpointid);
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == YourCP)
    {
         // Your code
    }
    return 1;
}
It uses the Streamer plugin: https://sampforum.blast.hk/showthread.php?tid=102865