SA-MP Forums Archive
Mark player - 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: Mark player (/showthread.php?tid=371082)



Mark player - bleedis - 22.08.2012

Hey, I have question. How to mark player with yellow marker like entrances or with that white arrow, that if player is choosen or randomly just set arrow top of his head? +rep
Thanks.


Re: Mark player - Unte99 - 22.08.2012

SetPlayerAttachedObject


Re: Mark player - bleedis - 22.08.2012

OKey, i tried with that attach to head staff and arrow is attached in the middle to head, how can i coordinate arrow distanc of head and set right standing angle?


Re: Mark player - Unte99 - 22.08.2012

It's the z coordinate offset you want to change.

SetPlayerAttachedObject(playerid, 3, 19487, 2, 0.101, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1, 0xFF00FF00);

fOffsetZ (optional) Z axis offset for the object position. Add to the z coordinate ~2.0-2.5 and the arrow will be above the players head. Sorry i replied late. I had to go out.


Re: Mark player - bleedis - 22.08.2012

okey. Thanks. and how to get from this
pawn Код:
#define COLOR_GOLD 0xFFD700AA
get something like that "{8FE11F}" //green but only gold from that code


Re: Mark player - HuSs3n - 22.08.2012

Quote:
Originally Posted by bleedis
Посмотреть сообщение
okey. Thanks. and how to get from this
pawn Код:
#define COLOR_GOLD 0xFFD700AA
get something like that "{8FE11F}" //green but only gold from that code
remove the first two and last two characters (0x and AA)
pawn Код:
{FFD700}



Re: Mark player - bleedis - 22.08.2012

Thanks both!