Hallo Brotfische,
Ich bin am verzweifeln, ich schaffe es nicht mehrer Checkpoints hintereinadner zu machen
Bei dem Job Straßenputzer!
Hier der /start ocmd
ocmd:start(playerid,params[])
{
if(SpielerInfo[playerid][Job]==1)
{
SP1[playerid]=1;
SendClientMessage(playerid, COLOR_GREY, "Fahre zu dem Checkpoint!");
SetPlayerCheckpoint(playerid,1730.4397,-1599.8080,13.0977,5);
}
else if(SpielerInfo[playerid][Job]==2)
{
}
else if(SpielerInfo[playerid][Job]==3)
{
}
return 1;
}
Und Das die Checkpoints
public OnPlayerEnterCheckpoint(playerid)
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(SP1[playerid] ==1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1730.4397,-1599.8080,13.0977,5);
SP2[playerid]=1;
}
if(SP2[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerPos(playerid,1927.1373,-1614.7980,13.1079);
SP3[playerid]=1;
}
if(SP3[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerPos(playerid,2255.4517,-1751.7482,13.1079);
SP4[playerid]=1;
}
if(SP4[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerPos(playerid,2376.3442,-1661.6870,13.1079);
SP5[playerid]=1;
}
if(SP5[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerPos(playerid,2505.6282,-1676.5297,13.1014);
SP6[playerid]=1;
}
if(SP6[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerPos(playerid,2123.9207,-1381.7404,23.5610);
SP7[playerid]=1;
}
if(SP7[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerPos(playerid,1873.5463,-1337.8395,13.1080);
SP8[playerid]=1;
}
if(SP8[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_YELLOW,"Du hast 1000$ erhalten");
SendClientMessage(playerid,COLOR_YELLOW,"Du bist wieder an der Base!");
GivePlayerMoney(playerid,1000);
SetVehicleToRespawn(vehicle);
SetPlayerPos(playerid,1671.2599,-1438.2283,13.1079);
}
DisablePlayerCheckpoint(playerid);
return 1;
}
Und wenn ich in den ersten Checkpoint reinfahre wird danach der letzte aufgerufen. Wie kann ich das ändern oder wo liegt der Fehler
Danke im vorraus!
Ich habe auch oben alles definert!
Mit freundlichen Grüßen,
Mausii