Map icons (Streamer include)
#1

I use Streamer Plugin and I want to appear only one type of MAP-Icon.
I know that if set Streamer_VisibleItems(STREAMER_TYPE_MAP_ICON, 1); but this config is for all map icons, and dont is this effect that I like. See the example for best understanding.
Example:
I have two houses map-icons and two organizations map-icons where this houses/organizations is near the player, and I want that appear one map-icon of house and one map-icon of organization.

See this:

Код:
new MapIcons[5];

MapIcons[0] = CreateDynamicMapIcon(x, y, z, 31, -1, -1, -1, -1, 30.0);
MapIcons[1] = CreateDynamicMapIcon(x+1, y+1, z+1, 31, -1, -1, -1, -1, 30.0);
MapIcons[2] = CreateDynamicMapIcon(x+2, y+2, z+2, 31, -1, -1, -1, -1, 30.0);
MapIcons[3] = CreateDynamicMapIcon(x+3, y+3, z+3, 31, -1, -1, -1, -1, 30.0);
MapIcons[4] = CreateDynamicMapIcon(x+4, y+4, z+4, 31, -1, -1, -1, -1, 30.0);
I want the effect that shows only one map icon of "MapIcons[]", the closest. And others map-icons appear normally.
Would be an effect almost how "Streamer_VisibleItems(MapIcons, 1);".

Some one can help me ?
thanks
Reply
#2

anyone can help me ?
Reply
#3

Change the distance between them and read more about streamer
i hope that i helped you.
Reply
#4

The distance that you said is of coordinates of mapicons ?
Reply
#5

I think he might have been referring to that, but nonetheless, he SHOULD be talking about this:
Код:
native CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Notice how there is a 'streamdistance' parameter at the end of the CreateDynamicMapIcon function (It's highlighted in bold). Just change this to the distance you want it to show for the player.

Example:
pawn Код:
CreateDynamicMapIcon(X, Y, Z, type, color, -1, -1, -1, 10.0);
With a stream distance of 10.0, you are more likely to only have 1 icon appear at a time, unless both ranges are set to 10.0, and you are in range of them both. Thus you should try reducing the streamdistance once again.
Reply
#6

No man you dont understand...
See my example... I want to show the mapicons independent of stream distance, and only one mapicons ID per time.
Reply
#7

Example:
Have 2 mapicon ID 32 (red house) and 2 mapicon id 43. Suppose that this mapicons is near of the player. I want to appear to the player 2 mapicons, 1 id 32 and 1 id 43...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)