object streamer idea...
#1

ok guys... i got an idea.. and i think it might b a great idea... heres what i was thinking. instead of creating streamed objects, why dont we just create as many objects as we want and stream them all at once? Heres a demo of tis idea:

pawn Код:
#include <a_samp>
forward gg();

main()
{
    print("streamer loaded!");
}

public OnFilterScriptInit()
{
    SetTimer("gg", 1000, true);
    return 1;
}

public gg()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            for(new a=0l a<MAX_OBJECTS; a++
            {
                new Float:x, Float:y, Float:z;
                GetObjectPos(a, x, y, z);
                if(IsPlayerInRangeOFPoint(i, 200, x, y, z);
                {
                    //code that creates the object... somehow... i need a GetObjectModelId(a, id); function
                }
                else
                {
                    DestroyObject(a);
                }
            }
        }
    }
}
lemme no if tis is possible..
Reply


Messages In This Thread
object streamer idea... [unique] - by sciman001 - 08.04.2011, 22:47
Re: object streamer idea... - by Gamer_Z - 09.04.2011, 02:47
Re: object streamer idea... - by Donya - 09.04.2011, 02:55
Re: object streamer idea... - by sciman001 - 09.04.2011, 04:19

Forum Jump:


Users browsing this thread: 1 Guest(s)