/work bugged

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
  • Hi ich habe ein /work system nur es treten manchmal bugs auf das man direkt wenn man im ersten punkt ist das man das geld bekommt obwohl das geld erst im 2ten punkt kommen soll
    außerdem war glaub ich noch ein bug dass einmal der punkt aufeinmal verschwunden war.


    hier ist der script(den Ccp, checkpoint und LSTOLV:
    public OnPlayerEnterCheckpoint(playerid)
    {
    if(Ccp[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ccp[playerid] = 2;
    SetPlayerCheckpoint(playerid, 927.1014,2084.5405,10.8203, 5.0);
    SendClientMessage(playerid, BLAU,"Bring das Geld in deine Base!");
    return 1;
    }


    if(Ccp[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ccp[playerid] = 0;


    GivePlayerMoney(playerid,5000);
    SendClientMessage(playerid, BLAU,"Du hast es Geschaft, hier etwas Geld!");
    return 1;
    }
    if(checkpoint[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    checkpoint[playerid] = 2;
    SetPlayerCheckpoint(playerid, 1642.9668,-2414.5276,13.5547, 5.0);
    SendClientMessage(playerid, BLAU,"Deliver the passengers to LS!");
    return 1;
    }


    if(checkpoint[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    checkpoint[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got sth money!");
    return 1;
    }
    if(LSTOLV[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    LSTOLV[playerid] = 2;
    SetPlayerCheckpoint(playerid, 1581.9318,1534.4133,10.8315, 5.0);
    SendClientMessage(playerid, BLAU,"Deliver the passengers to LV!");
    return 1;
    }


    if(LSTOLV[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    LSTOLV[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got sth money!");
    return 1;
    }
    if(Ammu1[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu1[playerid] = 2;
    SetPlayerCheckpoint(playerid, 4053.9250,-147.2102,11.4713, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to Inustrial Island");
    return 1;
    }


    if(Ammu1[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu1[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got sth money!");
    return 1;
    }


    if(Ammu2[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu2[playerid] = 2;
    SetPlayerCheckpoint(playerid, 2423.0188,1925.6471,6.0156, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to Constuction side 1");
    return 1;
    }


    if(Ammu2[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu2[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }


    if(Ammu3[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu3[playerid] = 2;
    SetPlayerCheckpoint(playerid, -56.6427,119.9775,3.1172, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to Easter Board-Farm");
    return 1;
    }


    if(Ammu3[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu3[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }


    if(Ammu4[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu4[playerid] = 2;
    SetPlayerCheckpoint(playerid, -1513.4344,2608.9175,55.8359, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to Ammushop Quelbrados");
    return 1;
    }


    if(Ammu4[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu4[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }


    if(Ammu5[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu5[playerid] = 2;
    SetPlayerCheckpoint(playerid, -280.3616,2688.2798,62.6684, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to Las Paysadas");
    return 1;
    }


    if(Ammu5[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu5[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }



    if(Ammu6[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu6[playerid] = 2;
    SetPlayerCheckpoint(playerid, 249.3386,1396.1968,10.5859, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to the company near Las Paysadas");
    return 1;
    }


    if(Ammu6[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu6[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }




    if(Ammu7[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu7[playerid] = 2;
    SetPlayerCheckpoint(playerid, 238.5253,-44.6169,1.5781, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to blueberry supermarket");
    return 1;
    }


    if(Ammu7[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu7[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }
    if(Ammu8[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu8[playerid] = 2;
    SetPlayerCheckpoint(playerid, 1003.7125,-1356.2329,13.3246, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to the jim's wings!");
    return 1;
    }


    if(Ammu8[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu8[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }
    if(Ammu9[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu9[playerid] = 2;
    SetPlayerCheckpoint(playerid, 2437.7749,-2429.7834,13.6280, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to LS port!");
    return 1;
    }


    if(Ammu9[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu9[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }



    }
    und jetzt unter OnDialogResponse:
    if(dialogid == 77)
    {
    if(response)
    {
    if(listitem == 0)
    {
    ShowPlayerDialog(playerid,2001,DIALOG_STYLE_LIST,"choose your job","Industrial Island\nConstruction site 1\nEasterBoard-farm\nAmmushop quelbrados\nLas Paysadas\nCompany near Las Paysadas\nBlueberry Supermarket\nJim's Wings\nLS port","ok","OK");
    return 1;
    }
    else if(listitem == 1)
    {
    ShowPlayerDialog(playerid,2002,DIALOG_STYLE_LIST,"choose your job","Ammushop 1\nConstruction site 1\nEasterBoard-farm\nAmmushop quelbrados\nLas Paysadas\nCompany near Las Paysadas\nBlueberry Supermarket\nJim's Wings\nLS port","ok","OK");
    return 1;
    }
    else if(listitem == 2)
    {
    ShowPlayerDialog(playerid,2003,DIALOG_STYLE_LIST,"choose your job","Ammushop 1\nIndustrial island\nEasterBoard-farm\nAmmushop quelbrados\nLas Paysadas\nCompany near Las Paysadas\nBlueberry Supermarket\nJim's Wings\nLS port","ok","OK");
    return 1;
    }
    else if(listitem == 3)
    {
    ShowPlayerDialog(playerid,2004,DIALOG_STYLE_LIST,"choose your job","Ammushop 1\nIndustrial island\nConstruction site 1\nAmmushop quelbrados\nLas Paysadas\nCompany near Las Paysadas\nBlueberry Supermarket\nJim's Wings\nLS port","ok","OK");
    return 1;
    }
    }
    }
    if(dialogid == 2001)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    Ammu2[playerid] = 1;
    SetPlayerCheckpoint(playerid,1363.5885,-1289.5168,13.5469,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Ammushop 1 ");
    return 1;
    }
    else if(listitem == 1)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    Ammu2[playerid] = 1;
    SetPlayerCheckpoint(playerid,1363.5885,-1289.5168,13.5469,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Ammushop 1 ");
    return 1;
    }
    else if(listitem == 2)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    Ammu3[playerid] = 1;
    SetPlayerCheckpoint(playerid,1363.5885,-1289.5168,13.5469,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Ammushop 1 ");
    return 1;
    }
    else if(listitem == 3)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    Ammu4[playerid] = 1;
    SetPlayerCheckpoint(playerid,1363.5885,-1289.5168,13.5469,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Ammushop 1 ");
    return 1;
    }
    else if(listitem == 4)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    Ammu5[playerid] = 1;
    SetPlayerCheckpoint(playerid,1363.5885,-1289.5168,13.5469,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Ammushop 1 ");
    return 1;
    }
    else if(listitem == 5)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    Ammu6[playerid] = 1;
    SetPlayerCheckpoint(playerid,1363.5885,-1289.5168,13.5469,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Ammushop 1 ");
    return 1;
    }
    else if(listitem == 6)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    Ammu7[playerid] = 1;
    SetPlayerCheckpoint(playerid,1363.5885,-1289.5168,13.5469,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Ammushop 1 ");
    return 1;
    }
    else if(listitem == 7)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    Ammu8[playerid] = 1;
    SetPlayerCheckpoint(playerid,1363.5885,-1289.5168,13.5469,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Ammushop 1 ");
    return 1;
    }
    else if(listitem == 8)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    Ammu9[playerid] = 1;
    SetPlayerCheckpoint(playerid,1363.5885,-1289.5168,13.5469,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Ammushop 1 ");
    return 1;


    }
    }
    }
    if(dialogid == 2002)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    insel1[playerid] = 1;
    SetPlayerCheckpoint(playerid,4053.9250,-147.2102,11.4713,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;
    }
    else if(listitem == 1)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    insel2[playerid] = 1;
    SetPlayerCheckpoint(playerid,4053.9250,-147.2102,11.4713,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;
    }
    else if(listitem == 2)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    insel3[playerid] = 1;
    SetPlayerCheckpoint(playerid,4053.9250,-147.2102,11.4713,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;
    }
    else if(listitem == 3)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    insel4[playerid] = 1;
    SetPlayerCheckpoint(playerid,4053.9250,-147.2102,11.4713,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;
    }
    else if(listitem == 4)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    insel5[playerid] = 1;
    SetPlayerCheckpoint(playerid,4053.9250,-147.2102,11.4713,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;
    }
    else if(listitem == 5)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    insel6[playerid] = 1;
    SetPlayerCheckpoint(playerid,4053.9250,-147.2102,11.4713,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;
    }
    else if(listitem == 6)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    insel7[playerid] = 1;
    SetPlayerCheckpoint(playerid,4053.9250,-147.2102,11.4713,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;
    }
    else if(listitem == 7)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    insel8[playerid] = 1;
    SetPlayerCheckpoint(playerid,4053.9250,-147.2102,11.4713,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;
    }
    else if(listitem == 8)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    insel9[playerid] = 1;
    SetPlayerCheckpoint(playerid,4053.9250,-147.2102,11.4713,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;


    }
    }
    }
    if(dialogid == 2003)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    con1[playerid] = 1;
    SetPlayerCheckpoint(playerid,2423.0188,1925.6471,6.0156,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;
    }
    else if(listitem == 1)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    con2[playerid] = 1;
    SetPlayerCheckpoint(playerid,2423.0188,1925.6471,6.0156,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;
    }
    else if(listitem == 2)
    {
    if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 515 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 578 &&
    GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 455 )


    return SendClientMessage( playerid, 0xFFFFFFFF, "You Need to be in a Flatbed , Roadtrain or DFT30 to do this work!" );
    con3[playerid] = 1;
    SetPlayerCheckpoint(playerid,2423.0188,1925.6471,6.0156,5.0);
    SendClientMessage(playerid,BLAU,"Drive to Industrial");
    return 1;
    }
    else if(listitem == 3)
    {



    wenn ihr /work anders scriptet dann sagt vielleicht mal wie dann schonmal danke im vorraus
    ich konnte nicht alles schicken weil es sonst zu viel wäre

    2 Mal editiert, zuletzt von Nixon ()

  • if(Ccp[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ccp[playerid] = 2;
    SetPlayerCheckpoint(playerid, 927.1014,2084.5405,10.8203, 5.0);
    SendClientMessage(playerid, BLAU,"Bring das Geld in deine Base!");
    return 1;
    }


    else if(Ccp[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ccp[playerid] = 0;


    GivePlayerMoney(playerid,5000);
    SendClientMessage(playerid, BLAU,"Du hast es Geschaft, hier etwas Geld!");
    return 1;
    }
    if(checkpoint[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    checkpoint[playerid] = 2;
    SetPlayerCheckpoint(playerid, 1642.9668,-2414.5276,13.5547, 5.0);
    SendClientMessage(playerid, BLAU,"Deliver the passengers to LS!");
    return 1;
    }


    else if(checkpoint[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    checkpoint[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got sth money!");
    return 1;
    }
    if(LSTOLV[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    LSTOLV[playerid] = 2;
    SetPlayerCheckpoint(playerid, 1581.9318,1534.4133,10.8315, 5.0);
    SendClientMessage(playerid, BLAU,"Deliver the passengers to LV!");
    return 1;
    }


    else if(LSTOLV[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    LSTOLV[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got sth money!");
    return 1;
    }
    if(Ammu1[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu1[playerid] = 2;
    SetPlayerCheckpoint(playerid, 4053.9250,-147.2102,11.4713, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to Inustrial Island");
    return 1;
    }


    else if(Ammu1[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu1[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got sth money!");
    return 1;
    }


    else if(Ammu2[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu2[playerid] = 2;
    SetPlayerCheckpoint(playerid, 2423.0188,1925.6471,6.0156, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to Constuction side 1");
    return 1;
    }


    else if(Ammu2[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu2[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }


    else if(Ammu3[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu3[playerid] = 2;
    SetPlayerCheckpoint(playerid, -56.6427,119.9775,3.1172, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to Easter Board-Farm");
    return 1;
    }


    else if(Ammu3[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu3[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }


    else if(Ammu4[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu4[playerid] = 2;
    SetPlayerCheckpoint(playerid, -1513.4344,2608.9175,55.8359, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to Ammushop Quelbrados");
    return 1;
    }


    else if(Ammu4[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu4[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }


    else if(Ammu5[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu5[playerid] = 2;
    SetPlayerCheckpoint(playerid, -280.3616,2688.2798,62.6684, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to Las Paysadas");
    return 1;
    }


    else if(Ammu5[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu5[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }



    else if(Ammu6[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu6[playerid] = 2;
    SetPlayerCheckpoint(playerid, 249.3386,1396.1968,10.5859, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to the company near Las Paysadas");
    return 1;
    }


    else if(Ammu6[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu6[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }




    else if(Ammu7[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu7[playerid] = 2;
    SetPlayerCheckpoint(playerid, 238.5253,-44.6169,1.5781, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to blueberry supermarket");
    return 1;
    }


    else if(Ammu7[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu7[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }
    else if(Ammu8[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu8[playerid] = 2;
    SetPlayerCheckpoint(playerid, 1003.7125,-1356.2329,13.3246, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to the jim's wings!");
    return 1;
    }


    else if(Ammu8[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu8[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }
    else if(Ammu9[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu9[playerid] = 2;
    SetPlayerCheckpoint(playerid, 2437.7749,-2429.7834,13.6280, 5.0);
    SendClientMessage(playerid,BLAU,"Drive to LS port!");
    return 1;
    }


    else if(Ammu9[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    Ammu9[playerid] = 0;


    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid, BLAU,"You've finished the work and you got 30.000$!");
    return 1;
    }


    So, du musst wenn die erste Abfrage schon war mit else if weiter arbeiten, bei den Checkpoints

  • ammu 1 und ammu2 sind ganz neue checkpoints
    die ist klar dass es immer nur 2 chekcpoints per auftrag bei mir gibt?


    nur das der erste checkpoint bei ammu 1 und bei ammu2 der gleich ist ich habe ganz oben nich geschrieben:
    new Ammu1[20];
    new Ammu2[20];
    new Ammu3[20];
    new Ammu4[20];
    new Ammu5[20];
    new Ammu6[20];
    new Ammu7[20];
    new Ammu8[20];
    new Ammu9[20];


    klappt net
    klappt nur nicht wenn man zu zweit oder mehr ist sonst kalppt es

    2 Mal editiert, zuletzt von Nixon ()