SA-MP Forums Archive
[HELP]Multiple Checkpoint missions! - 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: [HELP]Multiple Checkpoint missions! (/showthread.php?tid=316734)



[HELP]Multiple Checkpoint missions! - Scofield62 - 08.02.2012

Hi guys.

I need some help for my server. I want to Create Money transport mission. It mean I enter a car and i go to a pickup and it will randomly create dynamic checkpoint(more than one checkpoint) and when i go to the last checkpoint what I have, it will set a new checkpoint to the "Bank" to put the money. Anybody can help me?


Re: [HELP]Multiple Checkpoint missions! - T0pAz - 08.02.2012

What's the problem?


Re: [HELP]Multiple Checkpoint missions! - Scofield62 - 08.02.2012

I don't know how can i do this. I didn't find any help for this


Re: [HELP]Multiple Checkpoint missions! - Scofield62 - 08.02.2012

And i want to do this that the server pick up the missions randomly.


Re : [HELP]Multiple Checkpoint missions! - ricardo178 - 08.02.2012

Here you have an example, now, make your own.

pawn Код:
CMD:startdeliver(playerid, params[])
{
    SetPlayerCheckpoint(playerid, 2204.1548,-1977.5861,13.5469, 5.0);
    pCP[playerid] = 0;
}
pawn Код:
new Float:BCP[][3] =
{
    {1005.3883,-936.3937,42.3281},
    {1940.1459,-1772.6388,13.3906},
    {-91.3580,-1168.5400,2.4355},
    {655.7468,-565.1234,16.3359}
};
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(pCP[playerid] != -1)
    {
        GivePlayerMoneyEx(playerid, 50);
        if(pCP[playerid] < sizeof(BCP))
        {
            pCP[playerid]++;
            SetPlayerCheckpoint(playerid, BCP[pCP[playerid]][0], BCP[pCP[playerid]][1], BCP[pCP[playerid]][2], 5.0);
        }
        else
        {
            SendClientMessage(playerid, 0x999999AA, "Route finished");
            DisablePlayerCheckpoint(playerid);
            pCP[playerid] = -1;
        }
    }
By the way use the damn edit tool in forumns, instead of spamming with new posts.


AW: [HELP]Multiple Checkpoint missions! - T0pAz - 08.02.2012

Here you go.


Re: [HELP]Multiple Checkpoint missions! - Scofield62 - 08.02.2012

Yeah, but i use streamer and i want to make it with DYNAMIC CHECKPOINT what i said.


Re: [HELP]Multiple Checkpoint missions! - Scofield62 - 08.02.2012

Anyone?


Re: [HELP]Multiple Checkpoint missions! - MP2 - 08.02.2012

There's no way to show multiple checkpoints at a time.


Re: [HELP]Multiple Checkpoint missions! - Scofield62 - 08.02.2012

It has a chance i saw it in a server (Convoy Trucking) At FUEL MISSIONS :$ So it can be.