Beiträge von showtime111

    Hallo ich habe mehrere checkpoints erstellt aer mein problem ist wen ich in den ersten checkpoint reinfahre müste der verschwinden und dan den nächsten chacpoint anzeigen aber das macht der nicht der erste checkpoint verschwindet nicht was habe ich den falsch gemacht??




    Hier ist meine pwn:


    #include <a_samp>
    #include <a_samp>
    #pragma tabsize 0
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    public OnFilterScriptInit()
    {
    // Bushaltestelle
    CreateObject(1257, 1535.677856, -1695.709961, 13.826067, 0.0000, 0.0000, 0.0000);
    CreateObject(1257, 1481.327515, -1738.398926, 13.826067, 0.0000, 0.0000, 270.0000);
    CreateObject(1257, 1162.799194, -1858.376587, 13.840400, 0.0000, 0.0000, 270.0000);
    CreateObject(1257, 394.170258, -1778.650879, 5.861780, 0.0000, 0.0000, 270.0000);
    CreateObject(1257, 531.009827, -1241.735962, 16.896696, 0.0000, 0.0000, 125.4689);
    CreateObject(1257, 1006.253418, -952.070862, 42.484543, 0.0000, 0.0000, 96.0934);
    CreateObject(1257, 1187.583862, -932.559082, 43.236420, 0.0000, 0.0000, 98.6717);
    CreateObject(1257, 1815.355591, -1679.346436, 13.826068, 0.0000, 0.0000, 180.0000);
    CreateObject(1257, 1955.373047, -2144.854736, 13.826067, 0.0000, 0.0000, 180.0000);
    CreateObject(1257, 2754.971680, -2458.658447, 13.922378, 0.0000, 0.0000, 180.0000);
    CreateObject(1257, 1681.583496, -2325.312744, 13.826067, 0.0000, 0.0000, 270.0001);
    CreateObject(1257, 2144.249023, -1100.726196, 25.283672, 0.0000, 0.0000, 249.2189);
    CreateObject(1257, 2425.033203, -1466.384521, 24.279192, 0.0000, 0.0000, 180.0000);
    CreateObject(1257, 2790.943115, -1329.294556, 32.904530, 347.1084, 359.1406, 180.0000);
    CreateObject(1257, 2851.615479, -1958.905396, 11.385170, 0.0000, 0.0000, 180.0000);
    CreateObject(1257, 1460.892212, -1027.792358, 24.107317, 0.0000, 0.0000, 90.0000);
    CreateObject(1257, -104.771576, -1162.431030, 2.850914, 0.0000, 0.0000, 337.5000);
    CreateObject(1257, -2027.226074, -64.088860, 35.599503, 0.0000, 0.0000, 90.0000);
    print("\n--------------------------------------");
    print(" PD tor Filterscript by BoNeS");
    print("--------------------------------------\n");


    return 1;
    }
    public OnFilterScriptExit()
    {
    return 1;
    }
    #else
    #endif
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    new cmd[256];
    new CP[MAX_PLAYERS];
    if(strcmp(cmd, "/bus", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    CP[playerid] = 1;
    SetPlayerCheckpoint(playerid, 1162.8475,-1855.9469,13.1052,4.0);//8.0 = größe des checkpoint// da die kooord wo der erste checkpint gesetzt wird
    {
    }
    }
    }//not connected
    return 1;
    }
    public OnPlayerEnterCheckpoint(playerid)
    {
    new CP[MAX_PLAYERS];
    if(CP[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 2;
    SetPlayerCheckpoint(playerid, 1162.8475,-1855.9469,13.1052,4.0);
    }
    else if(CP[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 3;
    SetPlayerCheckpoint(playerid, 1481.1099,-1736.0990,13.0899,4.0);
    }
    else if(CP[playerid] == 3)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 4;
    SetPlayerCheckpoint(playerid, 1533.2006,-1696.1423,13.0900,4.0);
    }
    else if(CP[playerid] == 4)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 5;
    SetPlayerCheckpoint(playerid, 1817.9635,-1679.0994,13.0899,4.0);
    }
    else if(CP[playerid] == 5)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 6;
    SetPlayerCheckpoint(playerid, 1958.0376,-2144.7598,13.0897,4.0);
    }
    else if(CP[playerid] == 6)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 7;
    SetPlayerCheckpoint(playerid, 2757.4810,-2458.4441,13.1878,4.0);
    }
    else if(CP[playerid] == 7)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 8;
    SetPlayerCheckpoint(playerid, 1681.3975,-2322.8298,13.0893,4.0);
    }
    else if(CP[playerid] == 8)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 9;
    SetPlayerCheckpoint(playerid, 1461.3259,-1030.4270,23.5509,4.0);
    }
    else if(CP[playerid] == 9)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 10;
    SetPlayerCheckpoint(playerid, 1188.0732,-935.1434,42.6420,4.0);
    }
    else if(CP[playerid] == 10)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 11;
    SetPlayerCheckpoint(playerid, 1006.5040,-954.5300,41.7557,4.0);
    }
    else if(CP[playerid] == 11)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 12;
    SetPlayerCheckpoint(playerid, 532.6796,-1243.4473,16.3636,4.0);
    }
    else if(CP[playerid] == 12)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 13;
    SetPlayerCheckpoint(playerid, 394.2182,-1776.1411,5.2612,4.0);
    }
    else if(CP[playerid] == 13)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 14;
    SetPlayerCheckpoint(playerid, -107.0344,-1161.7087,2.2304,4.0);
    }
    else if(CP[playerid] == 14)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 15;
    SetPlayerCheckpoint(playerid, -2027.2339,-66.4080,35.0660,4.0);
    }
    else if(CP[playerid] == 15)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 16;
    SetPlayerCheckpoint(playerid, 2144.9521,-1098.2050,24.5191,4.0);
    }
    else if(CP[playerid] == 16)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 17;
    SetPlayerCheckpoint(playerid, 2427.1785,-1466.5867,23.5332,4.0);
    }
    else if(CP[playerid] == 17)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 18;
    SetPlayerCheckpoint(playerid, 2793.2415,-1329.4501,32.1613,4.0);
    }
    else if(CP[playerid] == 18)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~y~Checkoint erreicht!", 2500, 1);
    CP[playerid] = 0;
    SetPlayerCheckpoint(playerid, 2854.1821,-1959.1376,10.6437,4.0);


    }
    return 1;
    }

    Hallo ich brauche schnell hilfe damit ich mein projekt fertig werden kan.


    unswa ich habe vor ein zollsystem zu bauen, aber ich konte eine schranke so scripten das man geldbezahlen mus und das die schranke nach 5 sec zu geht aber wie ka ich merere schranken dazu bauen die unabhängig funktionieren. z.b. ein zoll mit 2 schranken eine für spieler die rausfahren aus ls und eine für leute dei in ls reinfahrne wollen beide müssen beim zoll geld bezahlen.


    Mein problem ist ich bekomme es nicht hin mehrere schranken in einer filtersript einzubauen die unabhängig funtzen.


    Hier bin ich stehen geblieben ich denke mal das alles falsch ist. kann mir jemand zeigen wie das besser geht??


    #include <a_samp>
    #pragma tabsize 0
    #pragma tabsize 0
    forward closea();
    forward closeb();
    new Tora;
    new Torb;
    stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
    {
    if(IsPlayerConnected(playerid))
    {
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
    return 1;
    }
    }
    return 0;
    }
    public OnFilterScriptInit()
    {

    print("\n--------------------------------------");
    print(" pdgerage Filterscript by BoNeS");
    print("--------------------------------------\n");
    Tora= CreateObject(968, 60.202377, -1529.952881, 4.788054, 0.0000, 270.6186, 263.9066);
    Torb= CreateObject(968, 59.532272, -1535.599731, 4.911957, 0.0000, 89.3814, 263.9840);
    return 1;
    }
    public OnFilterScriptExit()
    {
    return 1;
    }
    public closea()
    {
    SetObjectRot(Tora,0.0000,270.6186, 263.9066);

    }
    public closeb()
    {
    SetObjectRot(Torb,0.0000,89.3814, 263.9840);
    }
    public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp(cmdtext, "/zoll", true)==0)
    {
    if(PlayerToPoint(5.0, playerid, 64.2256,-1527.3058,4.8064))// zoll eins
    {
    GivePlayerMoney(playerid,-200);
    GameTextForPlayer(playerid, "~r~ Zoll bezahlt. ~b~ Gute Fahrt", 5000, 1);
    SetObjectRot(Tora,0.0000,0.0000, 263.9066);
    SetTimer("closea",5000,0);
    }
    return 1;
    }


    if (strcmp(cmdtext, "/zoll", true)==0)
    {
    if(PlayerToPoint(5.0, playerid, 54.8526,-1539.0751,5.0116))// zoll eins
    {
    GivePlayerMoney(playerid,-200);
    GameTextForPlayer(playerid, "~r~ Zoll bezahlt. ~b~ Gute Fahrt", 5000, 1);
    SetObjectRot(Torb,0.0000,359.1406, 263.9840);
    SetTimer("closeb",5000,0);
    }
    return 1;
    }
    return 0;
    }

    Wie meinst du das??


    ich habe mal hier ein zwete schranke


    Tor= CreateObject(968, 59.532272, -1535.599731, 4.911957, 0.0000, 89.3814, 263.9840); 

    public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp(cmdtext, "/auf", true)==0)
    {
    if(PlayerToPoint(5.0, playerid, 64.2256,-1527.3058,4.8064))// zoll eins
    GivePlayerMoney(playerid,-200);
    GameTextForPlayer(playerid, "~r~ Zoll bezahlt. ~b~ Gute Fahrt", 5000, 1);
    {
    SetObjectRot(Tor,0.0000,359.1406, 263.9840);


    }
    return 1;
    }


    if (strcmp(cmdtext, "/zu", true)==0)
    {
    if(PlayerToPoint(5.0, playerid, 64.2256,-1527.3058,4.8064)) // zoll eins
    {
    SetObjectRot(Tor,0.0000,89.3814, 263.9840);


    }
    return 1;
    }


    wie bekomme ich das auch dazu am besten wen es wenig platz odr wen es übesichtlich bleibet ich habe noch 34 schranken vor mir undic will die alle in einen filterscript reinpacken ohne das man die überblich verliet.
    MFG ShowTime

    Danke shön ch habe noch ne frage wen ih ein zweites tor machen will wie mus ich dan die daten eingeben mus ich alles doppelt machen z.b.


    forward close();


    noch mal machen??


    kannst du mir eben helfen.


    du kannst ja die daten nehmen die ich scon drine habe nur um mir zu zeigen wie ich zei tore mchen kann.

    Hallo ich bin grade dabei ein zollsystem zu machen, habe auch alles sogut wie fertig aber ich bekomme es nicht hin das sich die schranke nach 5 sec schließen soll.


    Kann mir jemand helfen hier ist mein PWN


    #include <a_samp>
    #pragma tabsize 0
    #pragma tabsize 0
    new Tor;
    stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
    {
    if(IsPlayerConnected(playerid))
    {
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
    return 1;
    }
    }
    return 0;
    }
    public OnFilterScriptInit()
    {


    print("\n--------------------------------------");
    print(" pdgerage Filterscript by BoNeS");
    print("--------------------------------------\n");
    Tor= CreateObject(968, 60.202377, -1529.952881, 4.788054, 0.0000, 270.6186, 263.9066);
    return 1;
    }
    public OnFilterScriptExit()
    {
    return 1;
    }



    public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp(cmdtext, "/auf", true)==0)
    {
    if(PlayerToPoint(5.0, playerid, 64.2256,-1527.3058,4.8064))// zoll eins
    GivePlayerMoney(playerid,-200);
    GameTextForPlayer(playerid, "~r~ Zoll bezahlt. ~b~ Gute Fahrt", 5000, 1);
    {
    SetObjectRot(Tor,0.0000,0.0000, 263.9066);


    }
    return 1;
    }


    if (strcmp(cmdtext, "/zu", true)==0)
    {
    if(PlayerToPoint(5.0, playerid, 64.2256,-1527.3058,4.8064)) // zoll eins
    {
    SetObjectRot(Tor,0.0000,270.6186, 263.9066);


    }
    return 1;
    }
    return 0;
    }




    Danke jetzt schon mal

    Hallo ich brauche mal hilfe ich habe ein Zollschranke gebastelt und ein 5 m radius ingebaut aber ich möchte


    das sich die schranke nach 5 sec scließen soll wen man /auf eingegeben hat und ab besten noch


    wen man den befehl /auf eingiebt das dan den spieler 100$ abgezogen wird.


    Danke jetzt schon mal und könnte jemand das bei mr eifügen oder zeigen wo ich es einfügen soll thx


    MFG ShowTime




    #include <a_samp>
    #pragma tabsize 0
    #pragma tabsize 0
    new Tor;
    stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
    {
    if(IsPlayerConnected(playerid))
    {
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
    return 1;
    }
    }
    return 0;
    }
    public OnFilterScriptInit()
    {


    print("\n--------------------------------------");
    print(" pdgerage Filterscript by BoNeS");
    print("--------------------------------------\n");
    Tor= CreateObject(968, 60.202377, -1529.952881, 4.788054, 0.0000, 270.6186, 263.9066);


    return 1;
    }
    public OnFilterScriptExit()
    {
    return 1;
    }



    public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp(cmdtext, "/auf", true)==0)
    {
    if(PlayerToPoint(5.0, playerid, 64.2256,-1527.3058,4.8064))// zoll eins
    {
    SetObjectRot(Tor,0.0000,0.0000, 263.9066);


    }
    return 1;
    }


    if (strcmp(cmdtext, "/zu", true)==0)
    {
    if(PlayerToPoint(5.0, playerid, 64.2256,-1527.3058,4.8064)) // zoll eins
    {
    SetObjectRot(Tor,0.0000,270.6186, 263.9066);


    }
    return 1;
    }
    return 0;
    }

    Es geht aber da ist was falsch


    ich will das man die schranke öffnen kan wen man 15 meter dran ist.( man mus an der schranke sein um die zu öffnen)


    und nicht öffnen wen man 15 meter weg steht


    was mus ich den ändern ??


    die position von if(!PlayerToPoint(15.0, playerid, -1514.9021, -816.6779, 58.5230)) ?

    Halle ich habe ein problem ich will bei meiner schranke ein radio rein scripten.


    aber es geht irgentwie nicht kan mir jemand sagen wie ich es ändern kann??


    hier mein script




    #include <a_samp>
    #pragma tabsize 0
    #pragma tabsize 0
    new Tor;
    #define PlayerToPoint


    main() {
    //Message shown in server window
    print("\n----------------------------------");
    print(" schranke");
    print("----------------------------------\n");
    }


    public OnGameModeInit() {
    SetGameModeText("My Gamemode"); //Mode name in server browser
    AddPlayerClass(0, -1451.2561,-806.7216,77.6796,113.2599, 0, 0, 0, 0, 0, 0);
    Tor = CreateObject(968, -1517.188477, -818.017883, 58.291527, 0.0000, 270.6186, 258.7500);
    AddStaticVehicle(424,311.7932,-1788.8888,4.3567,359.1558,3,2); //Strandbuggy 1
    return 1;
    }
    public OnGameModeExit() {
    return 1;
    }
    public OnPlayerRequestClass(playerid, classid) {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }
    public OnPlayerRequestSpawn(playerid) {
    return 1;
    }
    public OnPlayerConnect(playerid) {
    return 1;
    }
    public OnPlayerDisconnect(playerid, reason) {
    return 1;
    }
    public OnPlayerSpawn(playerid) {
    return 1;
    }
    public OnPlayerDeath(playerid, killerid, reason) {
    return 1;
    }
    public OnVehicleSpawn(vehicleid) {
    return 1;
    }
    public OnVehicleDeath(vehicleid, killerid) {
    return 1;
    }
    public OnPlayerText(playerid, text[]) {
    return 1;
    }
    public OnPlayerPrivmsg(playerid, recieverid, text[]) {
    return 1;
    }
    public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp(cmdtext, "/auf", true)==0)
    {
    if(!PlayerToPoint(15.0, playerid, -1514.9021, -816.6779, 58.5230))
    SetObjectRot(Tor,0.0000,0.8594,258.7500);
    return 1;
    }


    if (strcmp(cmdtext, "/zu", true)==0)
    {
    if(!PlayerToPoint(15.0, playerid, -1514.9021, -816.6779, 58.5230))
    SetObjectRot(Tor,0.0000,270.6186,258.7500);
    return 1;
    }


    return 0;
    }
    public OnPlayerInfoChange(playerid) {
    return 1;
    }
    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {
    return 1;
    }
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
    return 1;
    }
    public OnPlayerExitVehicle(playerid, vehicleid) {
    return 1;
    }
    public OnPlayerStateChange(playerid, newstate, oldstate) {
    return 1;
    }
    public OnPlayerEnterCheckpoint(playerid) {
    return 1;
    }
    public OnPlayerLeaveCheckpoint(playerid) {
    return 1;
    }
    public OnPlayerEnterRaceCheckpoint(playerid) {
    return 1;
    }
    public OnPlayerLeaveRaceCheckpoint(playerid) {
    return 1;
    }
    public OnRconCommand(cmd[]) {
    return 1;
    }
    public OnObjectMoved(objectid) {
    return 1;
    }
    public OnPlayerObjectMoved(playerid, objectid) {
    return 1;
    }
    public OnPlayerPickUpPickup(playerid, pickupid) {
    return 1;
    }
    public OnPlayerSelectedMenuRow(playerid, row) {
    return 1;
    }
    public OnPlayerExitedMenu(playerid) {
    return 1;
    }

    Hallo ich habe mir eine schranke gescriptet aber die schranke soll nach oben aufgehen und nicht zur seite.


    Ich habe keine ahnung wie ich es machen muss und wie ich es einsetzen muss kan mir jemand helfen am besten zeigen wo ich es einsetzen kan.


    Ich bedanke mich jetzt schon




    Hier mein Script




    #include <a_samp>
    #pragma tabsize 0
    new Tor;
    main() {
    //Message shown in server window
    print("\n----------------------------------");
    print(" schranke");
    print("----------------------------------\n");
    }


    public OnGameModeInit() {
    SetGameModeText("My Gamemode"); //Mode name in server browser
    AddPlayerClass(0, -1451.2561,-806.7216,77.6796,113.2599, 0, 0, 0, 0, 0, 0);
    Tor = CreateObject(968, -1517.188477, -818.017883, 58.291527, 0.0000, 270.6186, 258.7500);
    AddStaticVehicle(424,311.7932,-1788.8888,4.3567,359.1558,3,2); //Strandbuggy 1
    return 1;
    }
    public OnGameModeExit() {
    return 1;
    }
    public OnPlayerRequestClass(playerid, classid) {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }
    public OnPlayerRequestSpawn(playerid) {
    return 1;
    }
    public OnPlayerConnect(playerid) {
    return 1;
    }
    public OnPlayerDisconnect(playerid, reason) {
    return 1;
    }
    public OnPlayerSpawn(playerid) {
    return 1;
    }
    public OnPlayerDeath(playerid, killerid, reason) {
    return 1;
    }
    public OnVehicleSpawn(vehicleid) {
    return 1;
    }
    public OnVehicleDeath(vehicleid, killerid) {
    return 1;
    }
    public OnPlayerText(playerid, text[]) {
    return 1;
    }
    public OnPlayerPrivmsg(playerid, recieverid, text[]) {
    return 1;
    }
    public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp(cmdtext, "/auf", true)==0)
    {
    MoveObject(Tor,-1517.163452, -818.017883, 58.291527,4);
    return 1;
    }


    if (strcmp(cmdtext, "/zu", true)==0)
    {
    MoveObject(Tor, -1517.188477, -818.017883, 58.291527,4);
    return 1;
    }
    return 0;
    }
    public OnPlayerInfoChange(playerid) {
    return 1;
    }
    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {
    return 1;
    }
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
    return 1;
    }
    public OnPlayerExitVehicle(playerid, vehicleid) {
    return 1;
    }
    public OnPlayerStateChange(playerid, newstate, oldstate) {
    return 1;
    }
    public OnPlayerEnterCheckpoint(playerid) {
    return 1;
    }
    public OnPlayerLeaveCheckpoint(playerid) {
    return 1;
    }
    public OnPlayerEnterRaceCheckpoint(playerid) {
    return 1;
    }
    public OnPlayerLeaveRaceCheckpoint(playerid) {
    return 1;
    }
    public OnRconCommand(cmd[]) {
    return 1;
    }
    public OnObjectMoved(objectid) {
    return 1;
    }
    public OnPlayerObjectMoved(playerid, objectid) {
    return 1;
    }
    public OnPlayerPickUpPickup(playerid, pickupid) {
    return 1;
    }
    public OnPlayerSelectedMenuRow(playerid, row) {
    return 1;
    }
    public OnPlayerExitedMenu(playerid) {
    return 1;
    }

    Ich habe micht verguckt ist ein Warning.


    ich hoffe es hilft dir weiter



    C:\DOKUME~1\MR3F63~1.FLO\Desktop\NEUERO~1\GAMEMO~1\Bus.pwn(79) : warning 217: loose indentation
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.

    Hallo ich will für einen beruf (Busfahrer) checkpoints erstellen so das er nur die abfahren mus und das er an allen haltestellen


    anhält.


    ich weis leiner nix wie man ein checkpoint erstellt oder wo ich sowas im gamemod eingeben mus kan mir jemand helfen???

    Hallo kan mir jemand helfen und sagen was ich falsch gemacht habe ich habe alles vom TUT übernommen aber die


    beiden x,y,z cordinaten habe ich neu eingefügt.


    kan mir jemand helfen thx



    #include <a_samp>
    new Tor;
    main() {
    //Message shown in server window
    print("\n----------------------------------");
    print(" Bus");
    print("----------------------------------\n");
    }


    public OnGameModeInit() {
    SetGameModeText("My Gamemode"); //Mode name in server browser
    AddPlayerClass(0, 314.6997, -1779.7434, 4.5598, 269.1425, 0, 0, 0, 0, 0, 0);
    Tor = CreateObject(969, 2028.251099, 1337.621704, 9.987190, 0.0000, 0.0000, 270.0000);
    return 1;
    }
    public OnGameModeExit() {
    return 1;
    }
    public OnPlayerRequestClass(playerid, classid) {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }
    public OnPlayerRequestSpawn(playerid) {
    return 1;
    }
    public OnPlayerConnect(playerid) {
    return 1;
    }
    public OnPlayerDisconnect(playerid, reason) {
    return 1;
    }
    public OnPlayerSpawn(playerid) {
    return 1;
    }
    public OnPlayerDeath(playerid, killerid, reason) {
    return 1;
    }
    public OnVehicleSpawn(vehicleid) {
    return 1;
    }
    public OnVehicleDeath(vehicleid, killerid) {
    return 1;
    }
    public OnPlayerText(playerid, text[]) {
    return 1;
    }
    public OnPlayerPrivmsg(playerid, recieverid, text[]) {
    return 1;
    }
    public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp(cmdtext, "/auf", true)==0)
    {
    MoveObject(Tor,2028.244141, 1338.613037, 9.987190,4);
    return 1;
    }


    if (strcmp(cmdtext, "/zu", true)==0)
    {
    MoveObject(Tor, 2028.251099, 1337.621704, 9.987190,4);
    return 1;
    }
    return 0;
    }
    public OnPlayerInfoChange(playerid) {
    return 1;
    }
    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {
    return 1;
    }
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
    return 1;
    }
    public OnPlayerExitVehicle(playerid, vehicleid) {
    return 1;
    }
    public OnPlayerStateChange(playerid, newstate, oldstate) {
    return 1;
    }
    public OnPlayerEnterCheckpoint(playerid) {
    return 1;
    }
    public OnPlayerLeaveCheckpoint(playerid) {
    return 1;
    }
    public OnPlayerEnterRaceCheckpoint(playerid) {
    return 1;
    }
    public OnPlayerLeaveRaceCheckpoint(playerid) {
    return 1;
    }
    public OnRconCommand(cmd[]) {
    return 1;
    }
    public OnObjectMoved(objectid) {
    return 1;
    }
    public OnPlayerObjectMoved(playerid, objectid) {
    return 1;
    }
    public OnPlayerPickUpPickup(playerid, pickupid) {
    return 1;
    }
    public OnPlayerSelectedMenuRow(playerid, row) {
    return 1;
    }
    public OnPlayerExitedMenu(playerid) {
    return 1;
    }