05.02.2013, 21:46
(
Последний раз редактировалось Incognito; 06.02.2013 в 17:39.
)
Quote:
Incognito,
Can you help me: http://forum.sa-mp.com/showthread.ph...12#post2345012 this topic is related to Streamer Plugin... pls. |
pawn Код:
// Loop through all of the map icons
for (new i = 1, j = Streamer_GetUpperBound(STREAMER_TYPE_MAP_ICON); i < j; i++)
{
// Check if the map icon is not the one you want to be visible
if (i != iconid)
{
// Hide the map icon by removing the player from it
Streamer_RemoveArrayData(STREAMER_TYPE_MAP_ICON, i, E_STREAMER_PLAYER_ID, playerid);
}
// Some time later, in a separate loop:
// Make the map icon visible again by adding the player back
Streamer_AppendArrayData(STREAMER_TYPE_MAP_ICON, i, E_STREAMER_PLAYER_ID, playerid);
}
Quote:
That worked, my fault entirely. Thanks, that's race maps fixed.
What if the world is constantly changing? pawn Код:
pawn Код:
|
pawn Код:
new worlds[1];
worlds[0] = VIRTUAL_WORLD_TIMETRIAL + playerid);
CreateDynamicObjectEx(modelid, x, y, z, xr, y2, z3, distance, distance, worlds);
pawn Код:
new objectid = CreateDynamicObjectEx(modelid, x, y, z, xr, y2, z3, distance, distance);
Streamer_AppendArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID, VIRTUAL_WORLD_TIMETRIAL + playerid);