SA-MP Forums Archive
Weapon tint hex looks like GOLD - 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: Weapon tint hex looks like GOLD (/showthread.php?tid=663061)



Weapon tint hex looks like GOLD - weex - 20.01.2019

I wanna make weapon tint like a server i used to play and closed...

It's just:
PHP Code:
SetPlayerAttachedObject(playerid2GetWeaponModel(wp2), 8, -0.079999, -0.0399990.109999, -90.1000060.0000000.0000001.0000001.0000001.000000,WPCOLOR_GOLD,WPCOLOR_GOLD); 
I made all good colors, but gold, i cant found a fucking HEX good to looks like on this img in the end of topic

Every yellow i put looks like shit, is anybody can help me with a #define WPCOLOR_GOLD 0x to looks like the img?




Re: Weapon tint hex looks like GOLD - MEGADETHS - 20.01.2019

try 0xFFFFFF2D, there is that bug with changing object colors though, sometimes the color is darkened.


Re: Weapon tint hex looks like GOLD - weex - 03.02.2019

Quote:
Originally Posted by MEGADETHS
View Post
try 0xFFFFFF2D, there is that bug with changing object colors though, sometimes the color is darkened.
Ty to try help, but still bad
Look:



Re: Weapon tint hex looks like GOLD - lollypap54 - 03.02.2019

You can put gold color on uzis, because they're white, but you can't on m4a4, because it's black... Because for example if you write: 0xFF00FFFF (ARGB) it will remove red from your weapon color, but in black there's no red already...


Re: Weapon tint hex looks like GOLD - Proxus - 03.02.2019

Quote:
Originally Posted by MEGADETHS
View Post
try 0xFFFFFF2D, there is that bug with changing object colors though, sometimes the color is darkened.
The colour is often darkened because of the weapon used. The M4 is a black weapon which means it'll be darker than a TEC-9 or UZI for example which are, of course, white/light grey.


Re: Weapon tint hex looks like GOLD - MEGADETHS - 03.02.2019

Quote:
Originally Posted by Proxus
View Post
The colour is often darkened because of the weapon used. The M4 is a black weapon which means it'll be darker than a TEC-9 or UZI for example which are, of course, white/light grey.
On this particular example yes, I thought he wanted to apply this color on UZI's, but there is that bug with changing the color of the objects texture, sometimes the color is either very bright or darkened and that bug has nothing to do with the already existing texture.


Re: Weapon tint hex looks like GOLD - weex - 12.02.2019

But there isn't a way to make weapons like m4,ak,eagle looks like gold plated like on the img?

---
I gave 1 rep to both of you guys!


Re: Weapon tint hex looks like GOLD - Kane - 12.02.2019

Are you sure that's a player object?


Re: Weapon tint hex looks like GOLD - weex - 16.02.2019

Quote:
Originally Posted by Kane_
View Post
Are you sure that's a player object?
I have no idea, i just played on that server
Playerobject is the only way i can think to do something like that, but i'm not a expert on samp stuff


Re: Weapon tint hex looks like GOLD - weex - 01.03.2019

bump


Re: Weapon tint hex looks like GOLD - weex - 17.03.2019

bump


Re: Weapon tint hex looks like GOLD - Dignity - 17.03.2019

You're using mods. You can't complain about unintended behaviour when you're using modified files.

Secondly, he uses SetPlayerAttachedObject with a bright yellow/greenish tint. Try it out.