public OnPlayerSpawn(playerid) { new text[20]; format(text, sizeof(text), "ID: %d - Created? %d", 1, SetPlayerMapIcon(playerid, 1, 1124.27, -2037.1, 69.885, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 2, SetPlayerMapIcon(playerid, 2, 652.161, -1619.98, 15, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 3, SetPlayerMapIcon(playerid, 3, 1298.48, -800.456, 84.141, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 4, SetPlayerMapIcon(playerid, 4, 776.747, -1038.25, 24.262, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 5, SetPlayerMapIcon(playerid, 5, 1279.71, -1509.57, 10.047, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 6, SetPlayerMapIcon(playerid, 6, 2793.89, -1087.3, 30.719, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 7, SetPlayerMapIcon(playerid, 7, 2440, -1338.87, 24.102, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 8, SetPlayerMapIcon(playerid, 8, 2072.57, -1558.86, 13.41, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); format(text, sizeof(text), "ID: %d - Created? %d", 9, SetPlayerMapIcon(playerid, 9, 2296.73, -1882.92, 14.234, 31, 0, 2)); SendClientMessage(playerid, 0xFFFFFFFF, text); return 1; }
Read this: https://sampwiki.blast.hk/wiki/MapIconStyle
|
new text[20]; format(text, sizeof(text), "ID: %d - Created? %d", 1, SetPlayerMapIcon(playerid, 1, 1124.27, -2037.1, 69.885, 31, 0, 1)); SendClientMessage(playerid, 0xFFFFFFFF, text);
SetPlayerMapIcon(playerid, iconid, Float, Float:y, Float:z, markertype, color, style); |
Try
Код:
new text[20]; format(text, sizeof(text), "ID: %d - Created? %d", 1, SetPlayerMapIcon(playerid, 1, 1124.27, -2037.1, 69.885, 31, 0, 1)); SendClientMessage(playerid, 0xFFFFFFFF, text); In your code, you used 2 in 'style' argument, which means the map icon will displays in the player's local area. (with checkpoint in it) https://sampwiki.blast.hk/wiki/MapIconStyle |
I don't understand the problem... are you saying you want them to always show on your map?
If so, then you're using the wrong map icon style... https://sampwiki.blast.hk/wiki/MapIconStyle 0 MAPICON_LOCAL No Close proximity only 1 MAPICON_GLOBAL No Show on radar edge as long as in range Not sure if you want a checkpoint in it or not, but local map icons will only show in close proximity, and global map icons will always be displayed when you're within range. Remember, you can only have up to 100 map icons at a time.. |