Beiträge von Joga

    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT


    #include <a_samp>



    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    //PDLS
    CreateObject(987, 1539.7998046875, -1617.5568847656, 15.924467086792, 0.000000, 0.000000, 0.000000); //
    CreateObject(987, 1539.9440917969, -1605.4123535156, 15.666770935059, 0.000000, 0.000000, 270.27026367188); //
    CreateObject(987, 1539.9617919922, -1602.4068603516, 15.666770935059, 0.000000, 0.000000, 270.267578125); //
    CreateObject(987, 1551.7258300781, -1602.5721435547, 15.911283493042, 0.000000, 0.000000, 180.53369140625); //
    CreateObject(987, 1563.5560302734, -1602.5854492188, 15.911283493042, 0.000000, 0.000000, 180.53283691406); //
    CreateObject(987, 1575.6387939453, -1602.2982177734, 15.911283493042, 0.000000, 0.000000, 180.53283691406); //
    CreateObject(987, 1587.5533447266, -1602.4544677734, 15.911283493042, 0.000000, 0.000000, 180.53283691406); //
    CreateObject(987, 1599.2673339844, -1602.5870361328, 15.813757896423, 0.000000, 0.000000, 180.53283691406); //
    CreateObject(987, 1608.1010742188, -1602.4298095703, 15.911283493042, 0.000000, 0.000000, 180.53283691406); //
    CreateObject(987, 1608.1065673828, -1614.3388671875, 15.921879768372, 0.000000, 0.000000, 90.802886962891); //
    CreateObject(987, 1608.1274414063, -1626.2708740234, 15.886253356934, 0.000000, 0.000000, 90.802001953125); //
    CreateObject(987, 1607.7841796875, -1637.9473876953, 15.921879768372, 0.000000, 0.000000, 88.817016601563); //
    CreateObject(987, 1595.841796875, -1637.9846191406, 15.921879768372, 0.000000, 0.000000, 1.0684814453125); //
    //objecte
    CreateObject(974, 2257.362305, -1739.269897, -79.939484, 91.1003, 0.0000, 0.8594);//admin base boden
    CreateObject(974, -92.274940, 6273.819336, 9.180277, 90.2409, 0.0000, 270.0000);//army interior boden
    CreateObject(4638, 1938.445313, 2142.947266, 11.516892, 0.0000, 0.0000, 90.0000);//lowriderbase torhaus
    CreateObject(987, 674.391418, -1213.871460, 14.833572, 0.0000, 0.0000, 213.7499);//carlos base zaun
    CreateObject(18553, -1112.288696, -1674.566772, 75.384117, 1.7189, 269.7592, 90.0000);//hitman tür
    CreateObject(1508, 1581.096802, -1678.075073, 6.453622, 0.0000, 0.0000, 0.0000);//Knast Türe in PD garage


    //BOD base
    CreateObject(974, 1045.400635, -285.834534, 73.595749, 0.0000, 0.0000, 0.0000);
    CreateObject(974, 1038.274170, -290.939087, 72.495804, 0.0000, 0.0000, 90.0000);


    //Zug Interior
    CreateObject(3983, 3109.629639, -2019.341675, 4.505384, 0.0000, 0.0000, 78.7500);
    CreateObject(14405, 3112.863770, -2023.186279, 3.242663, 0.0000, 0.0000, 90.0000);
    CreateObject(14405, 3111.047607, -2023.115479, 3.253142, 0.0000, 0.0000, 90.0000);
    CreateObject(14405, 3108.852295, -2023.156128, 3.260407, 0.0000, 0.0000, 90.0000);
    CreateObject(14405, 3107.039551, -2023.224609, 3.272244, 0.0000, 0.0000, 90.0000);
    CreateObject(1562, 3101.630127, -2026.624268, 3.356740, 0.0000, 0.0000, 270.0000);
    CreateObject(1562, 3103.455566, -2026.557617, 3.339848, 0.0000, 0.0000, 270.0000);
    CreateObject(1562, 3105.686768, -2026.437988, 3.328056, 0.0000, 0.0000, 270.0000);
    CreateObject(1562, 3107.368896, -2026.365967, 3.318470, 0.0000, 0.0000, 270.0000);
    CreateObject(1502, 3107.643311, -2024.426270, 2.580908, 0.0000, 0.0000, 270.0001);
    CreateObject(12842, 3111.558105, -2025.020874, 3.025931, 0.0000, 0.0000, 270.0000);
    CreateObject(1502, 3115.119385, -2023.954712, 2.539207, 0.0000, 0.0000, 270.0001);
    CreateObject(16151, 3119.345947, -2027.347656, 2.955072, 0.0000, 0.0000, 270.0000);
    CreateObject(2746, 3121.189941, -2022.397949, 3.079691, 0.0000, 0.0000, 270.0000);
    CreateObject(2746, 3117.794434, -2022.378296, 3.103113, 0.0000, 0.0000, 90.0000);
    CreateObject(2747, 3119.400635, -2022.009888, 2.903426, 0.0000, 0.0000, 90.0000);
    CreateObject(2748, 3115.296387, -2022.408936, 3.118325, 0.0000, 0.0000, 90.0000);
    CreateObject(2747, 3116.264160, -2022.014282, 2.922068, 0.0000, 0.0000, 90.0000);
    CreateObject(2748, 3124.007324, -2022.301636, 3.079691, 0.0000, 0.0000, 270.0000);
    CreateObject(2747, 3122.741943, -2022.037476, 2.894500, 0.0000, 0.0000, 270.0000);
    CreateObject(18095, 3106.871582, -2020.862793, 5.084706, 0.0000, 0.0000, 180.0000);
    CreateObject(18095, 3114.076904, -2028.809570, 5.385204, 0.0000, 0.0000, 0.0000);
    CreateObject(16773, 3106.661621, -2020.937012, 3.526744, 0.0000, 0.0000, 0.0000);
    CreateObject(16775, 3121.161133, -2020.929199, 3.531167, 0.0000, 0.0000, 180.0000);
    CreateObject(16775, 3128.414551, -2028.389771, 3.536241, 0.0000, 0.0000, 90.0000);
    CreateObject(16775, 3121.247314, -2028.720947, 3.525239, 0.0000, 0.0000, 0.0000);
    CreateObject(16775, 3106.585449, -2028.734741, 3.534204, 0.0000, 0.0000, 0.0000);
    CreateObject(16775, 3115.140625, -2032.819702, 2.384316, 0.0000, 0.0000, 90.0000);
    CreateObject(16775, 3115.243408, -2016.681030, 2.281161, 0.0000, 0.0000, 90.0000);
    CreateObject(16775, 3115.292969, -2025.480835, 9.059042, 0.0000, 0.0000, 90.0000);
    CreateObject(16775, 3107.885986, -2017.183350, 1.919064, 0.0000, 0.0000, 90.0000);
    CreateObject(16775, 3107.754150, -2033.243408, 2.310782, 0.0000, 0.0000, 90.0000);
    CreateObject(16775, 3107.734863, -2024.729492, 9.050252, 0.0000, 0.0000, 90.0000);
    CreateObject(16775, 3099.229736, -2024.518311, 6.646741, 0.0000, 0.0000, 270.0000);
    CreateObject(2775, 3099.329590, -2026.125977, 6.229951, 0.0000, 0.0000, 90.0000);
    CreateObject(2775, 3099.329590, -2022.894653, 6.226449, 0.0000, 0.0000, 90.0000);
    CreateObject(16775, 3103.003418, -2025.929565, 7.473158, 268.8997, 0.0000, 270.0000);
    CreateObject(16775, 3110.805420, -2025.866699, 7.332901, 268.8997, 0.0000, 270.0000);
    CreateObject(16775, 3118.661865, -2025.807007, 7.259706, 268.8997, 0.0000, 270.0000);
    CreateObject(16775, 3126.406250, -2025.770874, 7.285888, 270.6186, 0.0000, 90.0000);
    CreateObject(630, 3099.999756, -2025.256348, 3.676764, 0.0000, 0.0000, 0.0000);
    CreateObject(630, 3099.994141, -2028.194092, 3.724263, 0.0000, 0.0000, 0.0000);
    CreateObject(630, 3099.739746, -2021.442871, 3.624852, 0.0000, 0.0000, 0.0000);
    CreateObject(630, 3103.612305, -2028.318115, 3.694804, 0.0000, 0.0000, 0.0000);
    CreateObject(630, 3107.269775, -2028.212524, 3.671710, 0.0000, 0.0000, 0.0000);
    CreateObject(630, 3104.694092, -2021.359863, 3.594378, 0.0000, 0.0000, 0.0000);
    CreateObject(630, 3107.724854, -2021.406860, 3.577057, 0.0000, 0.0000, 0.0000);
    CreateObject(1723, 3126.884521, -2024.029175, 2.479994, 0.0000, 0.0000, 270.0000);
    //objektende


    //Bonzen Security
    CreateObject(4638, 2107.902832, 1869.139038, 11.522973, 0.0000, 0.0000, 0.0000);
    CreateObject(4638, 2104.829834, 1857.525024, 11.376740, 0.0000, 0.0000, 168.7499);
    CreateObject(4640, 2107.885254, 1974.948486, 11.519843, 0.0000, 0.0000, 0.0000);
    CreateObject(4640, 2108.151855, 1963.467407, 11.402783, 0.0000, 0.0000, 180.0000);
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


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


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    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("/mycommand", cmdtext, true, 10) == 0)
    {
    // Do something here
    return 1;
    }
    return 0;
    }


    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;
    }

    [21:21:01]Starting streamer...
    [21:21:01]Successfully started!
    [21:21:01]Starting streamer...
    [21:21:01]Successfully started!
    [21:21:13]Starting streamer...
    [21:21:13]Successfully started!
    [21:12:01]Starting streamer...
    [21:12:01]Successfully started!
    [21:12:02]Starting streamer...
    [21:12:02]Successfully started!
    [21:14:27]Starting streamer...
    [21:14:27]Successfully started!
    [21:15:00]Starting streamer...
    [21:15:00]Successfully started!
    [21:15:01]Starting streamer...
    [21:15:01]Successfully started!
    [21:15:14]Starting streamer...
    [21:15:14]Successfully started!
    [21:15:26]Starting streamer...
    [21:15:26]Successfully started!
    [15:14:32]Starting streamer...
    [15:14:32]Successfully started!
    [15:24:11]Starting streamer...
    [15:24:12]Successfully started!
    [15:24:13]Gamemode Connected!
    [15:36:14]Starting streamer...
    [15:36:14]Successfully started!
    [15:36:14]Gamemode Connected!
    [17:46:01]Starting streamer...
    [17:46:01]Successfully started!
    [17:46:01]Filterscript Connected!
    [17:48:04]Starting streamer...
    [17:48:04]Successfully started!
    [17:48:04]Filterscript Connected!
    [17:48:04]Gamemode Connected!
    [17:52:32]Starting streamer...
    [17:52:32]Successfully started!
    [17:52:32]Filterscript Connected!
    [17:52:32]Gamemode Connected!
    [17:58:04]Starting streamer...
    [17:58:04]Successfully started!
    [17:58:04]Filterscript Connected!
    [17:58:29]Starting streamer...
    [17:58:29]Successfully started!
    [17:58:29]Filterscript Connected!
    [20:06:30]Filterscript Connected!
    [20:06:30]Starting streamer...
    [20:06:30]Successfully started!
    [20:06:30]Filterscript Connected!



    so das alles

    Da steht sowas drin [21:21:01]Starting streamer...
    [21:21:01]Successfully started!
    [21:21:01]Starting streamer...
    [21:21:01]Successfully started!
    [21:21:13]Starting streamer...
    [21:21:13]Successfully started!
    [21:12:01]Starting streamer...
    [21:12:01]Successfully started!
    [20:06:30]Filterscript Connected!

    #include <a_samp>
    /****************************************


    ####### ######## ########
    # # # # # #
    # # # # # #
    # # # # # # #####
    # # ######## ######## #
    # # # # # #####
    # # # # # #
    ####### # # # #####


    >> OBJECTSTREAMER <<
    >> VERSION 2.6.0 <<
    >> STREAM ENGINE FS <<


    ****************************************/
    #define MAX_STREAMOBJ 100000 //Maximum Objects (Total)
    #define WARNING_COLOR 0xBBBBBBFF //Color Code
    #define LABEL_COLOR 0xBBBBBBFF //Color Code
    #define MAX_SLOTS 500 //Your Player Slots
    #define DIALOG_ID 8072 //Should not be used in other Scripts
    #define DIALOG_ID2 8073 //Should not be used in other Scripts
    #define DIALOG_ID3 8074 //Should not be used in other Scripts
    #define DIALOG_ID4 8075 //Should not be used in other Scripts
    #define DIALOG_ID5 8076 //Should not be used in other Scripts
    #define DIALOG_ID6 8077 //Should not be used in other Scripts
    #define DIALOG_ID7 8078 //Should not be used in other Scripts
    #define DIALOG_ID8 8079 //Should not be used in other Scripts
    #define DIALOG_ID9 8080 //Should not be used in other Scripts
    #define DIALOG_ID10 8081 //Should not be used in other Scripts
    #define CONFIG_FILE "opa_objcets.cfg" //Your configuration file
    #define LOG_FILE "opa_objects.log" //Your log file
    #define SAVEOBJ_FILE "savedobjects.txt"//Your file for /saveobj
    #define LOG_ACTIVE 1 //logfile On(1)/Off(0)
    #define SEND_WARN 1 //Send Warn-Message to Player?
    #define ANTIFAIL 1 //Enable Anti-Config-Fail?
    #define CALLBACK 0 //Enable "OnObjectStreamIn"?
    /***************************************/
    forward test();
    forward remoteObject(xx1,Float:xx2,Float:xx3,Float:xx4,Float:xx5,Float:xx6,Float:xx7);
    forward remoteVirtual(xx1,xx2);
    forward remoteMove(xx1,Float:xx2,Float:xx3,Float:xx4,Float:xx5);
    forward remoteSetPos(xx1,Float:xx2,Float:xx3,Float:xx4);
    forward remoteSetRot(xx1,Float:xx2,Float:xx3,Float:xx4);
    forward remoteDestroy(xx1);
    forward remoteStop(xx1);
    forward remoteConnectGM();
    forward remoteConnectFS();
    forward remoteMakeWait(playerid);
    forward remoteObjectEx();
    forward remoteDestroyEx();
    forward remoteIsStreamed(xx1,xx2);
    new obj,DRAW_DISTANCE=125,MAXPLAYEROBJ=254,kill,timeT=948;
    enum oen{mod,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz,vw};
    new p[MAX_SLOTS][MAX_STREAMOBJ],o[MAX_STREAMOBJ][oen],bool:invalid[MAX_STREAMOBJ];
    new bool:warn[MAX_SLOTS],bool:wait[MAX_SLOTS],crash[MAX_SLOTS],allwarns,admin=-1;
    new PlayerText3D:noob[MAX_STREAMOBJ],edit,step=5,exobjects;
    #define DINI_MAX_STRING 255
    #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
    public OnFilterScriptInit()
    {
    print("\n...Opas Objectstremer loading [1/2]...\n");
    #if LOG_ACTIVE==1
    if(!fexist(LOG_FILE))
    {
    new File:ffhandle=fopen(LOG_FILE,io_write);
    fclose(ffhandle);
    }
    #endif
    log("Starting streamer...");
    for(new n;n<MAX_OBJECTS;n++)o[n][vw]=-1;
    if(fexist(CONFIG_FILE))
    {
    new xz=strval(dini_Get(CONFIG_FILE,"drawdistance"));
    #if ANTIFAIL==1
    if(xz<5||xz>400)
    {
    log("[Antifail] drawdistance should be 5-400");
    xz=125;
    }
    #endif
    DRAW_DISTANCE=xz;
    xz=strval(dini_Get(CONFIG_FILE,"maxplayerobj"));
    #if ANTIFAIL==1
    if(xz<1||xz>254)
    {
    log("[Antifail] maxplayerobj should be 1-254");
    xz=254;
    }
    #endif


    usw.


    MFG Joga

    Hi Leute,
    Ich habe folgendes Problem: Ich habe alles mögliche versucht mit dem Streamer jedoch wird bei mir nichts gestreamt. Ich habe Objecte gemappt, habe dann ein neues Filterscript aufgemacht.
    Danach habe ich die #include <opa_objects> oben im Filterscript eingefügt und habe die Objecte unter public onfilterscriptint eingefügt. Danach habe ich in der server.cfg den Namen bei Filterscript eingefügt. Danach habe ich den Server gestartet und es waren keine Objecte zu sehen. Was habe ich Falsch gemacht ???

    Hi leute
    ich hoffe ihr könnt mir helfen einen hinweis zu erstellen. Ich hab es so versucht:


    forward hinweis1();


    SetTimer("hinweis1",1000000,false); // Hinweis



    public hinweis1()
    {
    SendClientMessageToAll(0xFFFFFFAA, "Erster Hinweis");


    Ich kriege aber immer einen error:
    C:\Users\script\gamemodes\TGS3.pwn(226) : error 021: symbol already defined: "SetTimer"

    ja ok
    aber ne frage kannst du mir helfen ich hab tore gescriptet die alle aufmachen können wie kriege ich hin das nur die rihtige fraktion die aufkriegt ?


    #include <a_samp>


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



    public OnFilterScriptInit()
    {
    y_gate = CreateObject(980, 1023.3919677734, -373.36752319336, 75.15071105957, 0.000000, 0.000000, 0.000000); //



    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/yo", true) == 0){
    MoveObject(y_gate,1035.130859375, -372.63235473633,75.15071105957,4 );
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
    return 1;
    }
    if (strcmp(cmdtext, "/yc", true) == 0){
    MoveObject(y_gate,1023.3919677734, -373.36752319336,75.15071105957,4);
    SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
    return 1;
    }
    return 0;
    }