09.02.2014, 00:58
The array you pass should only contain the player IDs which will be able to see the map icon. You shouldn't put INVALID_PLAYER_ID in there. Specifying an out-of-bounds number will just set every bit in the bit array. The reason for this is that it allows you to pass { -1 } instead of an array 500 or 1000 cells large.
For example, if you wanted to make the map icon visible for player IDs 0 and 1 only, then you'd just do this:
For example, if you wanted to make the map icon visible for player IDs 0 and 1 only, then you'd just do this:
pawn Код:
new players[] = { 0, 1 };
CreateDynamicMapIconEx(x, y, z, type, color, style, .players = players);