Danke Kaliber das du mir das mit deinem Include gezeigt hast nur hatte ich das jetzt so schon fertig...
So wie ich das gemacht habe ist es mega kompliziert und es geht nichtmal nur die ersten beiden Checkpoints gehen
public OnPlayerEnterCheckpoint(playerid)
{
if(aCheckpoint[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1181.7915,-1732.3220,12.9952,5.0);
aCheckpoint[playerid] = 2;
}
if(aCheckpoint[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1181.7915,-1732.3220,12.9952,5.0);
aCheckpoint[playerid] = 3;
}
if(aCheckpoint[playerid] == 3)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1277.3103,-1714.6207,12.9802,5.0);
aCheckpoint[playerid] = 4;
}
if(aCheckpoint[playerid] == 4)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1324.9828,-1734.1974,12.9781,5.0);
aCheckpoint[playerid] = 5;
}
if(aCheckpoint[playerid] == 6)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1432.0132,-1702.2429,12.9766,5.0);
aCheckpoint[playerid] = 7;
}
if(aCheckpoint[playerid] == 7)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1432.1726,-1607.1235,12.9783,5.0);
aCheckpoint[playerid] = 8;
}
if(aCheckpoint[playerid] == 8)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1443.0463,-1524.3309,12.9781,5.0);
aCheckpoint[playerid] = 9;
}
if(aCheckpoint[playerid] == 9)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1443.4373,-1438.6735,12.9782,5.0);
aCheckpoint[playerid] = 3;
}
if(aCheckpoint[playerid] == 10)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1371.8442,-1397.6431,12.9854,5.0);
aCheckpoint[playerid] = 11;
}
if(aCheckpoint[playerid] == 11)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1276.6720,-1397.6189,12.6545,5.0);
aCheckpoint[playerid] = 12;
}
if(aCheckpoint[playerid] == 12)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1193.7233,-1419.8304,12.8224,5.0);
aCheckpoint[playerid] = 13;
}
if(aCheckpoint[playerid] == 13)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1193.7649,-1555.5295,12.9803,5.0);
aCheckpoint[playerid] = 14;
}
if(aCheckpoint[playerid] == 14)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1165.2489,-1569.5559,12.8909,5.0);
aCheckpoint[playerid] = 15;
}
if(aCheckpoint[playerid] == 15)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1147.9670,-1635.4734,13.3786,5.0);
aCheckpoint[playerid] = 16;
}
if(aCheckpoint[playerid] == 16)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1173.0352,-1725.9763,13.1830,5.0); //1108.7813,-1737.9895,13.1086
aCheckpoint[playerid] = 17;
}
if(aCheckpoint[playerid] == 17)
{
SetPlayerCheckpoint(playerid,1108.7813,-1737.9895,13.1086,5.0);
DisablePlayerCheckpoint(playerid);
aCheckpoint[playerid] = 18;
}
if(aCheckpoint[playerid] == 18)
{
DisablePlayerCheckpoint(playerid);
aCheckpoint[playerid] = 0;
}
return 1;
}
Alles anzeigen