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
#2

I think that indexing is faster than your code...
__
offtopic:
Yay got my brand new laptop!
Reply
#3

you like lag don't you?
Reply
#4

no...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)