The problem of the disappearance of objects
#1

As the title says .... I object disappears I make a map with the MTA to lv compile such a script goes in one place ....

And then if there are an MTA map and put it on aa server objects appear and disappear in those of aa lv



can someone help me
Reply
#2

Maybe you should use a streamer, how many objects are you using?
Reply
#3

as an example 100 to 120 items a
Reply
#4

the server from someone and I have 2 little scripts and dubious xStreamer Xstreamo

it be from one of them


pawn Код:
the lines are xstreamer


#if defined _xstreamer_included
    #endinput
#endif
#define _xstreamer_included
#pragma library xstreamer

#include <a_samp>

//------------------------------------------------------------------------------

#if !defined OBJECT_TIMER
#define OBJECT_TIMER 350
#endif

//------------------------------------------------------------------------------

native ConnectPlayer(playerid);
native DisconnectPlayer(playerid);
native StreamObjects(playerid,Float:x,Float:y,Float:z,virtualworld,interior);
native UpdateMovingObjects();

native xStreamer_Filterscript();

//------------------------------------------------------------------------------

forward sampCreatePlayerObject(playerid,modelid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz);
forward sampDestroyPlayerObject(playerid,objectid);
forward sampMovePlayerObject(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed);
forward sampStopPlayerObject(playerid,objectid);

forward xStreamer_Run();

//------------------------------------------------------------------------------

public sampCreatePlayerObject(playerid,modelid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz)
{
    //printf("CreatePlayerObject(%d,%d,%f,%f,%f,%f,%f,%f)",playerid,modelid,x,y,z,rx,ry,rz);
    return CreatePlayerObject(playerid,modelid,x,y,z,rx,ry,rz);
}

public sampDestroyPlayerObject(playerid,objectid)
{
    //printf("DestroyPlayerObject(%d,%d)",playerid,objectid);
    return DestroyPlayerObject(playerid,objectid);
}

public sampMovePlayerObject(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed)
{
    //printf("MovePlayerObject(%d,%d,%f,%f,%f,%f)",playerid, objectid, X, Y, Z, Speed);
    return MovePlayerObject(playerid, objectid, X, Y, Z, Speed);
}

public sampStopPlayerObject(playerid,objectid)
{
    printf("StopPlayerObject(%d,%d)",playerid,objectid);
    return StopPlayerObject(playerid,objectid);
}

public xStreamer_Run()
{
    UpdateMovingObjects();
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new
                Float:x,
                Float:y,
                Float:z;
            GetPlayerPos(i,x,y,z);
            StreamObjects(i,x,y,z,GetPlayerVirtualWorld(i),GetPlayerInterior(i));
        }
    }
    return 1;
}

public OnFilterScriptInit()
{
    SetTimer("xStreamer_Run",OBJECT_TIMER,1);
    xStreamer_Filterscript();
    return 1;
}

public OnPlayerConnect(playerid)
{
    ConnectPlayer(playerid);
    return 1;
}

public OnPlayerDisconnect(playerid,reason)
{
    DisconnectPlayer(playerid);
    return 1;
}



and in xstreamo are many such objects, but much more

pawn Код:
//FreeWay
CreateStreamedObject(8253, -2847.015869, 2193.069580, 804.448975, 0.0, 0.0, 269.7591);
CreateStreamedObject(17310, -2847.309570, 2174.884766, 796.074829, 18.9076, 180.3777, 0.0);
CreateStreamedObject(17310, -2847.338623, 2165.460449, 790.844910, 37.8152, 180.3777, 0.0);
CreateStreamedObject(17310, -2847.269775, 2156.182861, 783.650513, 37.8152, 180.3777, 0.0);
CreateStreamedObject(17310, -2847.199951, 2146.877197, 776.427429, 37.8152, 180.3777, 0.0);
CreateStreamedObject(17310, -2847.120361, 2137.640625, 769.261475, 37.8152, 180.3777, 0.0);
CreateStreamedObject(17310, -2847.034424, 2128.343018, 762.042847, 37.8152, 180.3777, 0.0);
CreateStreamedObject(17310, -2846.881348, 2109.772461, 747.613342, 37.8152, 180.3777, 0.0);
CreateStreamedObject(17310, -2836.666016, 2107.789307, 747.995422, 0.0, 163.1889, 89.9544);
CreateStreamedObject(17310, -2846.967285, 2119.035889, 754.808838, 37.8152, 180.3777, 0.0);
CreateStreamedObject(17310, -2848.449951, 2107.727783, 747.971008, 0.0, 163.1889, 89.9544);
CreateStreamedObject(17310, -2856.913086, 2107.683350, 747.953613, 0.0, 163.1889, 89.9544);
Reply
#5

Use the pawn tags thank you. [ p a w n ] CODE HERE [ / p a w n ]
Reply
#6

Well I did not know they are new
Reply
#7

Why Dont You uses Fallout's One? it Supports up to 10000 objects.
Reply
#8

fallout how to use?
Reply
#9

I reccomend you to use This streamer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)