08.04.2011, 22:47
(
Последний раз редактировалось sciman001; 08.04.2011 в 23:10.
Причина: please reply!
)
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:
lemme no if tis is possible..
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);
}
}
}
}
}