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