Colors id to SetPlayerAttachedObject
#1

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);
Reply
#2

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
Reply
#3

Код:
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 ???
Reply
#4

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

Difference:

RGBA: 0xFCAD43FF
ARGB: 0xFFFCAD43
Reply
#5

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

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

No

LSPD 0xAAFFFF00
Gold 0xAAB8860B
Army 0x6600D900
Reply
#7

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
Reply
#8

bump
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)