04.09.2011, 18:27
Good Day.
I'm using Incognito Streamer to spawn CP.
I did following:
But when I was spawned, i saw nothing. I thouth that it happens because of default distance is 100.0.
Here https://sampforum.blast.hk/showthread.php?tid=102865 Incognito writes:
- There is a global cell that contains all items with streaming distances greater than the current cell distance. This is to ensure that items which need to be visible from any point on the map (map icons, for example) are not bound to any cell that is too far away from the player. It is recommended, however, to limit the number of items in the global cell, because they do not benefit from spatial indexing. The more items in this cell, the less efficient the streaming process will become, so only put items here which need to be visible from very far away. (For instance, a checkpoint with a streaming distance of 1000.0 while the current cell distance is 450.0 will be put in the global cell.)
Well, I fixed my code:
Now i can see only one (nearest, as i think) checkpoint. Am i doing something wrong?
So, is it possible to show more then one checkpoint at the same time using this streamer? How can i do that? If it is no possible, please recommend which plugin can do it and can work togehter with incognito streamer?
I'm using Incognito Streamer to spawn CP.
I did following:
Код:
public OnPlayerSpawn(playerid) { CreateDynamicCP(-2112.7422,-753.4459,32.1719, 10); CreateDynamicCP(-2112.9177,-760.9539,32.1719, 10); return 1; }
Код:
native CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
- There is a global cell that contains all items with streaming distances greater than the current cell distance. This is to ensure that items which need to be visible from any point on the map (map icons, for example) are not bound to any cell that is too far away from the player. It is recommended, however, to limit the number of items in the global cell, because they do not benefit from spatial indexing. The more items in this cell, the less efficient the streaming process will become, so only put items here which need to be visible from very far away. (For instance, a checkpoint with a streaming distance of 1000.0 while the current cell distance is 450.0 will be put in the global cell.)
Well, I fixed my code:
Код:
public OnPlayerSpawn(playerid) { CreateDynamicCP(-2112.7422,-753.4459,32.1719, 10, -1, -1, -1, 10000.0); CreateDynamicCP(-2112.9177,-760.9539,32.1719, 10, -1, -1, -1, 10000.0); }
So, is it possible to show more then one checkpoint at the same time using this streamer? How can i do that? If it is no possible, please recommend which plugin can do it and can work togehter with incognito streamer?