Trucker Job

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
  • Hallo leute ich hab fuer euch en truckerjob gemacht mit eigenes cords,


    Inhalt:
    Checkpoints abfahren:


    //Variablen
    new TRUCKCP[MAX_PLAYERS];


    enum SInfo
    {
    Job
    }
    new Jinfo[MAX_PLAYERS][SInfo];


    if(strcmp(cmdtext,"/trucker",true) == 0)
    {
    if(SpielerInfo[playerid][Job] == 3)
    {
    if(IsPlayerInRangeOfPoint(playerid,3,542.6373,-1291.2743,17.2422))
    {
    new truckerveh;
    truckerveh = CreateVehicle(433,540.7483,-1289.0284,17.2422,323.9335,1,1,60000);
    PutPlayerInVehicle(playerid,truckerveh,0);
    SendClientMessage(playerid,weis,"Du hast den Job Trucker begonnen ;)");
    SetPlayerCheckpoint(playerid,557.9115,-1248.5251,16.9939,5);
    TRUCKCP[playerid] = 1;
    return 1;
    }
    else
    {
    SendClientMessage(playerid,weis,"Du bist nicht beim TruckerPunkt!");
    }
    }
    else
    {
    SendClientMessage(playerid,rot,"Du bist kein Trucker!");
    }
    }
    public OnPlayerEnterCheckpoint(playerid)
    {
    if(TRUCKCP[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,619.2906,-1221.7842,18.1094,5);
    TRUCKCP[playerid] = 2;
    return 1;
    }
    if(TRUCKCP[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,671.5634,-1233.1475,15.0362,5);
    TRUCKCP[playerid] = 3;
    return 1;
    }
    if(TRUCKCP[playerid] == 3)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,716.0599,-1200.5819,18.7220,5);
    TRUCKCP[playerid] = 4;
    return 1;
    }
    if(TRUCKCP[playerid] == 4)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,753.5713,-1167.1970,21.6115,5);
    TRUCKCP[playerid] = 5;
    return 1;
    }
    if(TRUCKCP[playerid] == 5)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,794.4105,-1155.9435,23.8174,5);
    TRUCKCP[playerid] = 6;
    return 1;
    }
    if(TRUCKCP[playerid] == 6)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,857.8714,-1151.9019,23.6563,5);
    TRUCKCP[playerid] = 7;
    return 1;
    }
    if(TRUCKCP[playerid] == 7)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,960.3293,-1147.2882,23.9615,5);
    TRUCKCP[playerid] = 8;
    return 1;
    }
    if(TRUCKCP[playerid] == 8)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1051.9120,-1148.3026,23.7177,5);
    TRUCKCP[playerid] = 9;
    return 1;
    }
    if(TRUCKCP[playerid] == 9)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1180.4579,-1149.1033,23.6783,5);
    TRUCKCP[playerid] = 10;
    return 1;
    }
    if(TRUCKCP[playerid] == 10)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1369.3113,-1143.4294,23.6563,5);
    TRUCKCP[playerid] = 11;
    return 1;
    }
    if(TRUCKCP[playerid] == 11)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1480.6981,-1162.7389,23.8984,5);
    TRUCKCP[playerid] = 12;
    return 1;
    }
    if(TRUCKCP[playerid] == 12)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1484.4117,-1093.5791,23.6563,5);
    TRUCKCP[playerid] = 13;
    return 1;
    }
    if(TRUCKCP[playerid] == 13)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1455.8442,-1032.1832,23.6563,5);
    TRUCKCP[playerid] = 14;
    return 1;
    }
    if(TRUCKCP[playerid] == 14)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1374.0178,-1033.5774,26.3310,5);
    TRUCKCP[playerid] = 15;
    return 1;
    }
    if(TRUCKCP[playerid] == 15)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1372.5815,-993.8740,28.9739,5);
    TRUCKCP[playerid] = 16;
    return 1;
    }
    if(TRUCKCP[playerid] == 16)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1377.7301,-937.0350,34.1875,5);
    TRUCKCP[playerid] = 17;
    return 1;
    }
    if(TRUCKCP[playerid] == 17)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1258.0159,-923.5837,42.5842,5);
    TRUCKCP[playerid] = 18;
    return 1;
    }
    if(TRUCKCP[playerid] == 18)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,917.5416,-978.6373,38.0832,5);
    TRUCKCP[playerid] = 19;
    return 1;
    }
    if(TRUCKCP[playerid] == 19)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,735.6799,-1066.6086,22.8191,5);
    TRUCKCP[playerid] = 20;
    return 1;
    }
    if(TRUCKCP[playerid] == 20)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,630.7764,-1208.2085,18.1021,5);
    TRUCKCP[playerid] = 21;
    return 1;
    }
    if(TRUCKCP[playerid] == 21)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,535.8619,-1277.8041,17.2422,5);
    TRUCKCP[playerid] = 22;
    return 1;
    }
    if(TRUCKCP[playerid] == 22)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid,weis,"Du hast den Job abgeschlossen ;)");
    GivePlayerMoney(playerid,1150);
    SendClientMessage(playerid,weis,"Du hast 1150$ bekommen");
    SpielerSpeichern(playerid);
    new TRUCKENDE;
    TRUCKENDE = GetPlayerVehicleID(playerid);
    DestroyVehicle(TRUCKENDE);
    return 1;
    }
    }
    So viel spas damit wenn es nicht klappt oder ich was vergessn hab dann schreibt das mit antwort ;)

    Einmal editiert, zuletzt von BlackHuhn ()

  • Super

    Naja Checkpointjobs sind ja mal sowas von Out

    Ähm bißchen fail?
    Wie schnell sich die Meinung von einigen Leuten ändern kann ist schon Sagenhaft.
    Lass mich raten, bei der 1. Beurteilung war es entweder nur, weil du es dir nicht einmal durchgelesen hast und der erste sein wolltest,
    der etwas drunter schreibt oder 2. um Beiträge wieder mal zu schnorren?