object streamer einbaun

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 Community,
    ich hab folgendes Problem :
    Ich hab mitlerweile jeden object streamer einmal schon versucht einzubaun aber nichts funktioniert
    deswegen kann mir einer in meinem folgenden script einen einbaun (am besten im filterscript)
    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT
    #include <a_samp>
    #include <YSI>
    #if defined FILTERSCRIPT
    #pragma tabsize 0
    #define objecte 5000


    public OnGameModeInit()
    {
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    // Don't use these lines if it's a filterscript
    SetGameModeText("Stunt/Freeroom");
    AddPlayerClass(007, 1978.1614990234, -2183.1389160156, 13.546875, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(31, 1978.1614990234, -2183.1389160156, 13.546875, 269.1425, 3, 20, 15, 56, 10, 40);
    AddPlayerClass(2, 1978.1614990234, -2183.1389160156, 13.546875, 269.1425, 3, 20, 15, 56, 10, 40);
    // ich hab nur für cars/object ein beispiel sonst were der theard zu lang
    AddStaticVehicle(530, 1922.4575195313, -2802.2934570313, 187.74038696289, 0.000000, -1, -1); //14
    CreateGameObject(8171, 1393.7119140625, 1458.3017578125, 9.8203125, 0.000000, 357.51123046875, 0.000000); //


    return 1;
    }


    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("-------------This Script----------------");
    print("------------------By--------------------");
    print("-----------------Dennis-----------------");
    }


    #endif


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1978.1614990234, -2183.1389160156, 13.546875);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1978.1614990234, -2183.1389160156, 13.546875);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    GameStreamer_Disconnect(playerid);
    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[])
    {
    if (strcmp("/sjump", cmdtext, true) == 0)
    {
    SetPlayerPos(playerid, 1916.9610595703,-2791.0988769531,186.82322692871);
    SendClientMessage(playerid, 0xFFFFFFFF, "Herzlich willkommen in /sjump !");
    return 1;
    }


    if (strcmp("/kart1", cmdtext, true) == 0)
    {
    SetPlayerPos(playerid, -2087.4543457031,-108.06102752686,35.32031251);
    SendClientMessage(playerid, 0xFFFFFFFF, "Herzlich willkommen in /kart1 !");
    return 1;
    }


    if (strcmp("/halfpipe", cmdtext, true) == 0)
    {
    SetPlayerPos(playerid, 1389.5582275391,1534.3460693359,10.8125);
    SendClientMessage(playerid, 0xFFFFFFFF, "Herzlich willkommen in /halfpipe !");
    return 1;
    }


    if (strcmp("/kart2", cmdtext, true) == 0)
    {
    SetPlayerPos(playerid, -2092.1547851563,-114.74230194092,35.3203125);
    SendClientMessage(playerid, 0xFFFFFFFF, "Herzlich willkommen in /kart2 !");
    return 1;
    }


    if (strcmp("/kartheli", cmdtext, true) == 0)
    {
    SetPlayerPos(playerid, -2070.927734375,-145.52563476563,35.3203125);
    SendClientMessage(playerid, 0xFFFFFFFF, "Herzlich willkommen in /kartheli !");
    return 1;
    }


    if (strcmp("/chilliad", cmdtext, true) == 0)
    {
    SetPlayerPos(playerid, -2287.5895996094,-1661,482.61660766602);
    SendClientMessage(playerid, 0xFF0000FF, "Herzlich willkommen in /chilliad!");
    return 1;
    }


    if (strcmp("/chinajump", cmdtext, true) == 0)
    {
    SetPlayerPos(playerid, -2061,-698,456);
    SendClientMessage(playerid, 0xFFFF00FF, "Herzlich willkommen in China Jump Ramp! ");
    return 1;
    }


    if (strcmp("/sf", cmdtext, true) == 0)
    {
    SetPlayerPos(playerid, -1594.5346679688,-208.94424438477,14.1484375);
    SendClientMessage(playerid, 0xFFFF00FF, "Herzlich willkommen in San Francisco!");
    return 1;
    }


    if (strcmp("/bigjump", cmdtext, true) == 0)
    {
    SetPlayerPos(playerid, 2003.1297607422,-2767.3640136719,762.60021972656);
    SendClientMessage(playerid, 0xFFFF00FF, "Herzlich willkommen in /bigjump ");
    return 1;
    }


    if (strcmp("/Info", cmdtext, true) == 0)
    {
    SendClientMessage(playerid, 0xFF00FFFF, "Helps,Mapper,Serverbesitzer,Scripter,Email:");
    SendClientMessage(playerid, 0xFF00FFFF, "Help:");
    SendClientMessage(playerid, 0xFF00FFFF, "Mapper:Dennis");
    SendClientMessage(playerid, 0xFF00FFFF, "Scipter:Dennis");
    SendClientMessage(playerid, 0xFF00FFFF, "Serverbesitzer:Dennis");
    SendClientMessage(playerid, 0xFF00FFFF, "Email:der_king111@web.de");
    return 1;
    }


    if (strcmp("/cmds", cmdtext, true) == 0)
    {
    SendClientMessage(playerid, 0xFF00FFFF, "Folgende Commands existieren schon:");
    SendClientMessage(playerid, 0xFF00FFFF, "/sjump , /chilliad , /chinajump , /sf , /bigjump");
    SendClientMessage(playerid, 0xFFFFFF, "/kart1 , /kart2 , /kartheli , /halfpipe");
    SendClientMessage(playerid, 0xFF0000FF, "/info");
    return 1;
    }
    return 1;
    }


    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;
    }
    \\ weiß keiner was dazu?
    MFG Dennis

    Einmal editiert, zuletzt von drugstar ()