[HELP] Checkpoints
#6

Clearly version but Tika is good too

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(1 <= TutCP[playerid] <= 7)
    {
        TutCP[playerid]++;
        DisablePlayerCheckpoint(playerid);
        switch(TutCP[playerid]-1)
        {
            case 1:
            {
                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!");
            }
            case 2:
            {
                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!");
            }
            case 3:
            {
                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!");
            }
            case 4:
            {
                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!");
            }
            case 5:
            {
                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!");
            }
            case 6:
            {
                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!");
            }
            default:
            {
                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 0;
}
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: 1 Guest(s)