Tore öffnen...

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 bin neu in der Scripting zone...
    Ich würde gerne wissen wie man Tore macht die sich mit einem CMD öffnen,


    Wen das Tor zu ist:
    CreateObject(980, 2878.484619, -1963.114624, 12.727262, 0.0000, 0.0000, 90.0000);


    Wen das Tor auf ist:
    CreateObject(980, 2878.500977, -1963.120605, 18.134064, 0.0000, 0.0000, 90.0000);


    Hoffe auf gute Antwort. :rolleyes:

  • Cool.. Danke hat mir geholfen :)


    /€:
    Könnt ihr mir auch sagen wie ich Objekte einfüge?,
    Am bessten ins selbe Script..


    #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new y_gate;



    public OnFilterScriptInit()
    {
    y_gate = CreateObject(980, 2878.484619, -1963.114624, 12.727262, 0.0000, 0.0000, 90.0000);



    print("\n--------------------------------------");
    print(" --------------------------------------");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/369a", true) == 0){
    MoveObject(y_gate,2878.500977, -1963.120605, 18.134064,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Admin Gelände!");
    return 1;
    }
    if (strcmp(cmdtext, "/369z", true) == 0){
    MoveObject(y_gate,2878.484619, -1963.114624, 12.727262,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Admin Gelände!");
    return 1;
    }
    return 0;
    }


    CreateObject(6300, 2908.300537, -1953.318115, 2.063247, 0.0000, 0.0000, 90.0000);
    CreateObject(11491, 2939.292725, -1952.522461, 11.531161, 0.0000, 0.0000, 90.0000);
    CreateObject(11490, 2928.241455, -1952.539673, 10.027840, 0.0000, 0.0000, 90.0002);
    CreateObject(11496, 2953.743408, -1927.296631, 1.987930, 0.0000, 0.0000, 90.0000);
    CreateObject(8613, 2951.065918, -1927.941772, 6.475755, 0.0000, 0.0000, 90.0000);
    CreateObject(11496, 2953.722900, -1932.225342, 1.975974, 0.0000, 0.0000, 270.0000);
    CreateObject(980, 2912.581543, -1983.661011, 12.730549, 0.0000, 0.0000, 0.0000);
    CreateObject(980, 2924.088379, -1983.652832, 12.830547, 0.0000, 0.0000, 0.0000);
    CreateObject(980, 2935.645020, -1983.656006, 12.830547, 0.0000, 0.0000, 0.0000);
    CreateObject(980, 2941.143799, -1983.657471, 12.824701, 0.0000, 0.0000, 0.0000);
    CreateObject(980, 2946.846680, -1977.959717, 12.830547, 0.0000, 0.0000, 270.0000);
    CreateObject(980, 2946.832520, -1966.459473, 12.830547, 0.0000, 0.0000, 270.0000);
    CreateObject(980, 2946.831787, -1954.957031, 12.830547, 0.0000, 0.0000, 270.0000);
    CreateObject(980, 2946.907715, -1943.431885, 12.830547, 0.0000, 0.0000, 270.0000);
    CreateObject(980, 2946.888916, -1931.860107, 12.830547, 0.0000, 0.0000, 270.0000);
    CreateObject(980, 2941.106445, -1922.981079, 12.830547, 0.0000, 0.0000, 180.0000);
    CreateObject(980, 2929.590088, -1922.980713, 12.830547, 0.0000, 0.0000, 180.0000);
    CreateObject(980, 2918.153809, -1922.975220, 12.830547, 0.0000, 0.0000, 180.0000);
    CreateObject(980, 2910.360596, -1922.948242, 12.830547, 0.0000, 0.0000, 180.0000);
    CreateObject(980, 2904.555908, -1928.552734, 12.830547, 0.0000, 0.0000, 270.0000);
    CreateObject(980, 2898.785645, -1933.440186, 12.830547, 0.0000, 0.0000, 180.0000);
    CreateObject(980, 2891.757813, -1933.438354, 12.830547, 0.0000, 0.0000, 180.0000);
    CreateObject(980, 2880.183594, -1933.476563, 12.830547, 0.0000, 0.0000, 180.0000);
    CreateObject(980, 2874.492920, -1939.242798, 12.830547, 0.0000, 0.0000, 90.0000);
    CreateObject(980, 2874.487793, -1950.745239, 12.852434, 0.0000, 0.0000, 90.0000);
    CreateObject(980, 2874.479004, -1977.884521, 12.863674, 0.0000, 0.0000, 90.0000);
    CreateObject(980, 2880.254395, -1983.717285, 12.777237, 0.0000, 0.0000, 180.0002);
    CreateObject(980, 2891.758545, -1983.719116, 12.740482, 0.0000, 0.0000, 180.0002);
    CreateObject(980, 2901.158691, -1983.709717, 12.752712, 0.0000, 0.0000, 180.0002);
    CreateObject(3749, 2876.515869, -1963.072021, 15.751509, 0.0000, 0.0000, 270.0000);
    CreateObject(8947, 2892.178467, -1976.333252, 13.170715, 0.0000, 0.0000, 90.0000);
    CreateObject(3458, 2885.111572, -1976.000977, 8.564476, 0.0000, 0.0000, 0.0000);
    CreateObject(3458, 2889.938232, -1981.095703, 8.564464, 0.0000, 0.0000, 180.0000);
    CreateObject(3458, 2889.338623, -1970.896729, 8.564458, 0.0000, 0.0000, 180.0000);
    CreateObject(618, 2877.407959, -1981.018066, 10.420757, 0.0000, 0.0000, 123.7500);
    CreateObject(673, 2876.586670, -1976.343262, 10.143582, 0.0000, 0.0000, 0.0000);
    CreateObject(647, 2876.382324, -1975.003662, 11.574866, 0.0000, 0.0000, 0.0000);
    CreateObject(647, 2876.514160, -1978.677002, 10.690284, 0.0000, 0.0000, 0.0000);
    CreateObject(647, 2876.180420, -1980.810547, 11.940284, 0.0000, 0.0000, 0.0000);
    CreateObject(650, 2877.992920, -1978.152954, 10.332260, 0.0000, 0.0000, 0.0000);
    CreateObject(980, 2878.538330, -1977.988159, 12.897648, 0.0000, 0.0000, 90.0000);
    CreateObject(980, 2878.560059, -1939.210327, 12.891325, 0.0000, 0.0000, 90.0000);
    CreateObject(980, 2878.533203, -1950.730835, 12.891325, 0.0000, 0.0000, 90.0000);
    CreateObject(728, 2876.699219, -1949.006958, 11.116579, 0.0000, 0.0000, 22.5000);
    CreateObject(728, 2876.489990, -1942.236084, 10.937690, 0.0000, 0.0000, 225.0000);
    CreateObject(728, 2876.577148, -1936.765503, 11.116579, 0.0000, 0.0000, 202.5000);
    CreateObject(728, 2876.312256, -1978.616943, 9.657023, 0.0000, 0.0000, 33.7500);
    CreateObject(760, 2875.468994, -1950.373657, 10.483130, 0.0000, 0.0000, 0.0000);
    CreateObject(760, 2875.434082, -1946.465454, 10.473561, 0.0000, 0.0000, 0.0000);
    CreateObject(805, 2876.162354, -1940.203613, 11.257700, 0.0000, 0.0000, 0.0000);
    CreateObject(805, 2875.698486, -1950.043579, 11.267268, 0.0000, 0.0000, 0.0000);
    CreateObject(808, 2876.528320, -1945.195801, 11.919876, 0.0000, 0.0000, 0.0000);
    CreateObject(817, 2877.979980, -1945.490601, 10.560489, 0.0000, 0.0000, 0.0000);
    CreateObject(827, 2876.754150, -1936.256592, 13.908588, 0.0000, 0.0000, 0.0000);
    CreateObject(827, 2876.959473, -1941.763428, 13.908588, 0.0000, 0.0000, 0.0000);
    CreateObject(827, 2876.076416, -1950.484619, 13.908588, 0.0000, 0.0000, 168.7500);
    CreateObject(827, 2876.339600, -1976.158813, 15.872052, 0.0000, 0.0000, 168.7500);
    CreateObject(617, 2875.746094, -1949.391357, 10.111768, 0.0000, 0.0000, 0.0000);
    CreateObject(669, 2877.521240, -1936.971191, 10.138693, 0.0000, 0.0000, 0.0000);
    CreateObject(673, 2876.335693, -1943.460449, 10.168573, 0.0000, 0.0000, 270.0000);

    Einmal editiert, zuletzt von KingDani ()


  • public OnFilterScriptInit()
    {
    y_gate = CreateObject(980, 2878.484619, -1963.114624, 12.727262, 0.0000, 0.0000, 90.0000);


    CreateObject..
    CreateObject..
    CreateObject..
    CreateObject..
    CreateObject..


    print("\n--------------------------------------");
    print(" --------------------------------------");
    print("--------------------------------------\n");
    return 1;
    }