Objetos do Servidor -
iStronG - 10.07.2013
Olб os objetos do meu servidor nгo estб carregando e nгo sei o motivo ele estб em filterscripts da seguinte forma:
pawn Код:
#include <a_samp>
#include <xStreamer>
#define _xstreamer_included
public OnFilterScriptInit()
{
CreateStreamedObject(13296,2788.8999023,-1872.8000488,12.0000000,0.0000000,0.0000000,180.0000000); //object(ce_roadsidegas) (1)
print("Objetos Conectados . . . .");
return 1;
}
public OnFilterScriptExit()
{
print("Objetos Desconectados . . .");
return 1;
}
Coloquei sу um Objeto para demonstrar oque eu fiz ai seguinte eu fiz essa outra filterscript da seguinte forma:
pawn Код:
#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:R, 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:R, Float:Speed)
{
//printf("MovePlayerObject(%d,%d,%f,%f,%f,%f)",playerid, objectid, X, Y, Z, Speed);
return MovePlayerObject(playerid, objectid, X, Y, Z, R, 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;
}
Sу que na hora de ligar os Objetos nгo carrega, serб falta de plugin/? meu GM nгo usa nenhum.
Re: Objetos do Servidor -
darkxdll - 10.07.2013
O streamer precisa de plugin nй ? ou estou enganado ?
Re: Objetos do Servidor -
iStronG - 10.07.2013
Eu coloquei o plugin mais nгo funfou tambйm.
Re: Objetos do Servidor -
MyBlue - 10.07.2013
Mande o server_log e o server.cfg
Re: Objetos do Servidor -
iStronG - 10.07.2013
Server_LOG:
pawn Код:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team
[14:07:41]
[14:07:41] Server Plugins
[14:07:41] --------------
[14:07:41] Loading plugin: streamer
[14:07:41]
*** Streamer Plugin v2.6 by Incognito loaded ***
[14:07:41] Loaded.
[14:07:41] Loaded 1 plugins.
[14:07:42]
[14:07:42] Ban list
[14:07:42] --------
[14:07:42] Loaded: samp.ban
[14:07:42]
[14:07:42]
[14:07:42] Filterscripts
[14:07:42] ---------------
[14:07:42] Loading filterscript 'xStreamer1.amx'...
[14:07:42] *** Streamer Plugin: Obsolete or invalid native "xStreamer_Filterscript" found (script needs to be recompiled with the latest include file)
[14:07:42] Loading filterscript 'objetosbr.amx'...
[14:07:42] Objetos Conectados . . . .
[14:07:42] Loaded 2 filterscripts.
[14:07:42] IRC:0 Admin: MOTD: Password: NeedPass: 0 Lock: 0
[14:07:42] IRC:1 Admin: MOTD: Password: NeedPass: 0 Lock: 0
[14:07:42] IRC:2 Admin: MOTD: Password: NeedPass: 0 Lock: 0
[14:07:42] IRC:3 Admin: MOTD: Password: NeedPass: 0 Lock: 0
[14:07:42] IRC:4 Admin: MOTD: Password: NeedPass: 0 Lock: 0
[14:07:42] IRC:5 Admin: MOTD: Password: NeedPass: 0 Lock: 0
[14:07:42] IRC:6 Admin: MOTD: Password: NeedPass: 0 Lock: 0
[14:07:42] IRC:7 Admin: MOTD: Password: NeedPass: 0 Lock: 0
[14:07:42] IRC:8 Admin: MOTD: Password: NeedPass: 0 Lock: 0
[14:07:42] IRC:9 Admin: MOTD: Password: NeedPass: 0 Lock: 0
[14:07:42] Number of vehicle models: 137
[14:07:47] --- Server Shutting Down.
[14:07:47] Objetos Desconectados . . .
[14:07:47]
*** Streamer Plugin v2.6 by Incognito unloaded ***
server.cfg
pawn Код:
echo Executing Server Config...
lanmode 0
rcon_password 1
maxplayers 30
port 7777
hostname testing
gamemode0 News
filterscripts xStreamer1 objetosbr
announce 0
query 1
weburl teste
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
plugins streamer
Re: Objetos do Servidor -
Mateus_. - 10.07.2013
Apague isso do Fs:
native xStreamer_Filterscript();
e tente devolta.
Re: Objetos do Servidor -
MyBlue - 10.07.2013
Atualize a include
https://code.******.com/p/samp-strea...downloads/list
Re: Objetos do Servidor -
iStronG - 10.07.2013
Minha include jб e a mais atualizada.
@Mateus vou testar aqui.
Re: Objetos do Servidor -
Mateus_. - 10.07.2013
Vocк jб tento usar o plugin xStreamer?
Downloado do Plugin xStreamer:
Re: Objetos do Servidor -
iStronG - 10.07.2013
To ligado, seguinte funfou sу que os Objetos que fica dentro do GM agora parou de funfar :/