[HELP] Checkpoints
#3

Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(TutCP[playerid]==1)
    {
        DisablePlayerCheckpoint(playerid);
        TutCP[playerid] = 2;
        SetPlayerCheckpoint(playerid, 1543.8728,-1669.8749,13.2300, 3.0);
        SendClientMessage(playerid,green,"This is the BurgerShot North! Here you can fill up your HP by eating");
        SendClientMessage(playerid,orange,"Go on, that's not all. Find now the next Checkpoint!");
        return 1;
    }
    if(TutCP[playerid]==2)
    {
        DisablePlayerCheckpoint(playerid);
        TutCP[playerid] = 3;
        SetPlayerCheckpoint(playerid, 1483.7485,-1764.6368,18.7958, 3.0);
        SendClientMessage(playerid,green,"Here is the Los Santos Police Department! If you get problems, they'll help you. Please respect them.");
        SendClientMessage(playerid,orange,"Go on, that's not all. Find now the next Checkpoint!");
        return 1;
    }
    if(TutCP[playerid]==3)
    {
         DisablePlayerCheckpoint(playerid);
        TutCP[playerid] = 4;
        SetPlayerCheckpoint(playerid, 1348.5499,-1752.1724,13.3611, 3.0);
        SendClientMessage(playerid,green,"Here is the Los Santos Office. Here you find Jobs and create your identity card");
        SendClientMessage(playerid,orange,"Go on, that's not all. Find now the next Checkpoint!");
        return 1;
    }
    if(TutCP[playerid]==4)
    {
        DisablePlayerCheckpoint(playerid);
        TutCP[playerid] = 5;
        SetPlayerCheckpoint(playerid, 1363.9559,-1285.0071,13.5469, 3.0);
        SendClientMessage(playerid,green,"This is the 24/7 shop. Here you can buy a mobile phone, some snacks and more..!");
        SendClientMessage(playerid,orange,"Go on, that's not all. Find now the next Checkpoint!");
        return 1;
    }
    if(TutCP[playerid]==5)
    {
        DisablePlayerCheckpoint(playerid);
        TutCP[playerid] = 6;
        SetPlayerCheckpoint(playerid, 777.0124,-1388.1178,13.6335, 3.0);
        SendClientMessage(playerid,green,"Here is the LS Ammunation! You can buy guns here. But first, you'll need a gun license.");
        SendClientMessage(playerid,orange,"Go on, that's not all. Find now the next Checkpoint!");
        return 1;
    }
    if(TutCP[playerid]==6)
    {
        DisablePlayerCheckpoint(playerid);
        TutCP[playerid] = 7;
        SetPlayerCheckpoint(playerid, 488.8225,-1520.5413,19.8818, 3.0);
        SendClientMessage(playerid,green,"Here is the Car-Shop. You can buy cars here, but first you'll need a drivers license");
        SendClientMessage(playerid,orange,"Go on, that's not all. Find now the next Checkpoint!");
        return 1;
    }
    if(TutCP[playerid]==7)
    {
        DisablePlayerCheckpoint(playerid);
        TutCP[playerid]=0;
        SendClientMessage(playerid,green,"This is the driving school in Los Santos. You've also done the Tutorial by now.");
        return 1;
    }
    return 1;
}
try like this... u didnt have return 1; after each cp which meant it was going from 1 to the next untill it finished everything.. this should work fine i think
Reply


Messages In This Thread
[HELP] Checkpoints - by NuggaN - 14.03.2013, 23:04
Re: [HELP] Checkpoints - by NuggaN - 14.03.2013, 23:31
Re: [HELP] Checkpoints - by Tika Spic - 14.03.2013, 23:41
Re: [HELP] Checkpoints - by NuggaN - 14.03.2013, 23:43
Re: [HELP] Checkpoints - by NuggaN - 14.03.2013, 23:51
Re: [HELP] Checkpoints - by Jefff - 14.03.2013, 23:51
Re: [HELP] Checkpoints - by NuggaN - 15.03.2013, 00:07
Re: [HELP] Checkpoints - by Tika Spic - 15.03.2013, 05:48

Forum Jump:


Users browsing this thread: 2 Guest(s)