[Ajuda] Objetos do Servidor
#1

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.
Reply


Messages In This Thread
Objetos do Servidor - by iStronG - 10.07.2013, 16:19
Re: Objetos do Servidor - by darkxdll - 10.07.2013, 16:25
Re: Objetos do Servidor - by iStronG - 10.07.2013, 16:26
Re: Objetos do Servidor - by MyBlue - 10.07.2013, 16:56
Re: Objetos do Servidor - by iStronG - 10.07.2013, 17:03
Re: Objetos do Servidor - by Mateus_. - 10.07.2013, 17:07
Re: Objetos do Servidor - by MyBlue - 10.07.2013, 17:07
Re: Objetos do Servidor - by iStronG - 10.07.2013, 17:23
Re: Objetos do Servidor - by Mateus_. - 10.07.2013, 17:30
Re: Objetos do Servidor - by iStronG - 10.07.2013, 17:38

Forum Jump:


Users browsing this thread: 4 Guest(s)