14.03.2013, 23:04
I've a problem! When I start the tutorial by going into a Icon, there shows up a Dialog and by hitting "ok" u start the tutorial.
Now my prob is: it shows up the first checkpoint i.e bsn, when I am at the checkpoint, it doesnt show the next one and I get the message of all checkpoints... how I fix that??
http://www.abload.de/img/1123w8k48.png
here the code
Now my prob is: it shows up the first checkpoint i.e bsn, when I am at the checkpoint, it doesnt show the next one and I get the message of all checkpoints... how I fix that??
http://www.abload.de/img/1123w8k48.png
here the code
PHP код:
if(response==1)
{
TutCP[playerid]=1;
SetPlayerCheckpoint(playerid,1191.9098,-920.0125,42.8168,3.0);
SendClientMessage(playerid,green,"You've started the Tutorial. Please follow the Checkpoints!");
}
PHP код:
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!");
}
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!");
}
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!");
}
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!");
}
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!");
}
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!");
}
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;
}