Wie füge ich Maps in Scripts ein?

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 Brotfische. Ich bekam heute diese Map (es ist ein Unfall in LS):
    #include <a_samp>
    #if defined FILTERSCRIPT
    public OnFilterScriptInit(){print("\n--------------------------------------");print(" Los Santos Unfall by GStyler");print("--------------------------------------\n");return 1;}
    public OnFilterScriptExit(){return 1;}
    #else
    #endif
    public OnGameModeInit(){CreateObject(1260, 1051.2534179688, -934.04748535156, 40.279098510742, 1.9850158691406, 166.73498535156, 117.70007324219);CreateObject(1260, 1060.2354736328, -949.90350341797, 43.873420715332, 0, 251.82998657227, 119.64004516602);CreateObject(4735, 1062.9266357422, -954.80255126953, 42.810375213623, 0.75, 108.19003295898, 300.43005371094);CreateObject(4517, 1106.9719238281, -951.02746582031, 43.328960418701, 0, 0, 270.27026367188);CreateObject(4517, 1085.0318603516, -979.56433105469, 41.260776519775, 351.53002929688, 0, 180.53918457031);CreateObject(4517, 1036.0888671875, -958.95208740234, 43.051609039307, 0, 0, 100.77923583984);CreateObject(1282, 1011.0516357422, -975.46051025391, 41.412982940674, 0, 0, 309.07019042969);CreateObject(1282, 1115.1319580078, -963.58258056641, 42.448539733887, 0, 0, 38.797515869141);CreateObject(1282, 1113.8829345703, -959.94665527344, 42.253925323486, 0, 0, 8.8827209472656);CreateObject(1282, 1113.6242675781, -942.47766113281, 42.378562927246, 0, 0, 348.94250488281);CreateObject(1282, 1114.9925537109, -938.73327636719, 42.676609039307, 0, 0, 309.06237792969);CreateObject(1282, 1076.5627441406, -982.33245849609, 40.086097717285, 0, 7, 269.18200683594);CreateObject(1282, 1093.6550292969, -982.09692382813, 40.104839324951, 0.25, 7.25, 269.18151855469);CreateObject(1282, 1034.5880126953, -968.81439208984, 42.159023284912, 0, 0, 169.48162841797);CreateObject(1282, 1031.5817871094, -950.17138671875, 42.110626220703, 0, 0, 219.33050537109);CreateObject(1424, 1119.1800537109, -942.54449462891, 42.210041046143, 0, 0, 270.27026367188);CreateObject(1424, 1119.0783691406, -944.63940429688, 42.198169708252, 0, 0, 270.26916503906);CreateObject(1424, 1118.3798828125, -946.95703125, 42.163963317871, 0, 0, 270.26916503906);CreateObject(1424, 1118.4028320313, -949.20080566406, 42.127388000488, 0, 0, 270.26916503906);CreateObject(1424, 1118.3295898438, -951.80279541016, 42.119609832764, 0, 0, 270.26916503906);CreateObject(1424, 1118.0891113281, -954.2919921875, 42.094863891602, 0, 0, 270.26916503906);CreateObject(1424, 1117.6499023438, -957.01879882813, 42.06941986084, 0, 0, 270.26916503906);CreateObject(1424, 1117.2974853516, -959.556640625, 42.070281982422, 0, 0, 270.26916503906);CreateObject(1424, 1117.0610351563, -962.09967041016, 42.268051147461, 0, 0, 270.26916503906);CreateObject(1424, 1116.9572753906, -964.22991943359, 42.268329620361, 0, 0, 270.26916503906);CreateObject(1424, 1118.7962646484, -939.31677246094, 42.393539428711, 0, 0, 270.26916503906);CreateObject(1424, 1118.8044433594, -937.3212890625, 42.547687530518, 0, 0, 270.26916503906);CreateObject(1424, 1088.5415039063, -990.68658447266, 38.629596710205, 0, 0, 180.53918457031);CreateObject(1424, 1086.50390625, -990.5830078125, 38.65060043335, 0, 0, 180.53833007813);CreateObject(1424, 1084.3602294922, -990.6748046875, 38.631984710693, 0, 0, 180.53833007813);CreateObject(1424, 1082.1663818359, -990.47247314453, 38.673015594482, 0, 0, 180.53833007813);CreateObject(1424, 1080.0430908203, -990.36730957031, 38.694343566895, 0, 0, 180.53833007813);CreateObject(1424, 1078.0034179688, -990.39904785156, 38.841304779053, 0, 0, 180.53833007813);CreateObject(1424, 1075.8809814453, -990.20269775391, 38.884872436523, 0, 0, 180.53833007813);CreateObject(1424, 1091.1307373047, -990.48608398438, 38.81322479248, 0, 0, 180.53833007813);CreateObject(1424, 1093.298828125, -990.27661132813, 38.854518890381, 0, 0, 180.53833007813);CreateObject(1424, 1031.9868164063, -946.68566894531, 42.147624969482, 0, 0, 60.898376464844);CreateObject(1424, 1030.8179931641, -948.64276123047, 42.117721557617, 0, 0, 60.897216796875);CreateObject(1424, 1028.8360595703, -951.20678710938, 41.889026641846, 0, 0, 60.897216796875);CreateObject(1424, 1025.4755859375, -953.9541015625, 42.34016418457, 0, 0, 60.897216796875);CreateObject(1424, 1024.7506103516, -955.9521484375, 41.837875366211, 0, 0, 60.897216796875);CreateObject(1424, 1024.0142822266, -958.42858886719, 41.822261810303, 0, 0, 90.807220458984);CreateObject(1424, 1023.9486083984, -960.80120849609, 41.806282043457, 0, 0, 90.802001953125);CreateObject(1424, 1024.4595947266, -963.38146972656, 41.816123962402, 0, 0, 110.74197387695);CreateObject(1424, 1025.2631835938, -965.634765625, 41.824981689453, 0, 0, 110.73669433594);CreateObject(1424, 1026.3096923828, -967.97418212891, 41.842037200928, 0, 0, 110.73669433594);CreateObject(1424, 1027.7344970703, -970.3193359375, 41.861583709717, 0, 0, 110.73669433594);CreateObject(1424, 1028.9708251953, -972.71496582031, 42.073257446289, 0, 0, 110.73669433594);CreateObject(1424, 1030.4819335938, -975.44641113281, 42.086448669434, 0, 0, 110.73669433594);CreateObject(1424, 1031.1892089844, -977.88592529297, 42.300132751465, 0, 0, 110.73669433594);CreateObject(1424, 1032.8057861328, -980.78356933594, 42.310386657715, 0, 0, 110.73669433594);CreateObject(1424, 1033.7502441406, -982.98974609375, 42.310386657715, 0, 0, 110.73669433594);CreateObject(617, 1077.2952880859, -940.42565917969, 41.864044189453, 90.200012207031, 0, 340.06005859375);CreateObject(617, 1061.5693359375, -968.86267089844, 41.796875, 90.19775390625, 0, 250.330078125);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 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 OnPlayerCommandText(playerid, cmdtext[]){return 0;}
    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 OnPlayerRequestSpawn(playerid){return 1;}
    public OnObjectMoved(objectid){return 1;}
    public OnPlayerObjectMoved(playerid, objectid){return 1;}
    public OnPlayerPickUpPickup(playerid, pickupid){return 1;}
    public OnVehicleMod(playerid, vehicleid, componentid){return 1;}
    public OnVehiclePaintjob(playerid, vehicleid, paintjobid){return 1;}
    public OnVehicleRespray(playerid, vehicleid, color1, color2){return 1;}
    public OnPlayerSelectedMenuRow(playerid, row){return 1;}
    public OnPlayerExitedMenu(playerid){return 1;}
    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid){return 1;}
    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){return 1;}
    public OnRconLoginAttempt(ip[], password[], success){return 1;}
    public OnPlayerUpdate(playerid){return 1;}
    public OnPlayerStreamIn(playerid, forplayerid){return 1;}
    public OnPlayerStreamOut(playerid, forplayerid){return 1;}
    public OnVehicleStreamIn(vehicleid, forplayerid){return 1;}
    public OnVehicleStreamOut(vehicleid, forplayerid){return 1;}
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){return 1;}
    public OnPlayerClickPlayer(playerid, clickedplayerid, source){return 1;}



    So nun würde ich gerne wissen, wie ich es in mein Script einfüge. Ich bitte um Antwort

  • oder füg das in dein script unter OnGameModeInit
    CreateObject(1260, 1051.2534179688, -934.04748535156, 40.279098510742, 1.9850158691406, 166.73498535156, 117.70007324219);
    CreateObject(1260, 1060.2354736328, -949.90350341797, 43.873420715332, 0, 251.82998657227, 119.64004516602);
    CreateObject(4735, 1062.9266357422, -954.80255126953, 42.810375213623, 0.75, 108.19003295898, 300.43005371094);
    CreateObject(4517, 1106.9719238281, -951.02746582031, 43.328960418701, 0, 0, 270.27026367188);
    CreateObject(4517, 1085.0318603516, -979.56433105469, 41.260776519775, 351.53002929688, 0, 180.53918457031);
    CreateObject(4517, 1036.0888671875, -958.95208740234, 43.051609039307, 0, 0, 100.77923583984);
    CreateObject(1282, 1011.0516357422, -975.46051025391, 41.412982940674, 0, 0, 309.07019042969);
    CreateObject(1282, 1115.1319580078, -963.58258056641, 42.448539733887, 0, 0, 38.797515869141);
    CreateObject(1282, 1113.8829345703, -959.94665527344, 42.253925323486, 0, 0, 8.8827209472656);
    CreateObject(1282, 1113.6242675781, -942.47766113281, 42.378562927246, 0, 0, 348.94250488281);
    CreateObject(1282, 1114.9925537109, -938.73327636719, 42.676609039307, 0, 0, 309.06237792969);
    CreateObject(1282, 1076.5627441406, -982.33245849609, 40.086097717285, 0, 7, 269.18200683594);
    CreateObject(1282, 1093.6550292969, -982.09692382813, 40.104839324951, 0.25, 7.25, 269.18151855469);
    CreateObject(1282, 1034.5880126953, -968.81439208984, 42.159023284912, 0, 0, 169.48162841797);
    CreateObject(1282, 1031.5817871094, -950.17138671875, 42.110626220703, 0, 0, 219.33050537109);
    CreateObject(1424, 1119.1800537109, -942.54449462891, 42.210041046143, 0, 0, 270.27026367188);
    CreateObject(1424, 1119.0783691406, -944.63940429688, 42.198169708252, 0, 0, 270.26916503906);
    CreateObject(1424, 1118.3798828125, -946.95703125, 42.163963317871, 0, 0, 270.26916503906);
    CreateObject(1424, 1118.4028320313, -949.20080566406, 42.127388000488, 0, 0, 270.26916503906);
    CreateObject(1424, 1118.3295898438, -951.80279541016, 42.119609832764, 0, 0, 270.26916503906);
    CreateObject(1424, 1118.0891113281, -954.2919921875, 42.094863891602, 0, 0, 270.26916503906);
    CreateObject(1424, 1117.6499023438, -957.01879882813, 42.06941986084, 0, 0, 270.26916503906);
    CreateObject(1424, 1117.2974853516, -959.556640625, 42.070281982422, 0, 0, 270.26916503906);
    CreateObject(1424, 1117.0610351563, -962.09967041016, 42.268051147461, 0, 0, 270.26916503906);
    CreateObject(1424, 1116.9572753906, -964.22991943359, 42.268329620361, 0, 0, 270.26916503906);
    CreateObject(1424, 1118.7962646484, -939.31677246094, 42.393539428711, 0, 0, 270.26916503906);
    CreateObject(1424, 1118.8044433594, -937.3212890625, 42.547687530518, 0, 0, 270.26916503906);
    CreateObject(1424, 1088.5415039063, -990.68658447266, 38.629596710205, 0, 0, 180.53918457031);
    CreateObject(1424, 1086.50390625, -990.5830078125, 38.65060043335, 0, 0, 180.53833007813);
    CreateObject(1424, 1084.3602294922, -990.6748046875, 38.631984710693, 0, 0, 180.53833007813);
    CreateObject(1424, 1082.1663818359, -990.47247314453, 38.673015594482, 0, 0, 180.53833007813);
    CreateObject(1424, 1080.0430908203, -990.36730957031, 38.694343566895, 0, 0, 180.53833007813);
    CreateObject(1424, 1078.0034179688, -990.39904785156, 38.841304779053, 0, 0, 180.53833007813);
    CreateObject(1424, 1075.8809814453, -990.20269775391, 38.884872436523, 0, 0, 180.53833007813);
    CreateObject(1424, 1091.1307373047, -990.48608398438, 38.81322479248, 0, 0, 180.53833007813);
    CreateObject(1424, 1093.298828125, -990.27661132813, 38.854518890381, 0, 0, 180.53833007813);
    CreateObject(1424, 1031.9868164063, -946.68566894531, 42.147624969482, 0, 0, 60.898376464844);
    CreateObject(1424, 1030.8179931641, -948.64276123047, 42.117721557617, 0, 0, 60.897216796875);
    CreateObject(1424, 1028.8360595703, -951.20678710938, 41.889026641846, 0, 0, 60.897216796875);
    CreateObject(1424, 1025.4755859375, -953.9541015625, 42.34016418457, 0, 0, 60.897216796875);
    CreateObject(1424, 1024.7506103516, -955.9521484375, 41.837875366211, 0, 0, 60.897216796875);
    CreateObject(1424, 1024.0142822266, -958.42858886719, 41.822261810303, 0, 0, 90.807220458984);
    CreateObject(1424, 1023.9486083984, -960.80120849609, 41.806282043457, 0, 0, 90.802001953125);
    CreateObject(1424, 1024.4595947266, -963.38146972656, 41.816123962402, 0, 0, 110.74197387695);
    CreateObject(1424, 1025.2631835938, -965.634765625, 41.824981689453, 0, 0, 110.73669433594);
    CreateObject(1424, 1026.3096923828, -967.97418212891, 41.842037200928, 0, 0, 110.73669433594);
    CreateObject(1424, 1027.7344970703, -970.3193359375, 41.861583709717, 0, 0, 110.73669433594);
    CreateObject(1424, 1028.9708251953, -972.71496582031, 42.073257446289, 0, 0, 110.73669433594);
    CreateObject(1424, 1030.4819335938, -975.44641113281, 42.086448669434, 0, 0, 110.73669433594);
    CreateObject(1424, 1031.1892089844, -977.88592529297, 42.300132751465, 0, 0, 110.73669433594);
    CreateObject(1424, 1032.8057861328, -980.78356933594, 42.310386657715, 0, 0, 110.73669433594);
    CreateObject(1424, 1033.7502441406, -982.98974609375, 42.310386657715, 0, 0, 110.73669433594);
    CreateObject(617, 1077.2952880859, -940.42565917969, 41.864044189453, 90.200012207031, 0, 340.06005859375);
    CreateObject(617, 1061.5693359375, -968.86267089844, 41.796875, 90.19775390625, 0, 250.330078125);

  • Danke. Funktioniert super ;)


    //EDIT: Ach ja, da ist noch etwas:



    //credits by Sony
    #include <a_samp>
    #define COLOR_RED 0xAA3333AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    #pragma tabsize 0
    forward GateCloseZoll1();
    forward GateCloseZoll2();
    new zoll1;
    new zoll2;
    public OnFilterScriptInit()
    {
    print("\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
    print(" Sony's LS-SF Zoll Filterscript");
    print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n");
    CreateObject(8168, 62.639053, -1533.241577, 6.127338, 0.0000, 0.0000, 186.8756);
    CreateObject(8168, 49.255692, -1531.192993, 6.260714, 0.0000, 0.0000, 6.9528);
    CreateObject(994, 52.837242, -1531.628052, 4.381447, 0.0000, 0.0000, 348.8273);
    CreateObject(996, 27.192585, -1539.311401, 4.490602, 0.0000, 0.0000, 339.2189);
    CreateObject(996, 25.940092, -1516.013306, 4.384654, 0.0000, 356.5623, 353.9067);
    CreateObject(966, 52.582298, -1534.520874, 4.111042, 0.0000, 0.0000, 80.4688);
    CreateObject(966, 59.172279, -1529.614868, 3.997721, 0.0000, 0.0000, 261.3284);
    CreateObject(996, 52.591675, -1521.283569, 4.823681, 0.0000, 0.0000, 348.7500);
    CreateObject(996, 43.648811, -1541.607788, 4.955574, 0.0000, 0.0000, 2.5783);
    CreateObject(996, 52.307480, -1541.463867, 4.908387, 0.0000, 0.0000, 345.3122);
    CreateObject(996, 61.247620, -1522.886963, 4.766047, 0.0000, 0.0000, 358.2811);
    zoll1 = CreateObject(968, 51.417946, -1541.257446, 4.870291, 0.0000, 269.7591, 260.3054);
    zoll2 = CreateObject(968, 60.200123, -1522.848999, 4.740675, 0.0000, 89.3814, 261.4057);
    return 1;
    }
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/Zoll", true) == 0)
    {
    if (IsPlayerInRangeOfPoint(playerid,7.0, 48.7261,-1537.2622,5.0223))
    {
    SetObjectRot(zoll1, 0.0000, 359.1406, 260.3054);
    GameTextForPlayer(playerid, "~g~Kosten: ~r~-50$", 5000, 1);
    GivePlayerMoney(playerid, -50);
    SetTimer("GateCloseZoll1", 3000, 0);
    }
    else if (IsPlayerInRangeOfPoint(playerid, 7.0, 62.9513,-1526.6962,4.7878))
    {
    SetObjectRot(zoll2, 0.0000, 0.0000, 261.4057);
    GameTextForPlayer(playerid, "~g~Kosten: ~r~-50$", 5000, 1);
    GivePlayerMoney(playerid, -500);
    SetTimer("GateCloseZoll2", 3000, 0);
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED,"Sie Sind an keiner Zoll Station");
    return 1;
    }
    return 1;
    }
    return 0;
    }
    public GateCloseZoll1()
    {
    SetObjectRot(zoll1, 0.0000, 269.7591, 260.3054);
    return 1;
    }
    public GateCloseZoll2()
    {
    SetObjectRot(zoll2, 0.0000, 89.3814, 261.4057);
    return 1;
    }
    #endif
    Als Filterscript geht es nicht. Bitte um hilfe

    Einmal editiert, zuletzt von Mr.White ()