SA-MP Forums Archive
Map Icon - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Map Icon (/showthread.php?tid=373010)



Map Icon - [rG]Cold - 28.08.2012

Why does ICON id 0 is streamed GLOBAL and not local?

Even tho i used after adding it
Код:
MAPICON_LOCAL
pawn Код:
SetPlayerMapIcon(playerid,9,2633.9548,1669.2686,10.6383,0,0,MAPICON_LOCAL); //Cluckin Pilgrim
Anyone has any ideea?/


Re: Map Icon - Omar Amir - 29.08.2012

i think that icon id 0 is only global streamed and it can't be local, i think so


Re: Map Icon - Devilxz97 - 29.08.2012

pawn Код:
SetPlayerMapIcon(playerid, 9, 2633.9548,1669.2686,10.6383, 14, 0, MAPICON_LOCAL);
try


Re: Map Icon - [rG]Cold - 29.08.2012

Quote:
Originally Posted by Omar Amir
Посмотреть сообщение
i think that icon id 0 is only global streamed and it can't be local, i think so
yea i also taught about that but just hoped its not only global :P but im not sure

Quote:
Originally Posted by Devilxz97
Посмотреть сообщение
pawn Код:
SetPlayerMapIcon(playerid, 9, 2633.9548,1669.2686,10.6383, 14, 0, MAPICON_LOCAL);
try
Well if you wanna know ,others icons work just fine :P


Anyone else?

Or please suggest me another way go create small dots instead of icons that can be streamed local.


Re: Map Icon - clarencecuzz - 29.08.2012

Try replacing it with an icon that you WANT to be global.
Could just be a simple bug, I can't think of anything that would cause this to take effect, but I'm sure that if you replaced it with a global icon, then you would be able to run the server as normal.


Re: Map Icon - [rG]Cold - 29.08.2012

Quote:
Originally Posted by clarencecuzz
Посмотреть сообщение
Try replacing it with an icon that you WANT to be global.
Could just be a simple bug, I can't think of anything that would cause this to take effect, but I'm sure that if you replaced it with a global icon, then you would be able to run the server as normal.
Nah,doesn't work.
I think that ID 0 icon can be only streamed GLOBAL :S


Re: Map Icon - clarencecuzz - 29.08.2012

Just had a small read of the function, it says that the icon is used in Single Player Missions and is dynamic, therefore it is most likely only available in global form, because it is also used as 'Player Markers' in some cases. The only thing I can suggest is, using if(IsPlayerInRangeOfPoint... and SetPlayerMapIcon, then else { DeletePlayerMapIcon etc. which would have to be checked on a timer regularly.

EDIT: If you're using it for a cluckin' bell, why don't you use Icon ID 14??

https://sampwiki.blast.hk/wiki/MapIcons


Re: Map Icon - [rG]Cold - 29.08.2012

Ok thanks for the heads up

And i am not using the regular icons from singeplayer because there are more than 1 like in the same area and the minimap looks messy!