Guten abend,
Und zwar wenn ich die Buslinie 1 nehme und die fahre kommt jedes mal Nächste Haltestelle: Stadthalle -> Nächste Haltestelle: Rodeo
Manchmal kommen mehr halten stellen und wenn ich dann an gewissen checkpoint bin.
Krieg ich das Geld von den anderen Haltestellen.
Code:
if(L0Checkpoint[playerid]==1)
{
if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
SetPlayerCheckpoint(playerid,776.9352,-1042.2952,24.2814,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Friedhof", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer",10000,0,"i",playerid);
L0Checkpoint[playerid]=2;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L0Checkpoint[playerid]==2)
{
if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
SetPlayerCheckpoint(playerid,623.6121,-1254.5010,17.6575,6.0);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Tennis Club", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L0Checkpoint[playerid]=3;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L0Checkpoint[playerid]==3)
{
if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
SetPlayerCheckpoint(playerid,505.9393,-1414.6676,16.0744,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Hotel Lica", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=4;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L0Checkpoint[playerid]==4)
{
if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
SetPlayerCheckpoint(playerid,394.2750,-1654.1613,31.1475,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Angelsteg", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=5;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L0Checkpoint[playerid]==5)
{
SetPlayerCheckpoint(playerid,1033.9972,-1615.7546,13.4760,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Busdepot Süd", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=6;
}
else if(L0Checkpoint[playerid]==6)
{
SetPlayerCheckpoint(playerid,1175.2574,-1855.5714,13.4916,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Busdepot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=7;
}
else if(L0Checkpoint[playerid]==7)
{
SetPlayerCheckpoint(playerid,1417.4940,-1735.2634,13.3906,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Stadthalle", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=8;
}
else if(L0Checkpoint[playerid]==8)
{
SetPlayerCheckpoint(playerid,1854.5161,-1755.6998,13.4761,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Alhambra", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=9;
}
else if(L0Checkpoint[playerid]==9)
{
SetPlayerCheckpoint(playerid,1717.9143,-1356.6332,13.4759,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Downtown", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=10;
}
else if(L0Checkpoint[playerid]==10)
{
SetPlayerCheckpoint(playerid,1461.2816,-1030.4275,23.7494,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Bank", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",6000,0,"i",playerid);
L0Checkpoint[playerid]=11;
}
else if(L0Checkpoint[playerid]==11)
{
SetPlayerCheckpoint(playerid,1181.5731,-936.9670,42.8555,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santo Burger Shot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=12;
}
else if(L0Checkpoint[playerid]==12)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Sie haben diese Linie beendet und erhälten $2500.");
PlayerInfo[playerid][pAccount]+=2500;
DisablePlayerCheckpoint(playerid);
}
if(L1Checkpoint[playerid]==1)
{
if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
{
SetPlayerCheckpoint(playerid,794.0136,-1350.2284,13.1138,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Market Station", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L1Checkpoint[playerid]=2;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L1Checkpoint[playerid]==2)
{
if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
{
SetPlayerCheckpoint(playerid,1129.1219,-1409.4923,13.1807,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Krankenhaus", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=3;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L1Checkpoint[playerid]==3)
{
if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
{
SetPlayerCheckpoint(playerid,1146.2118,-1619.3352,13.5083,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Busdepot Süd", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=4;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L1Checkpoint[playerid]==4)
{
if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
{
SetPlayerCheckpoint(playerid,1175.2574,-1855.5714,13.4916,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Busdepot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=5;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L1Checkpoint[playerid]==5)
{
SetPlayerCheckpoint(playerid,1417.4940,-1735.2634,13.3906,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Stadthalle", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=6;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==6)
{
SetPlayerCheckpoint(playerid,1817.8978,-1919.9874,13.1065,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Taxidepot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=7;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==7)
{
SetPlayerCheckpoint(playerid,1983.5197,-2170.0059,13.1067,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Flughafen", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=8;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==8)
{
SetPlayerCheckpoint(playerid,2253.0396,-2224.6731,13.0342,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Waffenfabrik", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=9;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==9)
{
SetPlayerCheckpoint(playerid,1431.9406,-2286.9824,13.1099,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Flughafen Ostseite", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=10;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==10)
{
SetPlayerCheckpoint(playerid,1431.8497,-939.5906,35.8273,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Autobahnkreuz", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=11;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==11)
{
SetPlayerCheckpoint(playerid,1181.5731,-936.9670,42.8555,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Burger Shot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=12;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==12)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Sie haben diese Linie beendet und erhälten $3500.");
PlayerInfo[playerid][pAccount]+=3500;
DisablePlayerCheckpoint(playerid);
}
{
if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
SetPlayerCheckpoint(playerid,776.9352,-1042.2952,24.2814,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Friedhof", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer",10000,0,"i",playerid);
L0Checkpoint[playerid]=2;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L0Checkpoint[playerid]==2)
{
if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
SetPlayerCheckpoint(playerid,623.6121,-1254.5010,17.6575,6.0);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Tennis Club", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L0Checkpoint[playerid]=3;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L0Checkpoint[playerid]==3)
{
if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
SetPlayerCheckpoint(playerid,505.9393,-1414.6676,16.0744,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Hotel Lica", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=4;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L0Checkpoint[playerid]==4)
{
if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
SetPlayerCheckpoint(playerid,394.2750,-1654.1613,31.1475,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Angelsteg", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=5;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L0Checkpoint[playerid]==5)
{
SetPlayerCheckpoint(playerid,1033.9972,-1615.7546,13.4760,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Busdepot Süd", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=6;
}
else if(L0Checkpoint[playerid]==6)
{
SetPlayerCheckpoint(playerid,1175.2574,-1855.5714,13.4916,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Busdepot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=7;
}
else if(L0Checkpoint[playerid]==7)
{
SetPlayerCheckpoint(playerid,1417.4940,-1735.2634,13.3906,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Stadthalle", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=8;
}
else if(L0Checkpoint[playerid]==8)
{
SetPlayerCheckpoint(playerid,1854.5161,-1755.6998,13.4761,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Alhambra", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=9;
}
else if(L0Checkpoint[playerid]==9)
{
SetPlayerCheckpoint(playerid,1717.9143,-1356.6332,13.4759,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Downtown", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=10;
}
else if(L0Checkpoint[playerid]==10)
{
SetPlayerCheckpoint(playerid,1461.2816,-1030.4275,23.7494,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Bank", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",6000,0,"i",playerid);
L0Checkpoint[playerid]=11;
}
else if(L0Checkpoint[playerid]==11)
{
SetPlayerCheckpoint(playerid,1181.5731,-936.9670,42.8555,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santo Burger Shot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L0Checkpoint[playerid]=12;
}
else if(L0Checkpoint[playerid]==12)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Sie haben diese Linie beendet und erhälten $2500.");
PlayerInfo[playerid][pAccount]+=2500;
DisablePlayerCheckpoint(playerid);
}
if(L1Checkpoint[playerid]==1)
{
if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
{
SetPlayerCheckpoint(playerid,794.0136,-1350.2284,13.1138,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Market Station", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer0",10000,0,"i",playerid);
L1Checkpoint[playerid]=2;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L1Checkpoint[playerid]==2)
{
if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
{
SetPlayerCheckpoint(playerid,1129.1219,-1409.4923,13.1807,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Krankenhaus", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=3;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L1Checkpoint[playerid]==3)
{
if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
{
SetPlayerCheckpoint(playerid,1146.2118,-1619.3352,13.5083,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Busdepot Süd", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=4;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L1Checkpoint[playerid]==4)
{
if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
{
SetPlayerCheckpoint(playerid,1175.2574,-1855.5714,13.4916,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Busdepot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=5;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
}
}
else if(L1Checkpoint[playerid]==5)
{
SetPlayerCheckpoint(playerid,1417.4940,-1735.2634,13.3906,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Stadthalle", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=6;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==6)
{
SetPlayerCheckpoint(playerid,1817.8978,-1919.9874,13.1065,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Taxidepot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=7;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==7)
{
SetPlayerCheckpoint(playerid,1983.5197,-2170.0059,13.1067,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Flughafen", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=8;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==8)
{
SetPlayerCheckpoint(playerid,2253.0396,-2224.6731,13.0342,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Waffenfabrik", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=9;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==9)
{
SetPlayerCheckpoint(playerid,1431.9406,-2286.9824,13.1099,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Flughafen Ostseite", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=10;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==10)
{
SetPlayerCheckpoint(playerid,1431.8497,-939.5906,35.8273,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Autobahnkreuz", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=11;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==11)
{
SetPlayerCheckpoint(playerid,1181.5731,-936.9670,42.8555,6.0);
ProxDetector(5.0, playerid, "Nächster Halt: Los Santos Burger Shot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
L1Checkpoint[playerid]=12;
TogglePlayerControllable(playerid,0);
SetTimerEx("HaltestelleTimer1",10000,0,"i",playerid);
}
else if(L1Checkpoint[playerid]==12)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Sie haben diese Linie beendet und erhälten $3500.");
PlayerInfo[playerid][pAccount]+=3500;
DisablePlayerCheckpoint(playerid);
}
Könnte mir jemand helfen das zu beheben ?
Mfg
Toni_Price