Busfahrer Checkpoint geht nicht weiter

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Beitrag von Red_Romeo ()

    Dieser Beitrag wurde gelöscht, Informationen über den Löschvorgang sind nicht verfügbar.
  • Beitrag von justRevitox ()

    Dieser Beitrag wurde gelöscht, Informationen über den Löschvorgang sind nicht verfügbar.
  • Was steht im Server Log, wenn du den Timer so schreibst?

    Spoiler anzeigen
    public OnPlayerTimer()
    {
    new string[128], vehicleid;
    printf("OnPlayerTimer aufgerufen.");
    for(new i=0;i<GetMaxPlayers();i++)
    {
    if(IsPlayerConnected(i))
    {
    printf("Spieler %d connected.", i);
    if(GetPlayerVirtualWorld(i) == 0 && GetPlayerInterior(i) == 0)
    {
    new Float:xx, Float:yy, Float:zz;
    GetPlayerPos(i, xx, yy, zz);
    if((xx > -992.5172 && xx < 4000.0000) && (yy < 528.0000 && yy > -4000.0000))
    {
    // Los Santos
    SetPlayerWeather(i, currentWeather[0]);
    }
    if((xx > -4000.0000 && xx< -992.5172) && (yy < 4000.0000 && yy > -4000.0000))
    {
    // San Fierro
    SetPlayerWeather(i, currentWeather[1]);
    }
    if((xx > -992.5172 && xx< 4000.0000) && (yy < 4000.0000 && yy > 528.0000))
    {
    // Las Venturas
    SetPlayerWeather(i, currentWeather[2]);
    }
    }
    else
    {
    SetPlayerWeather(i, 2);
    }
    printf("Starte...%d", i);
    if(Spieler[i][pLoggedIn])
    {
    printf("Logged in. BusTime: %d", Spieler[i][pBusTime]);
    if(Spieler[i][pBusTime] > 1)
    {
    printf("CP: %d==%d", GetPlayerCheckpointType(i), CP_TYPE_BUS);
    if(GetPlayerCheckpointType(i) == CP_TYPE_BUS)
    {
    printf("Bus: %d", IsVehicleABus(GetPlayerVehicleID(i)));
    if(IsVehicleABus(GetPlayerVehicleID(i)))
    {
    printf("InCP: %d", IsPlayerInCheckpoint(i));
    if(IsPlayerInCheckpoint(i))
    {
    Spieler[i][pBusTime] --;
    format(string, sizeof(string), "~w~Haltestelle..~b~%d", Spieler[i][pBusTime]);
    printf("Setze: %s", string);
    GameTextForPlayer(i, string, 1200, 5);
    ShowBusTextDraw(i);
    }
    }
    else
    {
    printf("Abbruch.");
    Spieler[i][pBusTime] = 0;
    HideBusTextDraw(i);
    SendClientMessage(i, COLOR_GREY, "** Der Countdown wurde abgebrochen!");
    }
    }
    }
    else
    {
    if(GetPlayerCheckpointType(i) == CP_TYPE_BUS)
    {
    if(IsVehicleABus(vehicleid))
    {
    if(IsPlayerInCheckpoint(i))
    {
    switch(GetPlayerCheckpointID(i))
    {
    // Linie 1
    case CP_BUSFAHRER_LINIE_1_1:
    {
    SetPlayerCheckpointEx(i, 1481.5775,-1730.3295,12.9539, 3.0, CP_BUSFAHRER_LINIE_1_2, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Stadthalle"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i); Spieler[i][pBusStamp] = gettime();
    }
    case CP_BUSFAHRER_LINIE_1_2:
    {
    SetPlayerCheckpointEx(i, 1437.1228,-1031.9480,23.2275, 3.0, CP_BUSFAHRER_LINIE_1_3, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Los Santos Bank"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_1_3:
    {
    SetPlayerCheckpointEx(i, 1195.7300,-935.7947,42.3151, 3.0, CP_BUSFAHRER_LINIE_1_4, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Burger Shot North"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_1_4:
    {
    SetPlayerCheckpointEx(i, 534.6187,-1243.9463,16.0791, 3.0, CP_BUSFAHRER_LINIE_1_5, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Rodeo (A)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_1_5:
    {
    SetPlayerCheckpointEx(i, 166.8460,-1524.6187,11.7255, 3.0, CP_BUSFAHRER_LINIE_1_6, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Rodeo (B)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_1_6:
    {
    SetPlayerCheckpointEx(i, 411.0383,-1774.9216,4.8480, 3.0, CP_BUSFAHRER_LINIE_1_7, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Santa Maria Beach"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_1_7:
    {
    SetPlayerCheckpointEx(i, 815.4914,-1786.2496,13.1840, 3.0, CP_BUSFAHRER_LINIE_1_8, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Verona Beach"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_1_8:
    {
    SetPlayerCheckpointEx(i, 1480.6875,-1734.8828,12.9449, 3.0, CP_BUSFAHRER_LINIE_1_9, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Stadthalle"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_1_9:
    {
    SetPlayerCheckpointEx(i, 1733.4503,-1749.0454,13.0947, 3.0, CP_BUSFAHRER_LINIE_1_10, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Los Santos Busdepot"); PlayerPlaySound(i, 1057, 0, 0, 0);HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_1_10:
    {
    HideBusTextDraw(i);
    DisablePlayerCheckpointEx(i);
    UpdateDynamic3DTextLabelText(Vehicle[vehicleid][vehText], COLOR_LIGHTWHITE, "Leerfahrt");
    SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Leerfahrt!");
    new randomGehalt = randomex(2800, 3200); // Maximum ungf. 35200$
    format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"$%d "COLOR_HEX_WHITE"auf deinen nächsten Zahltag erhalten!", randomGehalt);
    SendClientMessage(i, COLOR_WHITE, string);
    new randomSkill = randomex(1, 5);
    format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"%d EXP"COLOR_HEX_WHITE" erhalten.", randomSkill);
    SendClientMessage(i, COLOR_WHITE, string);
    Spieler[i][pJobMoney] += randomGehalt;
    Spieler[i][pJobCount] ++;
    GivePlayerBusSkill(i, randomSkill);
    PlayerPlaySound(i, 1057, 0, 0, 0);
    format(string, sizeof(string), "[DEBUG] [BUS] %s(ID:%d) hat Linie 1 in %d Sekunden fertiggestellt.", GetName(i), i, gettime()-Spieler[i][pBusStamp]);
    SendClientMessageToAll(COLOR_YELLOW, string);
    print(string);
    }
    // Linie 2
    case CP_BUSFAHRER_LINIE_2_1:
    {
    SetPlayerCheckpointEx(i, 1871.9470,-1935.1178,13.2142, 3.0, CP_BUSFAHRER_LINIE_2_2, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: El Corona"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i); Spieler[i][pBusStamp] = gettime();
    }
    case CP_BUSFAHRER_LINIE_2_2:
    {
    SetPlayerCheckpointEx(i, 2276.1943,-1752.5480,13.2144, 3.0, CP_BUSFAHRER_LINIE_2_3, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Ganton"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_3:
    {
    SetPlayerCheckpointEx(i, 2698.1465,-1660.6047,11.9219, 3.0, CP_BUSFAHRER_LINIE_2_4, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: East Beach (A)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_4:
    {
    SetPlayerCheckpointEx(i, 2878.0823,-1435.9349,10.6250, 3.0, CP_BUSFAHRER_LINIE_2_5, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: East Beach (B)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_5:
    {
    SetPlayerCheckpointEx(i, 2639.8193,-1076.9867,69.2849, 3.0, CP_BUSFAHRER_LINIE_2_6, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Las Colinas (A)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_6:
    {
    SetPlayerCheckpointEx(i, 2674.0710,-1446.1620,30.2073, 3.0, CP_BUSFAHRER_LINIE_2_7, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: East Beach (C)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_7:
    {
    SetPlayerCheckpointEx(i, 2345.7659,-1539.8009,23.6675, 3.0, CP_BUSFAHRER_LINIE_2_8, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: East Los Santos (A)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_8:
    {
    SetPlayerCheckpointEx(i, 2306.7446,-1249.1027,23.6773, 3.0, CP_BUSFAHRER_LINIE_2_9, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: East Los Santos (B)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_9:
    {
    SetPlayerCheckpointEx(i, 2437.0984,-1089.1384,42.0089, 3.0, CP_BUSFAHRER_LINIE_2_10, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Las Colinas (B)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_10:
    {
    SetPlayerCheckpointEx(i, 2520.8274,-1045.1201,69.2458, 3.0, CP_BUSFAHRER_LINIE_2_11, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Las Colinas (C)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_11:
    {
    SetPlayerCheckpointEx(i, 2179.4429,-1004.3890,62.5859, 3.0, CP_BUSFAHRER_LINIE_2_12, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Las Colinas (D)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_12:
    {
    SetPlayerCheckpointEx(i, 1969.5055,-1106.6772,25.3558, 3.0, CP_BUSFAHRER_LINIE_2_13, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Glen Park (A)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_13:
    {
    SetPlayerCheckpointEx(i, 1887.3757,-1338.5367,13.2142, 3.0, CP_BUSFAHRER_LINIE_2_14, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Glen Park (B)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_14:
    {
    SetPlayerCheckpointEx(i, 1835.5477,-1524.1456,13.2116, 3.0, CP_BUSFAHRER_LINIE_2_15, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Idlewood"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_15:
    {
    SetPlayerCheckpointEx(i, 1733.1927,-1749.1240,13.3542, 3.0, CP_BUSFAHRER_LINIE_2_16, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Los Santos Busdepot"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);
    }
    case CP_BUSFAHRER_LINIE_2_16:
    {
    HideBusTextDraw(i);
    DisablePlayerCheckpointEx(i);
    UpdateDynamic3DTextLabelText(Vehicle[vehicleid][vehText], COLOR_LIGHTWHITE, "Leerfahrt");
    SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Leerfahrt!");
    new randomGehalt = randomex(4000, 4500); // Maximum ungf. 36000$
    format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"$%d "COLOR_HEX_WHITE"auf deinen nächsten Zahltag erhalten!", randomGehalt);
    SendClientMessage(i, COLOR_WHITE, string);
    new randomSkill = randomex(5, 10);
    format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"%d EXP"COLOR_HEX_WHITE" erhalten.", randomSkill);
    SendClientMessage(i, COLOR_WHITE, string);
    Spieler[i][pJobMoney] += randomGehalt;
    Spieler[i][pJobCount] ++;
    GivePlayerBusSkill(i, randomSkill);
    PlayerPlaySound(i, 1057, 0, 0, 0);
    format(string, sizeof(string), "[DEBUG] [BUS] %s(ID:%d) hat Linie 2 in %d Sekunden fertiggestellt.", GetName(i), i, gettime()-Spieler[i][pBusStamp]);
    SendClientMessageToAll(COLOR_YELLOW, string);
    print(string);
    }
    }
    }
    }
    }
    }
    PayDay(i);
    format(string, sizeof(string), "%d Sekunden", pPersoWait[i]);
    if(pPersoWait[i] > 1)
    {
    pPersoWait[i] --;
    format(string, sizeof(string), "%d Sekunden", pPersoWait[i]);
    ShowPlayerDialog(i, DIALOG_PERSO2, DIALOG_STYLE_MSGBOX, "Stadthalle: Personalausweis", COLOR_HEX_WHITE"Dein Personalausweis wird momentan bearbeitet.\n", string, "");
    }
    else if(pPersoWait[i] == 1)
    {
    pPersoWait[i] = 0;
    format(string, sizeof(string), "Schließen");
    ShowPlayerDialog(i, DIALOG_PERSO2, DIALOG_STYLE_MSGBOX, "Stadthalle: Personalausweis", COLOR_HEX_WHITE"Du hast deinen Personalausweis erhalten\n"COLOR_HEX_YELLOW"\nBitte gehe damit vorsichtig um!", string, "");
    }
    if(pPayGuthaben[i] > 0)
    {
    if(pPhoning[i] == 1 && !(pCurrentCall[i] == -2))
    {
    Spieler[i][pHandyGuthaben] -= 5;
    GameTextForPlayer(i, "~r~$-5", 5000, 1);
    }
    pPayGuthaben[i] --;
    }
    else
    {
    if(pPhoning[i] == 1)pPayGuthaben[i] = 60;
    else pPayGuthaben[i] = 0;
    }
    if(pHealed[i] > 0)
    {
    pHealed[i] --;
    }
    else pHealed[i] = 0;
    if(pErstehilfeUse[i] > 0)
    {
    pErstehilfeUse[i] --;
    }
    else pErstehilfeUse[i] = 0;
    if(Spieler[i][pTot] > 0)
    {
    if(Spieler[i][pTotUnix] > 0)
    {
    format(string, sizeof(string), "~r~Krankenhaus: ~w~%d Sekunden", (Spieler[i][pTotUnix]));
    PlayerTextDrawSetString(i, pTextTime[i][2], string);
    Spieler[i][pTotUnix] --;
    }
    else
    {
    Spieler[i][pTot] = 0;
    Spieler[i][pTotUnix] = 0;
    Spieler[i][pTotX] = 0.0;
    Spieler[i][pTotY] = 0.0;
    Spieler[i][pTotZ] = 0.0;
    SpawnPlayerEx(i);
    }
    }

    if(Spieler[i][pJailed] > 0)
    {
    if(Spieler[i][pJailTime] > 0)
    {
    format(string, sizeof(string), "~r~Knast: ~w~%d Sekunden", Spieler[i][pJailTime]);
    PlayerTextDrawSetString(i, pTextTime[i][2], string);
    Spieler[i][pJailTime] --;
    }
    else
    {
    PlayerTextDrawHide(i, pTextTime[i][0]);
    PlayerTextDrawHide(i, pTextTime[i][1]);
    PlayerTextDrawHide(i, pTextTime[i][2]);
    Spieler[i][pJailed] = 0;
    Spieler[i][pJailTime] = 0;
    Spieler[i][pJailType] = 0;
    GameTextForPlayer(i, "~g~Freiheit", 4000, 1);
    SetPlayerInterior(i, 0);
    SetPlayerPos(i, 1544.4935,-1675.8558,13.5585);
    SetPlayerVirtualWorld(i, 0);
    UnfreezePlayer(i);
    }
    }
    vehicleid = GetPlayerVehicleID(i);
    UpdatePlayerTacho(i);
    if(pInformationTimer[i] > 0)pInformationTimer[i] --;
    else if(pInformationTimer[i] <= 0)
    {
    pInformationTimer[i] = 0;
    UpdateDynamic3DTextLabelText(Spieler[i][pInformation], COLOR_WHITE, " ");
    }
    if(pTutorialSkinWait[i] > 1)pTutorialSkinWait[i] --;
    else if(pTutorialSkinWait[i] == 1)
    {
    ClearPlayerChat(i, 20);
    pTutorialSkinWait[i] = 0;
    for(new xS=0;xS<MAX_SKIN_DATA;xS++)
    {
    if(SkinData[xS][skinGender] == Spieler[i][pGeschlecht])
    {
    pChoosedSkin[i] = SkinData[xS][skinID];
    pChoosedID[i] = xS;
    SetPlayerSkin(i, pChoosedSkin[i]);
    break;
    }
    }
    PlayerTextDrawShow(i, pTextSkinChoose[i][0]);
    PlayerTextDrawShow(i, pTextSkinChoose[i][1]);
    PlayerTextDrawShow(i, pTextSkinChoose[i][2]);
    SelectTextDraw(i, 0xA3B4C5FF);
    SetPlayerCameraPos(i, 198.7011, -134.6350, 1004.7740);
    SetPlayerCameraLookAt(i, 199.3376,-128.0158,1003.5152);
    SetPlayerPos(i, 199.3376,-128.0158,1003.5152);
    SetPlayerFacingAngle(i, 173.5490);
    SetPlayerInterior(i, 3);
    SetPlayerVirtualWorld(i, 2000+i);
    FreezePlayer(i);
    SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Bitte wähle einen Skin aus, indem du auf die Knöpfe drückst.");
    SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Wenn du fertig bist, klicke auf den entsprechenden Knopf.");
    }
    if(Spieler[i][pCurrentTutorial] == 1)
    {
    if(Spieler[i][pFahrlehrerWait] > 0)
    {
    Spieler[i][pFahrlehrerWait] --;
    if(Spieler[i][pFahrlehrerWait] == 30)
    {
    SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Auf unserem Server wird erwartet, dass du auf der rechten Straßenseite fährst.");
    }
    else if(Spieler[i][pFahrlehrerWait] == 24)
    {
    SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Halte dich an die Begrenzung von "COLOR_HEX_YELLOW"80km/h"COLOR_HEX_WHITE" innerorts. Außerorts (Autobahnen, Landstraßen, ..) gibt es keine Tempolimits.");
    }
    else if(Spieler[i][pFahrlehrerWait] == 18)
    {
    SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Wenn du einen Beamten im Einsatz siehst, fahre bitte an den Straßenrand!");
    }
    else if(Spieler[i][pFahrlehrerWait] == 12)
    {
    SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Wenn es zwischen "COLOR_HEX_YELLOW"20 "COLOR_HEX_WHITE"und"COLOR_HEX_YELLOW" 7"COLOR_HEX_WHITE" Uhr ist, schalte bitte das Licht an. ("COLOR_HEX_YELLOW"/licht"COLOR_HEX_WHITE")");
    }
    else if(Spieler[i][pFahrlehrerWait] == 6)
    {
    SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Den Motor schaltest du mit '"COLOR_HEX_YELLOW"/motor"COLOR_HEX_WHITE"' an.");
    }
    else if(Spieler[i][pFahrlehrerWait] == 1)
    {

    SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Viel Glück wünscht dir die "COLOR_HEX_YELLOW"SA Fahrschule"COLOR_HEX_WHITE".");
    Spieler[i][pFahrlehrerWait] = 0;
    UnfreezePlayer(i);
    }
    }
    }
    if(Spieler[i][pTutorial] > 0)
    {
    if(Spieler[i][pCurrentTutorial] == 1)
    {
    if(vehicleid == Spieler[i][pFSVehicle])
    {
    new Float:health, Float:health2;
    GetVehicleHealth(vehicleid, health);
    GetPlayerHealth(i, health2);
    if(health < 240 && health2 > 0)
    {
    DestroyDynamic3DTextLabel(Vehicle[Spieler[i][pFSVehicle]][vehText]);
    DeleteVehicle(Spieler[i][pFSVehicle]);
    Spieler[i][pFSVehicle] = INVALID_VEHICLE_ID;
    SetPlayerPos(i, 1098.1738,-1748.1469,13.3885);
    SetCameraBehindPlayer(i);
    Spieler[i][pCurrentTutorial] = 0;
    Spieler[i][pFahrlehrerWarning] = 0;
    SendClientMessage(i, COLOR_RED, "** "COLOR_HEX_GREY"Du bist durchgefallen, versuche es erneut!");
    SetPlayerCheckpointEx(i, 1098.1738,-1748.1469,13.3885, 2.0, CP_TUTORIAL_6, CP_TYPE_TUTORIAL);
    }
    if(!IsPlayerOnAutobahn(i))
    {
    if(GetVehicleSpeed(vehicleid) > 85)
    {
    Spieler[i][pFahrlehrerWarning] ++;
    format(string, sizeof(string), COLOR_HEX_RED"** "COLOR_HEX_WHITE"%d/10 Fehlerpunkten - Maximal 80km/h!", Spieler[i][pFahrlehrerWarning]);
    SendClientMessage(i, COLOR_RED, string);
    if(Spieler[i][pFahrlehrerWarning] >= 10)
    {
    DestroyDynamic3DTextLabel(Vehicle[Spieler[i][pFSVehicle]][vehText]);
    DeleteVehicle(Spieler[i][pFSVehicle]);
    Spieler[i][pFSVehicle] = INVALID_VEHICLE_ID;
    SetPlayerPos(i, 1098.1738,-1748.1469,13.3885);
    SetCameraBehindPlayer(i);
    Spieler[i][pCurrentTutorial] = 0;
    SendClientMessage(i, COLOR_RED, "** "COLOR_HEX_GREY"Du bist durchgefallen, versuche es erneut! (10/10 Fehlerpunkten)");
    Spieler[i][pFahrlehrerWarning] = 0;
    SetPlayerCheckpointEx(i, 1098.1738,-1748.1469,13.3885, 2.0, CP_TUTORIAL_6, CP_TYPE_TUTORIAL);
    }
    }
    }
    }
    else
    {
    DestroyDynamic3DTextLabel(Vehicle[Spieler[i][pFSVehicle]][vehText]);
    DeleteVehicle(Spieler[i][pFSVehicle]);
    Spieler[i][pFSVehicle] = INVALID_VEHICLE_ID;
    SetPlayerPos(i, 1098.1738,-1748.1469,13.3885);
    SetCameraBehindPlayer(i);
    Spieler[i][pCurrentTutorial] = 0;
    SendClientMessage(i, COLOR_RED, "** "COLOR_HEX_GREY"Du bist durchgefallen, versuche es erneut!");
    Spieler[i][pFahrlehrerWarning] = 0;
    SetPlayerCheckpointEx(i, 1098.1738,-1748.1469,13.3885, 2.0, CP_TUTORIAL_6, CP_TYPE_TUTORIAL);
    }
    }
    }

    }
    }
    }
    return 1;
    }

  • Jeffry:
    Hier mal ein Video dazu, habs nicht richtig verstanden.

    Externer Inhalt www.youtube.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
    Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.




    Mfg

  • Versuche es hiermit:

    Spoiler anzeigen
    public OnPlayerEnterCheckpoint(playerid)
    {
    if(GetPVarInt(playerid, "JobOil") == 1)
    {
    DisablePlayerCheckpoint(playerid);
    TogglePlayerControllable(playerid, false);
    SetPlayerSpecialAction(playerid, 0);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant_Loop", 4.1, 1, 0, 0, 1, 0, 1);
    GameTextForPlayer(playerid, "Stelle Oil her!", 3000, 4);
    SendClientMessage(playerid, COLOR_GOLD, "Bitte warte 15 Sekunden...");
    SetTimerEx("OilZutaten", 15000, false, "d", playerid);
    return 1;
    }
    if(GetPVarInt(playerid, "JobOil") == 2)
    {
    TogglePlayerControllable(playerid, false);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant_Loop", 4.1, 1, 0, 0, 1, 0, 1);
    GameTextForPlayer(playerid, "~y~Filtrieren...", 3000, 4);
    SetTimerEx("OilHerstellen", 1000*15, false, "d", playerid);
    return 1;
    }
    if(GetPVarInt(playerid, "JobOil") == 3)
    {
    TogglePlayerControllable(playerid, false);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant_Loop", 4.1, 1, 0, 0, 1, 0, 1);
    GameTextForPlayer(playerid, "Du verpackst...", 3000, 4);
    SetTimerEx("OilVerpacken", 1000*30, false, "d", playerid);
    return 1;
    }
    new vehicleid = GetPlayerVehicleID(playerid);
    if(GetPlayerCheckpointType(playerid) == CP_TYPE_BUS)
    {
    if(IsVehicleABus(vehicleid))
    {
    Spieler[playerid][pBusTime] = 10;
    ShowBusTextDraw(playerid);
    }
    else
    {
    Spieler[playerid][pBusTime] = 0;
    HideBusTextDraw(playerid);
    }
    }
    if(PilotCP[playerid] == 1 && IsPlayerInRangeOfPoint(playerid,20.0,388.9819,2505.0308,16.0490))
    {
    SendClientMessage(playerid, WEIS,"* Dein Flugzeug wird beladen! Bitte warte einen Moment!");
    PilotCP[playerid] = 2;
    SetPlayerCheckpoint(playerid,1477.6711,1339.1073,10.3910, 20.0);
    SetTimerEx("Beladen",8000,0,"i",playerid);
    TogglePlayerControllable(playerid, 0);
    }
    if(PilotCP[playerid] == 2 && IsPlayerInRangeOfPoint(playerid,20.0,1477.6711,1339.1073,10.3910))
    {
    SendClientMessage(playerid, WEIS,"* Dein Flugzeug wird beladen! Bitte warte einen Moment!");
    PilotCP[playerid] = 3;
    SetPlayerCheckpoint(playerid,2036.9803,-2493.1484,13.1137, 10.0);
    SetTimerEx("Beladen",8000,0,"i",playerid);
    TogglePlayerControllable(playerid, 0);
    }
    if(PilotCP[playerid] == 3 && IsPlayerInRangeOfPoint(playerid,20.0,2036.9803,-2493.1484,13.1137))
    {
    new string[128];
    SendClientMessage(playerid, WEIS,"* Ladung wird entladen!");
    new RandomMGehalt = random(1000)+1000;
    format(string, sizeof(string), "~g~Lohn: %d Dollar", RandomMGehalt);
    GameTextForPlayer(playerid, string, 4000, 4);
    PilotCP[playerid] = 0;
    Pilot[playerid]= 0;
    Spieler[playerid][pJobMoney] += RandomMGehalt;
    }
    if(JobDuty[playerid] == 1 && Spieler[playerid][pJob] == 4)
    {
    new string[128];
    if(HolzCP[playerid] == 1)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    ClearChatbox(playerid, 15);
    DisablePlayerCheckpoint(playerid);
    HolzCP[playerid] = 0;
    SendClientMessage(playerid, WEIS, "Bitte lasse dein Fahrzeug hier im Umkreis geparkt und begebe dich zum gekennzeichneten Baum und säge diesen ab!");
    SetTimerEx("SetHCP",1361,false,"i",playerid);
    }
    return 1;
    }
    if(HolzCP[playerid] == 2)
    {
    if(!IsPlayerInAnyVehicle(playerid))
    {
    ClearChatbox(playerid, 15);
    SendClientMessage(playerid, NEONGRÜN, "Bitte warten, der Baum wird gefällt!");
    TogglePlayerControllable(playerid, false);
    GivePlayerWeapon(playerid, 9, 1);
    KillTimer(HolzTimer[playerid]);
    ClearAnimations(playerid);
    HolzTimer[playerid] = SetTimerEx("PlayAAnimation",1103,true,"i",playerid);
    SetTimerEx("HolzA",6047,false,"i",playerid);
    SetPlayerArmedWeapon(playerid,9);
    SetCameraBehindPlayer(playerid);
    }
    return 1;
    }
    if(HolzCP[playerid] == 3)
    {
    if(!IsPlayerInAnyVehicle(playerid))
    {
    ClearChatbox(playerid, 15);
    DisablePlayerCheckpoint(playerid);
    ApplyAnimation(playerid, "CARRY","putdwn105", 4.0, 0, 1, 1, 0, 0, 1);
    SendClientMessage(playerid, WEIS, "Das Holz wurde erfolgreich auf dem Fahrzeug verstaut!");
    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
    RemovePlayerAttachedObject(playerid,0);
    HolzCP[playerid] = 0;
    if(HHolz[playerid] >= 300)
    {
    SetPlayerCheckpoint(playerid,2351.7290,-653.0367,128.0464,3.0);
    SendClientMessage(playerid, NEONGRÜN, "Dein Fahrzeug ist voller Holz, bitte bringe dieser zurück zur Holzfällerhütte!");
    HolzCP[playerid] = 4;
    }
    else
    {
    format(string, sizeof(string), "Holzladestatus: %d/300 Holz.", HHolz[playerid]);
    SendClientMessage(playerid, NEONGRÜN, string);
    SetTimerEx("SetHCP",1361,false,"i",playerid);
    }
    }
    return 1;
    }
    if(HolzCP[playerid] == 4)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    new RandomMGehalt = random(118)+249;
    ClearChatbox(playerid, 15);
    DisablePlayerCheckpoint(playerid);
    format(string, sizeof(string), "~g~Lohn: %d Dollar", RandomMGehalt);
    GameTextForPlayer(playerid, string, 4000, 4);
    Spieler[playerid][pJobMoney] += RandomMGehalt;
    format(string, sizeof(string), "Es wurden erfolgreich %d Holz ins Lager gelagert!", HHolz[playerid]);
    SendClientMessage(playerid, WEIS, string);
    HolzCP[playerid] = 0;
    HStarted[playerid] = 0;
    HRoute[playerid] = 0;
    //HVehicle[playerid] = 0;
    HWalton[playerid] = -1;
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(HWalton[playerid]);
    PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
    }
    }
    }
    //Job Bauer (Farmer)
    if(BauerCP[playerid] == 1 && IsPlayerInRangeOfPoint(playerid,10.0,-1059.4006,-1116.2203,129.0118))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -1078.8239,-1114.7617,128.9900, 5.0);
    BauerCP[playerid] = 2;
    }
    else if(BauerCP[playerid] == 2 && IsPlayerInRangeOfPoint(playerid,10.0,-1078.8239,-1114.7617,128.9900))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -1162.2700,-1115.3636,129.2832, 5.0);
    BauerCP[playerid] = 3;
    }
    else if(BauerCP[playerid] == 3 && IsPlayerInRangeOfPoint(playerid,10.0,-1162.2700,-1115.3636,129.2832))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -1208.3468,-1082.5022,129.2430, 5.0);
    BauerCP[playerid] = 4;
    }
    else if(BauerCP[playerid] == 4 && IsPlayerInRangeOfPoint(playerid,10.0,-1208.3468,-1082.5022,129.2430))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -1195.0353,-1062.3983,130.1939, 5.0);
    BauerCP[playerid] = 5;
    }
    else if(BauerCP[playerid] == 5 && IsPlayerInRangeOfPoint(playerid,10.0,-1195.0353,-1062.3983,130.1939))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -1156.1938,-1058.0620,130.2048, 5.0);
    BauerCP[playerid] = 6;
    }
    else if(BauerCP[playerid] == 6 && IsPlayerInRangeOfPoint(playerid,10.0,-1156.1938,-1058.0620,130.2048))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -1069.6932,-1057.6526,130.1907, 5.0);
    BauerCP[playerid] = 7;
    }
    else if(BauerCP[playerid] == 7 && IsPlayerInRangeOfPoint(playerid,10.0,-1069.6932,-1057.6526,130.1907))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -1019.4621,-1057.4069,130.1967, 5.0);
    BauerCP[playerid] = 8;
    }
    else if(BauerCP[playerid] == 8 && IsPlayerInRangeOfPoint(playerid,10.0,-1019.4621,-1057.4069,130.1967))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -1019.9304,-1036.7003,130.1961, 5.0);
    BauerCP[playerid] = 9;
    }
    else if(BauerCP[playerid] == 9 && IsPlayerInRangeOfPoint(playerid,10.0,-1019.9304,-1036.7003,130.1961))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -1077.3489,-1036.2622,130.1962, 5.0);
    BauerCP[playerid] = 10;
    }
    else if(BauerCP[playerid] == 10 && IsPlayerInRangeOfPoint(playerid,10.0,-1077.3489,-1036.2622,130.1962))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1168.0416,-1035.5721,130.1962,5.0);
    BauerCP[playerid] = 11;
    }
    else if(BauerCP[playerid] == 11 && IsPlayerInRangeOfPoint(playerid,10.0,-1168.0416,-1035.5721,130.1962))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1188.2292,-1012.7227,130.1961,5.0);
    BauerCP[playerid] = 12;
    }
    else if(BauerCP[playerid] == 12 && IsPlayerInRangeOfPoint(playerid,10.0,-1188.2292,-1012.7227,130.1961))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1132.9235,-1011.9772,130.1961,5.0);
    BauerCP[playerid] = 13;
    }
    else if(BauerCP[playerid] == 13 && IsPlayerInRangeOfPoint(playerid,10.0,-1132.9235,-1011.9772,130.1961))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1056.5536,-1012.0660,130.1883,5.0);
    BauerCP[playerid] = 14;
    }
    else if(BauerCP[playerid] == 14 && IsPlayerInRangeOfPoint(playerid,10.0,-1056.5536,-1012.0660,130.1883))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1022.1437,-1012.2383,130.1924,5.0);
    BauerCP[playerid] = 15;
    }
    else if(BauerCP[playerid] == 15 && IsPlayerInRangeOfPoint(playerid,10.0,-1022.1437,-1012.2383,130.1924))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1019.4243,-990.2912,130.1922,5.0);
    BauerCP[playerid] = 16;
    }
    else if(BauerCP[playerid] == 16 && IsPlayerInRangeOfPoint(playerid,10.0,-1019.4243,-990.2912,130.1922))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1099.1243,-991.7325,130.1962,5.0);
    BauerCP[playerid] = 17;
    }
    else if(BauerCP[playerid] == 17 && IsPlayerInRangeOfPoint(playerid,10.0,-1099.1243,-991.7325,130.1962))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1169.0610,-992.7225,130.1962,5.0);
    BauerCP[playerid] = 18;
    }
    else if(BauerCP[playerid] == 18 && IsPlayerInRangeOfPoint(playerid,10.0,-1169.0610,-992.7225,130.1962))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1181.6577,-970.2465,130.1892,5.0);
    BauerCP[playerid] = 19;
    }
    else if(BauerCP[playerid] == 19 && IsPlayerInRangeOfPoint(playerid,10.0,-1181.6577,-970.2465,130.1892))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1097.8923,-971.1841,130.1961,5.0);
    BauerCP[playerid] = 20;
    }
    else if(BauerCP[playerid] == 20 && IsPlayerInRangeOfPoint(playerid,10.0,-1097.8923,-971.1841,130.1961))
    {
    DisablePlayerCheckpoint(playerid); /////
    SetPlayerCheckpoint(playerid,-1031.8552,-972.3673,130.1967,5.0);
    BauerCP[playerid] = 21;
    }
    else if(BauerCP[playerid] == 21 && IsPlayerInRangeOfPoint(playerid,10.0,-1031.8552,-972.3673,130.1967))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1026.6000,-948.5904,130.1961,5.0);
    BauerCP[playerid] = 22;
    }
    else if(BauerCP[playerid] == 22 && IsPlayerInRangeOfPoint(playerid,10.0,-1026.6000,-948.5904,130.1961))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1115.6213,-948.7830,130.1962,5.0);
    BauerCP[playerid] = 23;
    }
    else if(BauerCP[playerid] == 23 && IsPlayerInRangeOfPoint(playerid,10.0,-1115.6213,-948.7830,130.1962))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1185.7285,-948.7976,130.1895,5.0);
    BauerCP[playerid] = 24;
    }
    else if(BauerCP[playerid] == 24 && IsPlayerInRangeOfPoint(playerid,10.0,-1185.7285,-948.7976,130.1895))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1211.6493,-964.8420,129.2415,5.0);
    BauerCP[playerid] = 25;
    }
    else if(BauerCP[playerid] == 25 && IsPlayerInRangeOfPoint(playerid,10.0,-1211.6493,-964.8420,129.2415))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1210.2692,-1056.1132,129.2403,5.0);
    BauerCP[playerid] = 26;
    }
    else if(BauerCP[playerid] == 26 && IsPlayerInRangeOfPoint(playerid,10.0,-1210.2692,-1056.1132,129.2403))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1178.4911,-1114.8938,129.2720,5.0);
    BauerCP[playerid] = 27;
    }
    else if(BauerCP[playerid] == 27 && IsPlayerInRangeOfPoint(playerid,10.0,-1178.4911,-1114.8938,129.2720))
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-1077.1495,-1115.9945,128.9574,5.0);
    BauerCP[playerid] = 28;
    }
    else if(BauerCP[playerid] == 28 && IsPlayerInRangeOfPoint(playerid,10.0,-1077.1495,-1115.9945,128.9574))
    {
    SendClientMessage(playerid,COLOR_WHITE,"~| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {FF9600}Bauer{FFFFFF} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |~");
    SendClientMessage(playerid,COLOR_BLUE,"~| Du hast soeben deine Tour beendet.");
    SendClientMessage(playerid,COLOR_WHITE,"~| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |~");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "** [Bauer] Hier mein Junge, da du ja so gern das Geld jetzt haben möchtest,");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "** [Bauer] hier sind 700 Kröten, mach dir ein schönen Tag.");
    DisablePlayerCheckpoint(playerid);
    BauerStart[playerid] = 0;
    BauerCP[playerid] = 0;
    Spieler[playerid][pJobMoney] += 700;
    new Bauercar;
    Bauercar = GetPlayerVehicleID(playerid);
    SetVehicleToRespawn(Bauercar);
    }
    if(GetPlayerCheckpointType(playerid) == INVALID_CHECKPOINT_TYPE)
    {
    switch(GetPlayerCheckpointID(playerid))
    {
    case CP_BACKUP:
    {
    KillTimer(Spieler[playerid][pBackupTimer]);
    DisablePlayerCheckpointEx(playerid);
    }
    case CP_FIND:
    {
    DisablePlayerCheckpointEx(playerid);
    }
    case CP_FINDCAR:
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Du hast dein Ziel erreicht. Ort: Privates Fahrzeug");
    DisablePlayerCheckpointEx(playerid);
    }
    }
    }
    if(GetPlayerCheckpointType(playerid) == CP_TYPE_TUTORIAL)
    {
    switch(GetPlayerCheckpointID(playerid))
    {
    case CP_TUTORIAL_1:
    {
    ShowInfo(playerid, "~b~"SERVER_NAME" - Tutorial", "An diesem Ort kannst du dir bis ~b~Level 3~w~ ein Fahrrad~n~mieten. Dieses kannst du solange benutzen ~n~wie du online bist. Gehst du offline, wird es geloescht.~n~~n~Bitte miete dir nun ein Fahrrad.~n~Das Fahrrad wird dir diesesmal vom Tutorial bezahlt!~n~~n~Tipp: Schreibe ~b~/rentbike~w~ in den Chat!");
    }
    case CP_TUTORIAL_2:
    {
    ShowInfo(playerid, "~b~"SERVER_NAME" - Tutorial", "Willkommen an der ~b~Stadthalle~w~!~n~~n~Hier findest du viele wichtige Dinge dieses Servers.~n~Hier kannst du einen ~b~Personalausweis~w~ beantragen,~n~sowie einen ~b~Beruf ~w~annehmen.~n~~n~Bitte gehe nun zum Eingang der Stadthalle.");
    SetPlayerCheckpointEx(playerid, 1481.0088,-1771.6814,18.7958, 2.0, CP_TUTORIAL_3, CP_TYPE_TUTORIAL);
    }

    case CP_TUTORIAL_3:
    {
    ShowInfo(playerid, "~b~"SERVER_NAME" - Tutorial", "Du kannst jeden Eingang mit der ~b~Enter~w~ Taste betreten!~n~~n~Druecke nun ~b~Enter~w~ um die Stadthalle zu betreten.");
    }
    case CP_TUTORIAL_4:
    {
    ShowInfo(playerid, "~b~"SERVER_NAME" - Tutorial", "Druecke nun ~b~Enter~w~, um das Menu zu oeffnen.");
    }
    case CP_TUTORIAL_6:
    {
    ShowInfo(playerid, "~b~"SERVER_NAME" - Tutorial", "Damit du den Fuehrerschein beginnen kannst,~n~tippe bitte ~b~/startfs~w~ in den Chat ein.");
    DisablePlayerCheckpointEx(playerid);
    }
    case CP_TUTORIAL_7:
    {
    ShowInfo(playerid, "~b~"SERVER_NAME" - Tutorial", "Nun lauf nochmal die Treppe hoch,~n~und gehe erneut ins Gebaeude.");
    SetPlayerCheckpointEx(playerid, 1481.0088,-1771.6814,18.7958, 2.0, CP_TUTORIAL_8, CP_TYPE_TUTORIAL);
    }
    case CP_TUTORIAL_9:
    {
    ShowInfo(playerid, "~b~"SERVER_NAME" - Tutorial", "Dies ist der Eingang zum Arbeitsamt.~n~Hier kannst du einen Beruf aussuchen.");
    SetPlayerCheckpointEx(playerid, 365.8207,207.1045,1008.3828, 2.0, CP_TUTORIAL_10, CP_TYPE_TUTORIAL);
    }
    case CP_TUTORIAL_10:
    {
    PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    ShowInfo(playerid, "~b~"SERVER_NAME" - Tutorial", "Hier kannst du nun einen Beruf auswaehlen.~n~~n~Hiermit ist das Tutorial nun vorbei,~n~und wir wuenschen dir Viel Spass beim Spielen!~n~~n~~b~MFG - "SERVER_NAME"-Team");
    DisablePlayerCheckpointEx(playerid);
    Spieler[playerid][pTutorial] = 0;
    SetTimerEx("OnTutorialEnd", 12000, 0, "i", playerid);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Zu Beginn empfehlen wir dir den Beruf Busfahrer.");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Wir empfehlen dir für den Anfang ein Fahrzeug bei Intercars (/gps) zu kaufen.");
    }
    case CP_FAHRSCHULE_1:
    {
    SetPlayerCheckpointEx(playerid, 1172.5422,-1841.7935,13.2810, 4.0, CP_FAHRSCHULE_2, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_2:
    {
    SetPlayerCheckpointEx(playerid, 1288.1886,-1854.5138,13.2614, 4.0, CP_FAHRSCHULE_3, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_3:
    {
    SetPlayerCheckpointEx(playerid, 1308.2799,-1854.9426,13.2577, 4.0, CP_FAHRSCHULE_4, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_4:
    {
    SetPlayerCheckpointEx(playerid, 1314.9395,-1743.9526,13.2578, 4.0, CP_FAHRSCHULE_5, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_5:
    {
    SetPlayerCheckpointEx(playerid, 1377.0948,-1734.8579,13.2577, 4.0, CP_FAHRSCHULE_6, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_6:
    {
    SetPlayerCheckpointEx(playerid, 1386.7023,-1859.5508,13.2576, 4.0, CP_FAHRSCHULE_7, CP_TYPE_TUTORIAL); GameTextForPlayer(playerid, "~r~Denke an die Vorfahrt !!", 6000, 4);PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_7:
    {
    SetPlayerCheckpointEx(playerid, 1414.5519,-1874.7159,13.2578, 4.0, CP_FAHRSCHULE_8, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_8:
    {
    SetPlayerCheckpointEx(playerid, 1517.6642,-1874.7634,13.2577, 4.0, CP_FAHRSCHULE_9, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_9:
    {
    SetPlayerCheckpointEx(playerid, 1527.6467,-2015.1074,27.7439, 4.0, CP_FAHRSCHULE_10, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_10:
    {
    SetPlayerCheckpointEx(playerid, 1688.9587,-2168.3428,16.7411, 4.0, CP_FAHRSCHULE_11, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_11:
    {
    SetPlayerCheckpointEx(playerid, 1813.3000,-2168.9802,13.2577, 4.0, CP_FAHRSCHULE_12, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_12:
    {
    SetPlayerCheckpointEx(playerid, 1949.5833,-2168.8784,13.2651, 4.0, CP_FAHRSCHULE_13, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_13:
    {
    SetPlayerCheckpointEx(playerid, 1963.9469,-2122.2349,13.2574, 4.0, CP_FAHRSCHULE_14, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_14:
    {
    SetPlayerCheckpointEx(playerid, 1964.3435,-2062.3035,13.3474, 4.0, CP_FAHRSCHULE_15, CP_TYPE_TUTORIAL); GameTextForPlayer(playerid, "~r~In der Stadt nur 80km/h !!", 6000, 4);PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_15:
    {
    SetPlayerCheckpointEx(playerid, 1963.8772,-1963.4075,13.5318, 4.0, CP_FAHRSCHULE_16, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_16:
    {
    SetPlayerCheckpointEx(playerid, 1963.3827,-1941.9429,13.2833, 4.0, CP_FAHRSCHULE_17, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_17:
    {
    SetPlayerCheckpointEx(playerid, 2082.0999,-1932.9432,13.1962, 4.0, CP_FAHRSCHULE_18, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_18:
    {
    SetPlayerCheckpointEx(playerid, 2083.5178,-1904.5631,13.2577, 4.0, CP_FAHRSCHULE_19, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_19:
    {
    SetPlayerCheckpointEx(playerid, 2084.1416,-1821.9977,13.2611, 4.0, CP_FAHRSCHULE_20, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_20:
    {
    SetPlayerCheckpointEx(playerid, 2092.4556,-1762.2943,13.2741, 4.0, CP_FAHRSCHULE_21, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_21:
    {
    SetPlayerCheckpointEx(playerid, 2013.7933,-1749.9860,13.2577, 4.0, CP_FAHRSCHULE_22, CP_TYPE_TUTORIAL); GameTextForPlayer(playerid, "~r~Fahre in stark befahrenen Gebieten vorsichtiger !!", 6000, 4);PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_22:
    {
    SetPlayerCheckpointEx(playerid, 2004.1101,-1682.0869,13.2578, 4.0, CP_FAHRSCHULE_23, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_23:
    {
    SetPlayerCheckpointEx(playerid, 2006.6433,-1617.0184,13.2514, 4.0, CP_FAHRSCHULE_24, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_24:
    {
    SetPlayerCheckpointEx(playerid, 2029.6687,-1614.9556,13.2578, 4.0, CP_FAHRSCHULE_25, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_25:
    {
    SetPlayerCheckpointEx(playerid, 2070.6953,-1615.0020,13.2545, 4.0, CP_FAHRSCHULE_26, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_26:
    {
    SetPlayerCheckpointEx(playerid, 2184.2336,-1641.9303,15.0426, 4.0, CP_FAHRSCHULE_27, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_27:
    {
    SetPlayerCheckpointEx(playerid, 2204.4399,-1647.1331,15.1474, 4.0, CP_FAHRSCHULE_28, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_28:
    {
    SetPlayerCheckpointEx(playerid, 2221.3721,-1651.4115,15.1335, 4.0, CP_FAHRSCHULE_29, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_29:
    {
    SetPlayerCheckpointEx(playerid, 2329.6240,-1661.2439,13.4226, 4.0, CP_FAHRSCHULE_30, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_30:
    {
    SetPlayerCheckpointEx(playerid, 2345.0337,-1618.4281,19.4885, 4.0, CP_FAHRSCHULE_31, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_31:
    {
    SetPlayerCheckpointEx(playerid, 2344.8030,-1573.8827,23.6971, 4.0, CP_FAHRSCHULE_32, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_32:
    {
    SetPlayerCheckpointEx(playerid, 2264.4102,-1561.9285,2.8933, 4.0, CP_FAHRSCHULE_33, CP_TYPE_TUTORIAL); GameTextForPlayer(playerid, "~r~Auf der Autobahn gelten keine Tempolimits !!", 6000, 4);PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_33:
    {
    SetPlayerCheckpointEx(playerid, 1937.8839,-1496.5392,3.1873, 4.0, CP_FAHRSCHULE_34, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_34:
    {
    SetPlayerCheckpointEx(playerid, 1806.1401,-1503.9597,6.7266, 4.0, CP_FAHRSCHULE_35, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_35:
    {
    SetPlayerCheckpointEx(playerid, 1618.0551,-1404.6329,28.4310, 4.0, CP_FAHRSCHULE_36, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_36:
    {
    SetPlayerCheckpointEx(playerid, 1620.6179,-1296.7209,39.1605, 4.0, CP_FAHRSCHULE_37, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_37:
    {
    SetPlayerCheckpointEx(playerid, 1664.0840,-1145.4739,57.9998, 4.0, CP_FAHRSCHULE_38, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_38:
    {
    SetPlayerCheckpointEx(playerid, 1670.1832,-1039.0850,41.0428, 4.0, CP_FAHRSCHULE_39, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_39:
    {
    SetPlayerCheckpointEx(playerid, 1556.2324,-929.7134,43.9742, 4.0, CP_FAHRSCHULE_40, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_40:
    {
    SetPlayerCheckpointEx(playerid, 1455.2019,-945.9409,35.9631, 4.0, CP_FAHRSCHULE_41, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_41:
    {
    SetPlayerCheckpointEx(playerid, 1393.2218,-940.1215,34.2886, 4.0, CP_FAHRSCHULE_42, CP_TYPE_TUTORIAL); GameTextForPlayer(playerid, "~r~Du befindest dich wieder in der Stadt !!", 6000, 4);PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_42:
    {
    SetPlayerCheckpointEx(playerid, 1355.8246,-1022.7658,26.3935, 4.0, CP_FAHRSCHULE_43, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_43:
    {
    SetPlayerCheckpointEx(playerid, 1345.7086,-1127.5475,23.5502, 4.0, CP_FAHRSCHULE_44, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_44:
    {
    SetPlayerCheckpointEx(playerid, 1340.1738,-1200.6172,18.5859, 4.0, CP_FAHRSCHULE_45, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_45:
    {
    SetPlayerCheckpointEx(playerid, 1340.2737,-1268.0363,13.2578, 4.0, CP_FAHRSCHULE_46, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_46:
    {
    SetPlayerCheckpointEx(playerid, 1272.4581,-1278.1160,13.1985, 4.0, CP_FAHRSCHULE_47, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_47:
    {
    SetPlayerCheckpointEx(playerid, 1228.2516,-1277.8495,13.2578, 4.0, CP_FAHRSCHULE_48, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_48:
    {
    SetPlayerCheckpointEx(playerid, 1205.5590,-1278.1204,13.2578, 4.0, CP_FAHRSCHULE_49, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_49:
    {
    SetPlayerCheckpointEx(playerid, 1196.6725,-1382.5095,13.1610, 4.0, CP_FAHRSCHULE_50, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_50:
    {
    SetPlayerCheckpointEx(playerid, 1193.8992,-1462.4579,13.2578, 4.0, CP_FAHRSCHULE_51, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_51:
    {
    SetPlayerCheckpointEx(playerid, 1193.6869,-1560.6782,13.2578, 4.0, CP_FAHRSCHULE_52, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_52:
    {
    SetPlayerCheckpointEx(playerid, 1159.4312,-1569.8026,13.1506, 4.0, CP_FAHRSCHULE_53, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_53:
    {
    SetPlayerCheckpointEx(playerid, 1147.5153,-1628.5577,13.6562, 4.0, CP_FAHRSCHULE_54, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_54:
    {
    SetPlayerCheckpointEx(playerid, 1147.5928,-1699.0577,13.6561, 4.0, CP_FAHRSCHULE_55, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_55:
    {
    SetPlayerCheckpointEx(playerid, 1163.4956,-1714.4165,13.6314, 4.0, CP_FAHRSCHULE_56, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_56:
    {
    SetPlayerCheckpointEx(playerid, 1172.5519,-1730.5269,13.4197, 4.0, CP_FAHRSCHULE_57, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_57:
    {
    SetPlayerCheckpointEx(playerid, 1129.8409,-1738.5375,13.3672, 4.0, CP_FAHRSCHULE_58, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_58:
    {
    SetPlayerCheckpointEx(playerid, 1071.6470,-1739.1652,13.3620, 4.0, CP_FAHRSCHULE_59, CP_TYPE_TUTORIAL); PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
    }
    case CP_FAHRSCHULE_59:
    {

    DisablePlayerCheckpointEx(playerid);
    Spieler[playerid][pCurrentTutorial] = 0;
    DeleteVehicle(Spieler[playerid][pFSVehicle]);
    Spieler[playerid][pFSVehicle] = INVALID_VEHICLE_ID;
    Spieler[playerid][pCarLicense] = 1;
    Spieler[playerid][pCarLicensePoints] = 0;
    Spieler[playerid][pFahrlehrerWarning] = 0;
    PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
    GameTextForPlayer(playerid, "~y~Herzlichen Glueckwunsch,~n~du hast bestanden!", 5000, 4);

    SetTimerEx("OnContinueTutorial", 6000, 0, "i", playerid);
    }
    }
    }
    return 1;
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen