[HELP]Multiple Checkpoint missions!
#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


Messages In This Thread
[HELP]Multiple Checkpoint missions! - by Scofield62 - 08.02.2012, 11:30
Re: [HELP]Multiple Checkpoint missions! - by T0pAz - 08.02.2012, 11:31
Re: [HELP]Multiple Checkpoint missions! - by Scofield62 - 08.02.2012, 11:32
Re: [HELP]Multiple Checkpoint missions! - by Scofield62 - 08.02.2012, 11:34
Re : [HELP]Multiple Checkpoint missions! - by ricardo178 - 08.02.2012, 11:34
AW: [HELP]Multiple Checkpoint missions! - by T0pAz - 08.02.2012, 11:35
Re: [HELP]Multiple Checkpoint missions! - by Scofield62 - 08.02.2012, 11:47
Re: [HELP]Multiple Checkpoint missions! - by Scofield62 - 08.02.2012, 16:45
Re: [HELP]Multiple Checkpoint missions! - by MP2 - 08.02.2012, 16:48
Re: [HELP]Multiple Checkpoint missions! - by Scofield62 - 08.02.2012, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)