SetPlayerMapIcon type 1 ( white square )
#1

I've tried to find a thread pertaining to this, without success. So here is mine.

I have been experimenting with the type 1 map icon, trying to set its color. It is my understanding that the map icons use a different color table, with integer colors from 0-499. I tried to create colored type 1 map icons using SetPlayerMapIcon, and also using Incognito's streamer CreateDynamicMapIcon.
The icons appear, but are always white.

Код:
SetPlayerMapIcon(playerid,iconID,px,py,pz,1,color); // where color is 0-499

and..

CreateDynamicMapIcon(px,py,pz,1,color,-1,-1,playerid,100);
I was using a filterscript.

I'm pretty sure I was using the functions correctly on both occasions, so I would like to know if anyone else has managed to create colored type 1 map icons. A little birdie told me it is not working.
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
I will admit I have forgotten, but I think map icons use normal colors like 0xFF0000AA for red etc.
Yes, they are.

https://sampwiki.blast.hk/wiki/Hex_colors
Reply
#3

<Rachael> is the 'color' in SetPlayerMapIcon a samp hex color?
<+SA-MP> Wiki Page: https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
<Rachael> it doesn't say, nvm I will work it out
<@Kalcor> it's not a hex colour
<@Kalcor> it's kinda confusing though
<@Kalcor> it uses GTA's colour table
<@Kalcor> and GTA's colour table is changed by SA-MP to the player colours
<@Kalcor> that's 500 random colours
<Rachael> so will this be a good place to get the color ID? https://sampwiki.blast.hk/wiki/Color_ID
<@Kalcor> no it won't
<@Kalcor> that's the vehicle colour table
<@Kalcor> basically every player in SA-MP has a random colour.. unless the script changes it with SetPlayerColor
<@Kalcor> that means the colour IDs there are the player's colour ID
<@Kalcor> from 0-499

I tried hex colors, I tried integers from 0-499, maybe I misunderstood.
Reply
#4

0xFF00CCFF ,0x33AA33FF ,0x994400FF, 0x00ffffFF ,0x00ff00FF , 0x003C00FF, 0x660000FF , 0xFF5511FF,
0x8C7853FF,0xFF00CCFF,0xD282FFFF

I'm thinking that the strange relationship with SetPlayerColor, and the fact that I am trying to create colored map icons in a filterscript where I havn't used SetPlayerColor may be the issue. I might try it in the GM, and see if this helps.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)