Filterscript funkt nicht hilfe pls

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


    ich hab da mal eine Werkstadt gemappt und ein Tor mit gescriptet aber die Werkstadt wird nicht im Server angezeigt kann mir einer helfen pls wäre echt nett


    Kann das problem vill hier drin sein ??
    #include <a_samp>


    #if defined FILTERSCRIPT


    new SpielerInfo[MAX_PLAYERS][SInfo];
    new gate;




    public OnFilterScriptInit()
    {


    main()
    {
    print("\n$$$$$$$$$$$$$$$$$$$$$$$$$$");
    print(" $$$$$$([Werkstadt])$$$$$$");
    print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n");
    }


    gate = CreateObject(11416, 1425.2114257813, -730.27209472656, 97.082992553711, 0, 0, 191.9970703125);
    CreateObject(8210, 2451.3083496094, -1879.3751220703, 14.755834579468, 0, 0, 0.5);
    CreateObject(8210, 2479.6860351563, -1879.0711669922, 14.755834579468, 0, 0, 0);
    CreateObject(8210, 2453.4377441406, -1902.7620849609, 19.580760955811, 0, 0, 359.74987792969);
    CreateObject(8210, 2506.2121582031, -1887.9145507813, 14.755834579468, 0, 0, 90);
    CreateObject(988, 2423.6740722656, -1882.0828857422, 13.42186164856, 0.25, 359.25, 89.753295898438);
    CreateObject(988, 2423.6713867188, -1887.5328369141, 13.42186164856, 0.2471923828125, 359.24743652344, 89.752807617188);
    CreateObject(11387, 1430.4866943359, -749.16455078125, 98.383819580078, 0, 0, 13.99658203125);
    CreateObject(11389, 1417.5715332031, -735.83044433594, 98.122230529785, 0, 0, 14);
    CreateObject(11388, 1417.6840820313, -736.29949951172, 101.68697357178, 0, 0, 14);
    CreateObject(11388, 1417.501953125, -735.822265625, 101.68697357178, 0, 0, 13.99658203125);
    CreateObject(11390, 1417.5424804688, -735.83447265625, 99.390106201172, 0, 0, 14);
    CreateObject(11393, 1423.2666015625, -739.96520996094, 96.499481201172, 0, 0, 14);
    CreateObject(11391, 1411.7484130859, -745.6845703125, 96.219604492188, 0, 0, 14.25);
    CreateObject(11392, 1415.4801025391, -738.39343261719, 94.999443054199, 0, 0, 0);
    CreateObject(14826, 1429.5172119141, -728.19384765625, 95.738822937012, 0, 0, 0);
    CreateObject(11416, 1425.2042236328, -730.22290039063, 97.082992553711, 0, 0, 191.9970703125);
    CreateObject(11102, 1417.0794677734, -752.49536132813, 97.13973236084, 0, 0, 284);
    CreateObject(10671, 1450.5023193359, -738.47491455078, 91.935417175293, 0, 0, 13.5);
    CreateObject(10671, 1447.59765625, -726.8408203125, 91.910415649414, 0, 0, 13.496704101563);
    CreateObject(10671, 1447.59765625, -726.8408203125, 88.160186767578, 0, 0, 13.496704101563);
    CreateObject(10671, 1445.4716796875, -718.376953125, 91.985420227051, 0, 0, 13.4912109375);
    CreateObject(10671, 1445.4716796875, -718.376953125, 88.185188293457, 0, 0, 13.496704101563);
    CreateObject(10671, 1438.2000732422, -713.9599609375, 93.085487365723, 0, 0, 283.49670410156);
    CreateObject(10671, 1426.5687255859, -716.83807373047, 93.13549041748, 0, 0, 283.2412109375);
    CreateObject(10671, 1438.19921875, -713.9599609375, 89.510269165039, 0, 0, 283.4912109375);
    CreateObject(10671, 1438.19921875, -713.9599609375, 87.985176086426, 0, 0, 283.4912109375);
    CreateObject(10671, 1426.5595703125, -716.8134765625, 89.48526763916, 0, 0, 283.24108886719);
    CreateObject(10671, 1415.2443847656, -719.64685058594, 93.110488891602, 0, 0, 283.49108886719);
    CreateObject(10671, 1415.244140625, -719.646484375, 89.48526763916, 0, 0, 283.48571777344);
    CreateObject(10671, 1445.5075683594, -718.34216308594, 93.135429382324, 0, 0, 13.496704101563);
    CreateObject(10671, 1447.59765625, -726.8408203125, 93.13549041748, 0, 0, 13.496704101563);
    CreateObject(10671, 1450.501953125, -738.474609375, 93.13549041748, 0, 0, 13.4912109375);
    CreateObject(10671, 1407.11328125, -721.705078125, 93.110488891602, 0, 0, 283.48022460938);
    CreateObject(10671, 1407.11328125, -721.705078125, 92.085426330566, 0, 0, 283.48022460938);
    CreateObject(10671, 1402.7692871094, -729.05145263672, 93.110488891602, 0, 0, 13.730224609375);
    CreateObject(10671, 1405.7288818359, -740.76239013672, 93.060485839844, 0, 0, 13.727416992188);
    CreateObject(10671, 1407.0258789063, -745.90380859375, 93.060485839844, 0, 0, 13.727416992188);
    CreateObject(10671, 1413.1912841797, -770.60040283203, 93.085487365723, 0, 0, 13.727416992188);
    CreateObject(10671, 1413.51953125, -772.11407470703, 93.085487365723, 0, 0, 13.727416992188);
    CreateObject(10671, 1416.3198242188, -779.34704589844, 89.035316467285, 271.99993896484, 179.99963378906, 223.72766113281);
    CreateObject(10671, 1413.51953125, -772.11328125, 89.510269165039, 0, 0, 13.727416992188);
    CreateObject(10671, 1417.8059082031, -780.89739990234, 89.760360717773, 271.99951171875, 179.99450683594, 223.7255859375);
    CreateObject(10671, 1419.4111328125, -782.54260253906, 90.810424804688, 271.99951171875, 179.99450683594, 223.7255859375);
    CreateObject(10671, 1426.6112060547, -782.90692138672, 93.510513305664, 0, 0, 281.72741699219);
    CreateObject(10671, 1419.669921875, -782.96923828125, 90.810424804688, 271.99951171875, 179.99450683594, 223.7255859375);
    CreateObject(10671, 1426.6103515625, -782.90625, 90.41032409668, 0, 0, 281.72241210938);
    CreateObject(10671, 1437.2897949219, -780.57690429688, 93.510513305664, 0, 0, 281.72241210938);
    CreateObject(10671, 1447.6483154297, -778.30072021484, 93.510513305664, 0, 0, 281.72241210938);
    CreateObject(10671, 1453.8897705078, -776.65240478516, 93.510513305664, 0, 0, 283.72241210938);
    CreateObject(10671, 1458.2556152344, -769.32958984375, 93.435508728027, 0, 0, 13.4912109375);
    CreateObject(10671, 1457.7670898438, -767.31884765625, 93.435508728027, 0, 0, 13.4912109375);
    CreateObject(12929, 1431.0089111328, -762.76885986328, 95.099449157715, 0, 0, 193);
    CreateObject(12928, 1431.0668945313, -762.76147460938, 95.083396911621, 0, 0, 193);
    CreateObject(3555, 1417.8076171875, -766.22546386719, 97.752395629883, 0, 0, 194);
    CreateObject(1808, 1415.6185302734, -721.2607421875, 95.155555725098, 0, 0, 0);
    CreateObject(2186, 1428.3980712891, -746.21899414063, 95.024444580078, 0, 0, 283.75);
    CreateObject(2596, 1426.5061035156, -739.91369628906, 97.646026611328, 0, 0, 0);
    CreateObject(1663, 1425.1850585938, -744.72894287109, 95.484657287598, 0, 0, 172);
    CreateObject(1671, 1425.2489013672, -742.29064941406, 95.484657287598, 0, 0, 316);
    CreateObject(1714, 1425.103515625, -740.91076660156, 95.024444580078, 0, 0, 304);
    CreateObject(1723, 1422.1491699219, -745.88897705078, 94.924438476563, 0, 0, 104);
    CreateObject(1998, 1425.4920654297, -743.39514160156, 94.924438476563, 0, 0, 104);
    CreateObject(2165, 1424.0899658203, -741.74841308594, 94.924438476563, 0, 0, 105.25);
    CreateObject(9192, 1450.8211669922, -736.29211425781, 97.168830871582, 0, 0, 0);
    CreateObject(2714, 1424.6834716797, -722.27734375, 99.662475585938, 0, 0, 101);
    CreateObject(10281, 1438.236328125, -754.22052001953, 97.664245605469, 0, 0, 102);
    CreateObject(2893, 1412.1436767578, -725.81414794922, 96.225944519043, 7.5, 0, 104);
    CreateObject(2893, 1411.6921386719, -724.09014892578, 96.225944519043, 7.4981689453125, 0, 103.99658203125);
    CreateObject(2893, 1406.5279541016, -727.27056884766, 96.225944519043, 343.49829101563, 0.2607421875, 104.07061767578);
    CreateObject(2893, 1406.0727539063, -725.47784423828, 96.225944519043, 343.49304199219, 0.2581787109375, 104.06799316406);
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/torauf", cmdtext, true, 10) == 0)
    {
    if(PlayerToPoint(30,playerid,1420.7963867188, -722.55456542969, 99.008110046387))
    {
    MoveObject(gate,1420.7963867188, -722.55456542969, 99.008110046387, 0, 88, 191.9970703125,2.00);
    return 1;
    }
    }
    if (strcmp("/torzu", cmdtext, true, 10) == 0)
    {
    if(PlayerToPoint(30,playerid,1420.7963867188, -722.55456542969, 99.008110046387))
    {
    MoveObject(gate,1425.2114257813, -730.27209472656, 97.082992553711, 0, 0, 191.9970703125,2.00);
    return 1;
    }
    }
    return 0;
    }


    #endif


    forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
    public 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);
    //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
    return 1;
    }
    }
    return 0;
    }

  • Nur das hier wird funktionieren, weil er vergessen hat die drawdistance einzustellen:
    #include <a_samp>


    #if defined FILTERSCRIPT


    new SpielerInfo[MAX_PLAYERS][SInfo];
    new gate;


    public OnFilterScriptInit()
    {


    main()
    {
    print("\n$$$$$$$$$$$$$$$$$$$$$$$$$$");
    print(" $$$$$$([Werkstadt])$$$$$$");
    print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n");
    }


    gate = CreateObject(11416, 1425.2114257813, -730.27209472656, 97.082992553711, 0, 0, 191.9970703125,200);
    CreateObject(8210, 2451.3083496094, -1879.3751220703, 14.755834579468, 0, 0, 0.5,200);
    CreateObject(8210, 2479.6860351563, -1879.0711669922, 14.755834579468, 0, 0, 0,200);
    CreateObject(8210, 2453.4377441406, -1902.7620849609, 19.580760955811, 0, 0, 359.74987792969,200);
    CreateObject(8210, 2506.2121582031, -1887.9145507813, 14.755834579468, 0, 0, 90,200);
    CreateObject(988, 2423.6740722656, -1882.0828857422, 13.42186164856, 0.25, 359.25, 89.753295898438,200);
    CreateObject(988, 2423.6713867188, -1887.5328369141, 13.42186164856, 0.2471923828125, 359.24743652344, 89.752807617188,200);
    CreateObject(11387, 1430.4866943359, -749.16455078125, 98.383819580078, 0, 0, 13.99658203125,200);
    CreateObject(11389, 1417.5715332031, -735.83044433594, 98.122230529785, 0, 0, 14,200);
    CreateObject(11388, 1417.6840820313, -736.29949951172, 101.68697357178, 0, 0, 14,200);
    CreateObject(11388, 1417.501953125, -735.822265625, 101.68697357178, 0, 0, 13.99658203125,200);
    CreateObject(11390, 1417.5424804688, -735.83447265625, 99.390106201172, 0, 0, 14,200);
    CreateObject(11393, 1423.2666015625, -739.96520996094, 96.499481201172, 0, 0, 14,200);
    CreateObject(11391, 1411.7484130859, -745.6845703125, 96.219604492188, 0, 0, 14.25,200);
    CreateObject(11392, 1415.4801025391, -738.39343261719, 94.999443054199, 0, 0, 0,200);
    CreateObject(14826, 1429.5172119141, -728.19384765625, 95.738822937012, 0, 0, 0,200);
    CreateObject(11416, 1425.2042236328, -730.22290039063, 97.082992553711, 0, 0, 191.9970703125,200);
    CreateObject(11102, 1417.0794677734, -752.49536132813, 97.13973236084, 0, 0, 284,200);
    CreateObject(10671, 1450.5023193359, -738.47491455078, 91.935417175293, 0, 0, 13.5,200);
    CreateObject(10671, 1447.59765625, -726.8408203125, 91.910415649414, 0, 0, 13.496704101563,200);
    CreateObject(10671, 1447.59765625, -726.8408203125, 88.160186767578, 0, 0, 13.496704101563,200);
    CreateObject(10671, 1445.4716796875, -718.376953125, 91.985420227051, 0, 0, 13.4912109375,200);
    CreateObject(10671, 1445.4716796875, -718.376953125, 88.185188293457, 0, 0, 13.496704101563,200);
    CreateObject(10671, 1438.2000732422, -713.9599609375, 93.085487365723, 0, 0, 283.49670410156,200);
    CreateObject(10671, 1426.5687255859, -716.83807373047, 93.13549041748, 0, 0, 283.2412109375,200);
    CreateObject(10671, 1438.19921875, -713.9599609375, 89.510269165039, 0, 0, 283.4912109375,200);
    CreateObject(10671, 1438.19921875, -713.9599609375, 87.985176086426, 0, 0, 283.4912109375,200);
    CreateObject(10671, 1426.5595703125, -716.8134765625, 89.48526763916, 0, 0, 283.24108886719,200);
    CreateObject(10671, 1415.2443847656, -719.64685058594, 93.110488891602, 0, 0, 283.49108886719,200);
    CreateObject(10671, 1415.244140625, -719.646484375, 89.48526763916, 0, 0, 283.48571777344,200);
    CreateObject(10671, 1445.5075683594, -718.34216308594, 93.135429382324, 0, 0, 13.496704101563,200);
    CreateObject(10671, 1447.59765625, -726.8408203125, 93.13549041748, 0, 0, 13.496704101563,200);
    CreateObject(10671, 1450.501953125, -738.474609375, 93.13549041748, 0, 0, 13.4912109375,200);
    CreateObject(10671, 1407.11328125, -721.705078125, 93.110488891602, 0, 0, 283.48022460938,200);
    CreateObject(10671, 1407.11328125, -721.705078125, 92.085426330566, 0, 0, 283.48022460938,200);
    CreateObject(10671, 1402.7692871094, -729.05145263672, 93.110488891602, 0, 0, 13.730224609375,200);
    CreateObject(10671, 1405.7288818359, -740.76239013672, 93.060485839844, 0, 0, 13.727416992188,200);
    CreateObject(10671, 1407.0258789063, -745.90380859375, 93.060485839844, 0, 0, 13.727416992188,200);
    CreateObject(10671, 1413.1912841797, -770.60040283203, 93.085487365723, 0, 0, 13.727416992188,200);
    CreateObject(10671, 1413.51953125, -772.11407470703, 93.085487365723, 0, 0, 13.727416992188,200);
    CreateObject(10671, 1416.3198242188, -779.34704589844, 89.035316467285, 271.99993896484, 179.99963378906, 223.72766113281,200);
    CreateObject(10671, 1413.51953125, -772.11328125, 89.510269165039, 0, 0, 13.727416992188,200);
    CreateObject(10671, 1417.8059082031, -780.89739990234, 89.760360717773, 271.99951171875, 179.99450683594, 223.7255859375,200);
    CreateObject(10671, 1419.4111328125, -782.54260253906, 90.810424804688, 271.99951171875, 179.99450683594, 223.7255859375,200);
    CreateObject(10671, 1426.6112060547, -782.90692138672, 93.510513305664, 0, 0, 281.72741699219,200);
    CreateObject(10671, 1419.669921875, -782.96923828125, 90.810424804688, 271.99951171875, 179.99450683594, 223.7255859375,200);
    CreateObject(10671, 1426.6103515625, -782.90625, 90.41032409668, 0, 0, 281.72241210938,200);
    CreateObject(10671, 1437.2897949219, -780.57690429688, 93.510513305664, 0, 0, 281.72241210938,200);
    CreateObject(10671, 1447.6483154297, -778.30072021484, 93.510513305664, 0, 0, 281.72241210938,200);
    CreateObject(10671, 1453.8897705078, -776.65240478516, 93.510513305664, 0, 0, 283.72241210938,200);
    CreateObject(10671, 1458.2556152344, -769.32958984375, 93.435508728027, 0, 0, 13.4912109375,200);
    CreateObject(10671, 1457.7670898438, -767.31884765625, 93.435508728027, 0, 0, 13.4912109375,200);
    CreateObject(12929, 1431.0089111328, -762.76885986328, 95.099449157715, 0, 0, 193,200);
    CreateObject(12928, 1431.0668945313, -762.76147460938, 95.083396911621, 0, 0, 193,200);
    CreateObject(3555, 1417.8076171875, -766.22546386719, 97.752395629883, 0, 0, 194,200);
    CreateObject(1808, 1415.6185302734, -721.2607421875, 95.155555725098, 0, 0, 0,200);
    CreateObject(2186, 1428.3980712891, -746.21899414063, 95.024444580078, 0, 0, 283.75,200);
    CreateObject(2596, 1426.5061035156, -739.91369628906, 97.646026611328, 0, 0, 0,200);
    CreateObject(1663, 1425.1850585938, -744.72894287109, 95.484657287598, 0, 0, 172,200);
    CreateObject(1671, 1425.2489013672, -742.29064941406, 95.484657287598, 0, 0, 316,200);
    CreateObject(1714, 1425.103515625, -740.91076660156, 95.024444580078, 0, 0, 304,200);
    CreateObject(1723, 1422.1491699219, -745.88897705078, 94.924438476563, 0, 0, 104,200);
    CreateObject(1998, 1425.4920654297, -743.39514160156, 94.924438476563, 0, 0, 104,200);
    CreateObject(2165, 1424.0899658203, -741.74841308594, 94.924438476563, 0, 0, 105.25,200);
    CreateObject(9192, 1450.8211669922, -736.29211425781, 97.168830871582, 0, 0, 0,200);
    CreateObject(2714, 1424.6834716797, -722.27734375, 99.662475585938, 0, 0, 101,200);
    CreateObject(10281, 1438.236328125, -754.22052001953, 97.664245605469, 0, 0, 102,200);
    CreateObject(2893, 1412.1436767578, -725.81414794922, 96.225944519043, 7.5, 0, 104,200);
    CreateObject(2893, 1411.6921386719, -724.09014892578, 96.225944519043, 7.4981689453125, 0, 103.99658203125,200);
    CreateObject(2893, 1406.5279541016, -727.27056884766, 96.225944519043, 343.49829101563, 0.2607421875, 104.07061767578,200);
    CreateObject(2893, 1406.0727539063, -725.47784423828, 96.225944519043, 343.49304199219, 0.2581787109375, 104.06799316406,200);
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/torauf", cmdtext, true, 10) == 0)
    {
    if(PlayerToPoint(30,playerid,1420.7963867188, -722.55456542969, 99.008110046387))
    {
    MoveObject(gate,1420.7963867188, -722.55456542969, 99.008110046387, 0, 88, 191.9970703125,2.00);
    return 1;
    }
    }
    if (strcmp("/torzu", cmdtext, true, 10) == 0)
    {
    if(PlayerToPoint(30,playerid,1420.7963867188, -722.55456542969, 99.008110046387))
    {
    MoveObject(gate,1425.2114257813, -730.27209472656, 97.082992553711, 0, 0, 191.9970703125,2.00);
    return 1;
    }
    }
    return 0;
    }


    #endif


    forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
    public 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);
    //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
    return 1;
    }
    }
    return 0;
    }

  • Nein ich benutz kein gf ich hab selbst gemacht bin Anfänger und will mal rum testen und so und hab vochin die mapp gemacht und wollt die für euch posten aber die geht nett
    ich hof es geht dan kan ich des posten
    ich muss noch eine hebebühne rein machen dan poste ich des
    ich hoff ihr habt eine lösung für mich