[HELP]Multiple Checkpoint missions!
#1

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?
Reply
#2

What's the problem?
Reply
#3

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

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

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.
Reply
#6

Here you go.
Reply
#7

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

Anyone?
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)