Problem mit Autofire

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
  • forward Autofire();
    forward Autofire2();
    forward Autofire3();
    forward Autofire4();
    forward Autofire5();


    Function Autofire()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsAFeuer(i))
    {
    SendClientMessage(i, 0xFF0005FF, "------------Brand Information------------");
    SendClientMessage(i, 0xF0F0F0FF, "Brand am BSN!!!");
    SendClientMessage(i, 0xF0F0F0FF, "Alle verfügbaren Einheiten zum Einsatzort");
    AddFire(1196.5767,-918.9282,43.1353); // feuer1
    AddFire(1194.3164,-917.7292,43.1595); // feuer2
    AddFire(1191.4591,-917.5294,43.2026); // feuer3
    AddFire(1188.5320,-917.6357,43.2382); // feuer4
    AddFire(1185.2877,-917.3595,43.2769); // feuer5
    AddFire(1184.9591,-915.5319,43.2776); // feuer6
    AddFire(1185.8984,-912.0138,43.2591); // feuer7
    AddFire(1185.7859,-909.5634,43.2645); // feuer8
    AddFire(1185.3021,-906.3329,43.2640); // feuer9
    AddFire(1185.0790,-903.0229,43.2607); // feuer10
    AddFire(1182.7781,-901.8381,43.2815); // feuer11
    AddFire(1179.0228,-896.6697,43.3100); // feuer12
    AddFire(1181.1047,-905.2687,43.3037); // feuer13
    AddFire(1202.8712,-919.4841,43.0888); // feuer14
    AddFire(1205.4897,-919.0368,43.0746); // feuer15
    AddFire(1207.5551,-917.9940,43.0639); // feuer16
    AddFire(1208.5004,-917.5167,43.0534); // feuer17
    AddFire(1210.7944,-914.6788,43.0260); // feuer18
    AddFire(1210.2969,-912.5375,43.0274); // feuer19
    AddFire(1209.4282,-908.8575,43.0299); // feuer20
    AddFire(1209.4446,-906.6421,43.0261); // feuer21
    AddFire(1208.8826,-903.9096,43.0271); // feuer22
    AddFire(1208.8828,-901.5885,43.0233); // feuer23
    AddFire(1220.2523,-910.2012,42.9087); // feuer24
    AddFire(1219.1061,-898.3949,42.9067); // feuer25
    AddFire(363.3792,-72.3523,1001.5078); // feuer26
    AddFire(362.4045,-69.6278,1001.5078); // feuer27
    AddFire(361.9682,-66.8991,1001.5078); // feuer28
    AddFire(364.0298,-67.3629,1001.5078); // feuer29
    AddFire(364.0250,-69.2861,1001.5078); // feuer30
    AddFire(363.6273,-70.9933,1001.5078); // feuer31
    AddFire(363.4521,-72.4429,1001.5078); // feuer32
    AddFire(362.3984,-72.9484,1001.5078); // feuer33
    AddFire(365.1219,-75.3126,1001.5078); // feuer34
    AddFire(367.4015,-75.1943,1001.5078); // feuer35
    AddFire(368.9755,-75.1088,1001.5078); // feuer36
    AddFire(371.7991,-75.6779,1001.5078); // feuer37
    AddFire(374.0027,-76.7807,1001.5078); // feuer38
    AddFire(375.6467,-75.6551,1001.5078); // feuer39
    AddFire(377.1903,-76.1523,1001.5078); // feuer40
    AddFire(379.0915,-73.7191,1001.5078); // feuer41
    AddFire(378.0865,-71.0874,1001.5151); // feuer42
    AddFire(379.2489,-70.9626,1001.5078); // feuer43
    AddFire(375.6094,-72.2038,1002.8271); // feuer44
    AddFire(372.8952,-72.0289,1002.3328); // feuer45
    AddFire(373.7148,-72.3000,1002.3328); // feuer46
    AddFire(377.1321,-67.4442,1001.5078); // feuer47
    AddFire(374.8796,-67.4821,1001.5078); // feuer48
    AddFire(373.6974,-64.5419,1001.5151); // feuer49
    AddFire(373.3742,-65.6734,1001.5078); // feuer50
    AddFire(381.6470,-68.6292,1001.5078); // feuer51
    AddFire(382.2391,-67.2945,1001.5078); // feuer52
    AddFire(382.0414,-66.3514,1001.5078); // feuer53
    AddFire(381.8421,-65.4012,1001.5078); // feuer54
    AddFire(381.6012,-64.2527,1001.5078); // feuer55
    AddFire(381.4089,-61.1016,1001.5078); // feuer56
    AddFire(381.1918,-60.0664,1001.5078); // feuer57
    AddFire(382.5752,-57.6145,1001.5078); // feuer56
    AddFire(382.2863,-57.3466,1001.5151); // feuer58
    AddFire(382.0690,-56.4964,1001.5151); // feuer59
    AddFire(381.1615,-57.2283,1001.5078); // feuer60
    AddFire(375.3128,-60.7197,1002.6595); // feuer61
    AddFire(375.8899,-61.6872,1002.6595); // feuer62
    AddFire(375.3142,-58.9723,1002.6671); // feuer63
    SetTimer("Autofire2", 600000, 0);
    }
    }
    }
    return 1;
    }
    Function Autofire2()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsAFeuer(i))
    {
    SendClientMessage(i, 0xFF0005FF, "------------Brand Information------------");
    SendClientMessage(i, 0xF0F0F0FF, "Brand am BSN!!!");
    SendClientMessage(i, 0xF0F0F0FF, "Alle verfügbaren Einheiten zum Einsatzort");
    AddFire(1459.2054,-1013.8445,26.7962);
    AddFire(1467.0146,-1012.5932,26.8438);
    AddFire(1466.9092,-1017.1386,25.5656);
    AddFire(1458.8755,-1018.9822,24.8769);
    AddFire(1463.0963,-1011.1672,26.8438);
    AddFire(1459.8234,-1011.9721,26.8438);
    AddFire(1462.0371,-1013.8762,26.7843);
    AddFire(1464.8990,-1016.8704,25.6658);
    AddFire(1468.3167,-1014.0362,26.7246);
    AddFire(1470.2926,-1017.5928,25.3959);
    AddFire(1473.9336,-1023.0912,23.8281);
    AddFire(1473.1595,-1021.9256,23.8281);
    AddFire(1473.4371,-1027.4862,23.1727);
    AddFire(1483.7819,-1027.7231,23.1727);
    AddFire(242.8839,108.2444,1003.2188);
    AddFire(242.6282,110.8564,1003.2188);
    AddFire(240.4620,113.2353,1003.2188);
    AddFire(240.0034,117.2391,1003.2257);
    AddFire(241.0986,122.6079,1003.2747);
    AddFire(240.5110,122.7096,1003.2740);
    AddFire(243.0749,119.9614,1003.2740);
    AddFire(246.5586,119.4630,1003.2740);
    AddFire(251.0030,119.3117,1003.2740);
    AddFire(248.0244,116.7211,1003.2740);
    AddFire(245.3115,117.3377,1003.2740);
    AddFire(243.2581,122.8848,1003.2740);
    AddFire(248.4956,122.9347,1003.2740);
    AddFire(250.1871,122.6992,1003.2740);
    AddFire(252.3490,125.1523,1003.2740);
    AddFire(246.0850,126.8746,1003.2740);
    AddFire(243.2151,126.4564,1003.2740);
    SetTimer("Autofire3", 600000, 0);


    }
    }
    }
    return 1;
    }
    Function Autofire3()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsAFeuer(i))
    {
    SendClientMessage(i, 0xFF0005FF, "------------Brand Information------------");
    SendClientMessage(i, 0xF0F0F0FF, "Brand am BSN!!!");
    SendClientMessage(i, 0xF0F0F0FF, "Alle verfügbaren Einheiten zum Einsatzort");
    AddFire(9062,305.9552,999.1484); // feuer1
    AddFire(273.9068,304.0428,999.1484); // feuer2
    AddFire(273.9066,304.8470,999.1484); // feuer3
    AddFire(271.4340,307.1922,999.1484); // feuer4
    AddFire(1535.0345,-797.4837,72.2684); // feuer5
    AddFire(271.4343,308.5654,999.1484); // feuer6
    AddFire(270.4774,305.8200,999.1558); // feuer7
    AddFire(267.8054,303.4088,999.1484); // feuer8
    AddFire(267.0684,305.5421,999.1484); // feuer9
    AddFire(271.1585,303.4099,999.1558); // feuer10
    AddFire(1534.8750,-802.8886,72.2927); // feuer11
    AddFire(1535.0338,-805.6840,72.2366); // feuer12
    AddFire(1539.4976,-807.0741,72.2175); // feuer13
    AddFire(1543.1777,-807.1106,72.2175); // feuer14
    AddFire(1547.6951,-803.8439,72.2175); // feuer15
    AddFire(1547.8966,-798.3927,72.2175); // feuer16
    AddFire(1547.6964,-795.9570,72.2175); // feuer17
    AddFire(1536.4456,-793.4362,76.2837); // feuer18
    AddFire(1540.7996,-793.4819,76.2886); // feuer19
    AddFire(1543.6479,-802.2548,77.6915); // feuer20
    AddFire(1540.8336,-804.1810,77.1940); // feuer21
    SetTimer("Autofire4", 600000, 0);
    }
    }
    }
    return 1;
    }
    Function Autofire4()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsAFeuer(i))
    {
    SendClientMessage(i, 0xFF0005FF, "------------Brand Information------------");
    SendClientMessage(i, 0xF0F0F0FF, "Brand am Arbeitsamt!!!");
    SendClientMessage(i, 0xF0F0F0FF, "Alle verfügbaren Einheiten zum Einsatzort");
    AddFire(924.7092,-990.7936,38.3205); // feuer1
    AddFire(931.2042,-989.3245,38.3270); // feuer2
    AddFire(931.2042,-989.3245,38.3270); // feuer3
    AddFire(929.9987,-992.2902,38.2850); // feuer4
    AddFire(932.7098,-992.4600,40.0214); // feuer5
    AddFire(930.1301,-988.3307,40.0214); // feuer6
    AddFire(914.0485,-1002.7015,38.0180); // feuer7
    AddFire(910.1911,-1003.1213,38.0096); // feuer8
    AddFire(905.5949,-997.5874,47.2333); // feuer9
    AddFire(916.9473,-997.2603,47.2333); // feuer10
    AddFire(2221.3364,-1153.8326,1025.7969); // feuer11
    AddFire(2215.6707,-1146.6964,1025.7969); // feuer12
    AddFire(2218.7595,-1146.4131,1025.7969); // feuer13
    AddFire(2220.5947,-1142.1311,1027.0684); // feuer14
    AddFire(2223.9355,-1141.0237,1025.7969); // feuer15
    AddFire(2228.7568,-1149.8688,1029.7969); // feuer16
    AddFire(2228.4241,-1153.3042,1029.7969); // feuer17
    AddFire(2227.2527,-1155.1584,1029.7969); // feuer18
    AddFire(2242.3474,-1152.1849,1029.7969); // feuer19
    SetTimer("Autofire", 600000, 0);
    }
    }
    }
    return 1;
    }SetTimer("autofire", 150000, 1);
    SetTimer("Autofire", 2400000, 1);


    Hay! Ich habe ein Problem ich warte die Stunde Ab und es erschein kein Feuer was hab ich falsch gemacht?