SA-MP Forums Archive
Colors id to SetPlayerAttachedObject - 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: Colors id to SetPlayerAttachedObject (/showthread.php?tid=631746)



Colors id to SetPlayerAttachedObject - idegod - 04.04.2017

I need some help to get the ids of colors to SetPlayerAttachedObject weapon, i've already tried normal colors, but not work here

Код:
#define WPCOLOR_LSPD ???
#define WPCOLOR_ARMY ???
#define WPCOLOR_RED 0xFFFF0000
#define WPCOLOR_GOLD ???
I want to do like in this video

https://www.youtube.com/watch?v=SeAgp0cX-JQ



Код:
SetPlayerAttachedObject(playerid,0, 348,6,0.007000 ,0.004000 ,-0.011999 ,8.599973 ,0.000000 ,0.000000 ,0.940000 ,1.354999 ,1.286999,WPCOLOR_RED,WPCOLOR_RED);



Re: Colors id to SetPlayerAttachedObject - AndreiWow - 04.04.2017

As I know you can not change the color of the object but you can change the material.
For example for Green color use a Green Material.

Read more on the wiki:
Link: https://sampwiki.blast.hk/wiki/SetObjectMaterial


Re: Colors id to SetPlayerAttachedObject - idegod - 05.04.2017

Код:
SetPlayerAttachedObject(playerid,0, 348,6,0.007000 ,0.004000 ,-0.011999 ,8.599973 ,0.000000 ,0.000000 ,0.940000 ,1.354999 ,1.286999,WPCOLOR_RED,WPCOLOR_RED);
But it's work, my only problem is the others colors:
Код:
#define WPCOLOR_LSPD ???
#define WPCOLOR_ARMY ???
#define WPCOLOR_GOLD ???



Re: Colors id to SetPlayerAttachedObject - raydx - 06.04.2017

Colors in SetPlayerAttachedObject should be in ARGB format.
"Normal" colors are probably RGBA for you.

Difference:

RGBA: 0xFCAD43FF
ARGB: 0xFFFCAD43


Re: Colors id to SetPlayerAttachedObject - idegod - 07.04.2017

I don't understand
The colors are:
LSPD 0xFFFF00AA
Gold 0xB8860BAA
Army 0x00D90066

So should i change to:
LSPD 0xFF00AAFF
Gold 0x860BAAB8
Army 0xD9006600


Re: Colors id to SetPlayerAttachedObject - OneDay - 07.04.2017

No

LSPD 0xAAFFFF00
Gold 0xAAB8860B
Army 0x6600D900


Re: Colors id to SetPlayerAttachedObject - pdonald - 08.04.2017

Quote:
Originally Posted by OneDay
Посмотреть сообщение
No

LSPD 0xAAFFFF00
Gold 0xAAB8860B
Army 0x6600D900
Are you sure bro? I enjoy the idea but that colours not working right on weapons, i mean the colors, test it pls


Re: Colors id to SetPlayerAttachedObject - pdonald - 13.04.2017

bump