baustellen problem

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
  • Problem bei der BAustelle


    Hallo Brotfischer ich hab ein kleines problem ich ahbe jetzt eine baustelle in meineMS cript nun will uch dass sie jede Stunde iwo anders hingemacht wird ja ich weiß das geht mit einem Timer aber ich weiß net wie ich die BAustele Ummappe in einem Timer? wie mappe ich objecte um in ein timer kann mir das jemand erklären ?

  • habs so gemacht :


    public timer1()
    {
    SendClientMessageToAll(COLOR_RED,"an der Los Santos Ammunation wurde eine Baustelle aufgestellt");
    CreateDynamicObject(1422, 1366.412109375, -1385.0676269531, 13.042304992676, 0, 0, 340);
    CreateDynamicObject(1422, 1358.2034912109, -1376.6108398438, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1422, 1358.1942138672, -1373.8128662109, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1422, 1358.2019042969, -1368.4743652344, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1422, 1358.197265625, -1365.9144287109, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1422, 1358.2066650391, -1371.0931396484, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1422, 1358.2071533203, -1363.3581542969, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1422, 1358.1967773438, -1360.6433105469, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1422, 1358.2001953125, -1357.9586181641, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1422, 1358.1936035156, -1355.2509765625, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1422, 1358.1954345703, -1352.5372314453, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1422, 1358.18359375, -1349.8054199219, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1422, 1359.2824707031, -1346.140625, 12.792304992676, 0, 0, 228);
    CreateDynamicObject(1422, 1361.1931152344, -1343.9382324219, 12.792304992676, 0, 0, 227.99928283691);
    CreateDynamicObject(1422, 1363.568359375, -1342.9569091797, 12.792304992676, 0, 0, 177.99932861328);
    CreateDynamicObject(1422, 1366.1961669922, -1343.0382080078, 12.792304992676, 0, 0, 177.99499511719);
    CreateDynamicObject(1422, 1368.9716796875, -1343.1774902344, 12.792304992676, 0, 0, 177.99499511719);
    CreateDynamicObject(1422, 1352.8121337891, -1345.4243164063, 12.792304992676, 0, 0, 226);
    CreateDynamicObject(1422, 1354.6335449219, -1343.4404296875, 12.792304992676, 0, 0, 225.99977111816);
    CreateDynamicObject(1422, 1356.4548339844, -1341.45703125, 12.792304992676, 0, 0, 225.99977111816);
    CreateDynamicObject(1422, 1357.2131347656, -1338.7080078125, 12.792304992676, 0, 0, 269.99975585938);
    CreateDynamicObject(1422, 1357.1744384766, -1336.1473388672, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.1903076172, -1333.4185791016, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.15234375, -1330.7026367188, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.1716308594, -1327.9727783203, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.1859130859, -1325.3121337891, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.1937255859, -1322.361328125, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.193359375, -1319.8088378906, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.1973876953, -1317.0833740234, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.1577148438, -1314.4034423828, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.1623535156, -1311.6607666016, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.1555175781, -1308.9830322266, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.1160888672, -1306.0516357422, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.0888671875, -1303.2503662109, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1353.7518310547, -1291.8706054688, 12.792304992676, 0, 0, 309.99450683594);
    CreateDynamicObject(1422, 1355.5047607422, -1294.0831298828, 12.792304992676, 0, 0, 309.990234375);
    CreateDynamicObject(1422, 1357.0656738281, -1300.4968261719, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1357.1151123047, -1297.5819091797, 12.792304992676, 0, 0, 269.99450683594);
    CreateDynamicObject(1422, 1356.2570800781, -1294.96875, 12.792304992676, 0, 0, 309.99450683594);
    CreateDynamicObject(1434, 1358.2957763672, -1347.8035888672, 12.3828125, 0, 0, 256.25);
    CreateDynamicObject(1422, 1363.8787841797, -1384.1108398438, 13.042304992676, 0, 0, 339.99938964844);
    CreateDynamicObject(1422, 1361.3349609375, -1383.1197509766, 12.917306900024, 0, 0, 339.99938964844);
    CreateDynamicObject(1422, 1359.3189697266, -1382.3656005859, 12.892307281494, 0, 0, 339.99938964844);
    CreateDynamicObject(1422, 1358.203125, -1379.4381103516, 12.792304992676, 0, 0, 270);
    CreateDynamicObject(1434, 1358.2254638672, -1381.4583740234, 12.3828125, 0, 0, 266.2451171875);
    CreateDynamicObject(1425, 1353.4604492188, -1341.7474365234, 12.8353099823, 0, 0, 0);
    CreateDynamicObject(8877, 1361.6923828125, -1349.7763671875, 18.47709274292, 0, 0, 59.996337890625);
    CreateDynamicObject(8877, 1362.8133544922, -1379.4481201172, 18.47709274292, 0, 0, 219.99633789063);
    CreateDynamicObject(2975, 1363.2598876953, -1358.0133056641, 12.546875, 0, 0, 0);
    CreateDynamicObject(2975, 1363.259765625, -1358.0126953125, 14.046875, 0, 0, 0);
    CreateDynamicObject(2975, 1363.2302246094, -1359.3872070313, 12.546875, 0, 0, 0);
    CreateDynamicObject(2975, 1363.2674560547, -1360.6551513672, 12.546875, 0, 358, 0);
    CreateDynamicObject(2975, 1363.2398681641, -1361.9366455078, 12.546875, 0, 357.99499511719, 0);
    CreateDynamicObject(2975, 1363.2272949219, -1363.1960449219, 12.546875, 0, 357.99499511719, 0);
    CreateDynamicObject(2975, 1363.1600341797, -1364.4537353516, 12.546875, 0, 357.99499511719, 0);
    CreateDynamicObject(2975, 1363.1591796875, -1364.453125, 14.096878051758, 0, 357.99499511719, 0);
    CreateDynamicObject(2975, 1363.1561279297, -1363.2122802734, 14.096878051758, 0, 357.99499511719, 0);
    CreateDynamicObject(2975, 1363.1812744141, -1361.9317626953, 14.096878051758, 0, 357.99499511719, 0);
    CreateDynamicObject(2975, 1363.1887207031, -1360.6342773438, 14.096878051758, 0, 357.99499511719, 0);
    CreateDynamicObject(2975, 1363.2136230469, -1359.4436035156, 14.096878051758, 0, 357.99499511719, 0);
    CreateDynamicObject(2934, 1360.2626953125, -1360.7623291016, 13.834732055664, 0, 0, 0);
    CreateDynamicObject(18260, 1363.6737060547, -1369.4539794922, 14.159708023071, 0, 0, 0);
    CreateDynamicObject(5269, 1365.5422363281, -1379.0186767578, 14.95629119873, 0, 0, 0);
    CreateDynamicObject(12913, 1366.9243164063, -1352.9412841797, 15.172164916992, 0, 0, 0);
    CreateDynamicObject(3526, 1357.7894287109, -1381.4886474609, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.7236328125, -1378.7282714844, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.7165527344, -1376.2216796875, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.8071289063, -1373.0715332031, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.7635498047, -1370.2648925781, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.7629394531, -1366.8333740234, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.7540283203, -1362.8504638672, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.7606201172, -1358.3415527344, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.7318115234, -1353.3057861328, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.6915283203, -1348.7950439453, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.6646728516, -1339.8446044922, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.6192626953, -1336.6820068359, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.6530761719, -1333.1772460938, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.6651611328, -1329.6390380859, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.6286621094, -1325.6353759766, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.6285400391, -1321.3543701172, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.6206054688, -1317.603515625, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.6127929688, -1313.853515625, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.66015625, -1307.8449707031, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.5616455078, -1301.6859130859, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3526, 1357.6351318359, -1296.8321533203, 12.569134712219, 0, 0, 0);
    CreateDynamicObject(3865, 1353.8924560547, -1323.8100585938, 14.32452583313, 0, 0, 0);
    CreateDynamicObject(3564, 1352.3804931641, -1304.7333984375, 14.020492553711, 0, 0, 270);
    CreateDynamicObject(3066, 1354.9216308594, -1314.0838623047, 13.433073043823, 0, 0, 0);
    CreateDynamicObject(2991, 1353.8071289063, -1298.2862548828, 12.962133407593, 0, 0, 0);
    CreateDynamicObject(2991, 1353.806640625, -1298.2861328125, 14.312112808228, 0, 0, 0);
    CreateDynamicObject(8877, 1353.3927001953, -1294.9819335938, 18.47709274292, 0, 0, 59.996337890625);
    CreateDynamicObject(2973, 1353.3719482422, -1336.7292480469, 12.390604972839, 0, 0, 0);
    CreateDynamicObject(2973, 1353.4169921875, -1334.0252685547, 12.390604972839, 0, 0, 0);
    CreateDynamicObject(2973, 1353.4113769531, -1331.4327392578, 12.390604972839, 0, 0, 0);
    CreateDynamicObject(2973, 1353.4111328125, -1331.4326171875, 14.890566825867, 0, 0, 0);
    CreateDynamicObject(2973, 1353.392578125, -1334.0178222656, 14.890566825867, 0, 0, 0);
    CreateDynamicObject(2973, 1353.3675537109, -1336.626953125, 14.890566825867, 0, 0, 0);
    SetTimer("timer2",50000,0);
    return 1;
    }


    public timer2()
    {
    SendClientMessageToAll(COLOR_RED,"an der Los Santos Bank wurde eine Baustelle aufgestellt");
    CreateDynamicObject(979, 1415.1038818359, -1038.3364257813, 23.668344497681, 0, 0, 57.745849609375);
    CreateDynamicObject(979, 1410.1121826172, -1046.255859375, 23.668344497681, 0, 0, 57.744140625);
    CreateDynamicObject(979, 1422.1135253906, -1034.4339599609, 23.668344497681, 0, 0, 359.744140625);
    CreateDynamicObject(979, 1431.4965820313, -1034.4821777344, 23.668344497681, 0, 0, 359.74182128906);
    CreateDynamicObject(979, 1439.8979492188, -1034.5340576172, 23.668344497681, 0, 0, 359.74182128906);
    CreateDynamicObject(979, 1449.3054199219, -1034.6008300781, 23.668344497681, 0, 0, 359.74182128906);
    CreateDynamicObject(979, 1458.6040039063, -1034.6962890625, 23.668344497681, 0, 0, 359.74182128906);
    CreateDynamicObject(979, 1465.9869384766, -1038.1177978516, 23.496469497681, 0, 0, 309.74182128906);
    CreateDynamicObject(979, 1469.3011474609, -1046.349609375, 23.668344497681, 0, 0, 271.73754882813);
    CreateDynamicObject(979, 1465.9975585938, -1054.0366210938, 23.668344497681, 0, 0, 221.73583984375);
    CreateDynamicObject(1262, 1409.8897705078, -1039.3607177734, 25.504940032959, 0, 0, 92);
    CreateDynamicObject(16023, 1409.9483642578, -1039.4056396484, 24.212404251099, 0, 0, 0);
    CreateDynamicObject(16023, 1471.4737548828, -1028.8392333984, 24.212404251099, 0, 0, 183.99998474121);
    CreateDynamicObject(1262, 1471.638671875, -1028.9332275391, 25.504940032959, 0, 0, 261.99951171875);
    CreateDynamicObject(2991, 1440.3353271484, -1037.8754882813, 23.283985137939, 0, 0, 0);
    CreateDynamicObject(2991, 1440.3382568359, -1037.9002685547, 24.283985137939, 0, 0, 0);
    CreateDynamicObject(2991, 1440.337890625, -1037.8994140625, 25.508966445923, 0, 0, 0);
    CreateDynamicObject(3046, 1434.6215820313, -1037.5314941406, 23.042253494263, 0, 0, 0);
    CreateDynamicObject(3046, 1432.7178955078, -1037.4832763672, 23.042253494263, 0, 358, 0);
    CreateDynamicObject(3046, 1431.1372070313, -1040.2663574219, 23.042253494263, 0, 357.99499511719, 0);
    CreateDynamicObject(18257, 1424.5305175781, -1041.583984375, 22.65625, 0, 0, 0);
    CreateDynamicObject(3576, 1458.5584716797, -1037.1942138672, 24.148921966553, 0, 0, 0);
    CreateDynamicObject(3722, 1445.4283447266, -1043.2779541016, 27.246408462524, 0, 0, 268);
    CreateDynamicObject(5259, 1462.6772460938, -1043.4659423828, 22.828125, 0, 0, 0);
    SetTimer("timer1",50000,0);
    return 1;
    }


    gibt ein problem BAustelle am Ammunation wird aufgestellt Aber wenn die BAustelle an der Bank aufgestellt wird
    verschwindet die am Ammunation nicht Warum? ;(


    Und genauso umgekhert -.-


    Danke für eure Hilfe!

  • Du musst wenn die neue Baustelle aufgebaut wird die alte mit DestroyDynamicObjects oder so wieder wegmachen.

    Glaub keinem, der Dir sagt, dass Du nichts verändern kannst.
    Die, die das behaupten, haben nur vor der Veränderung Angst.
    Es sind dieselben, die erklären, es sei gut so, wie es ist.
    Und wenn Du etwas ändern willst, dann bist Du automatisch Terrorist (Die Ärzte - Deine Schuld)