SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/01/2019, 05:09 PM   #1
weex
Big Clucker
 
Join Date: Dec 2016
Posts: 124
Reputation: 1
Default Weapon tint hex looks like GOLD

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?

weex is offline   Reply With Quote
Old 20/01/2019, 05:51 PM   #2
MEGADETHS
Little Clucker
 
MEGADETHS's Avatar
 
Join Date: Jan 2019
Posts: 20
Reputation: 0
Default Re: Weapon tint hex looks like GOLD

try 0xFFFFFF2D, there is that bug with changing object colors though, sometimes the color is darkened.
MEGADETHS is offline   Reply With Quote
Old 03/02/2019, 05:04 PM   #3
weex
Big Clucker
 
Join Date: Dec 2016
Posts: 124
Reputation: 1
Default Re: Weapon tint hex looks like GOLD

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:
weex is offline   Reply With Quote
Old 03/02/2019, 05:15 PM   #4
lollypap54
Big Clucker
 
Join Date: Jan 2015
Location: Lithuania
Posts: 53
Reputation: 8
Default Re: Weapon tint hex looks like GOLD

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...
lollypap54 is offline   Reply With Quote
Old 03/02/2019, 07:00 PM   #5
Proxus
Big Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 130
Reputation: 4
Default Re: Weapon tint hex looks like GOLD

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.
__________________
Developer @ Trucknation
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"
Proxus is offline   Reply With Quote
Old 03/02/2019, 07:38 PM   #6
MEGADETHS
Little Clucker
 
MEGADETHS's Avatar
 
Join Date: Jan 2019
Posts: 20
Reputation: 0
Default Re: Weapon tint hex looks like GOLD

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.
MEGADETHS is offline   Reply With Quote
Old 12/02/2019, 11:12 AM   #7
weex
Big Clucker
 
Join Date: Dec 2016
Posts: 124
Reputation: 1
Default Re: Weapon tint hex looks like GOLD

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!
weex is offline   Reply With Quote
Old 12/02/2019, 01:03 PM   #8
Kane_
Beta Tester
 
Kane_'s Avatar
 
Join Date: Sep 2012
Posts: 833
Reputation: 120
Default Re: Weapon tint hex looks like GOLD

Are you sure that's a player object?
__________________
Los Santos Roleplay - Development team
@ls-rp.io
Kane_ is offline   Reply With Quote
Old 16/02/2019, 01:38 AM   #9
weex
Big Clucker
 
Join Date: Dec 2016
Posts: 124
Reputation: 1
Default Re: Weapon tint hex looks like GOLD

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
weex is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tint object ground binnyl Scripting Help 0 03/10/2017 08:34 PM
car window tint [L]azy[H]aze Scripting Help 4 02/05/2017 10:52 PM
Old but gold. Cookland Server Support 3 15/06/2015 08:36 PM
[Map] Gold Tec BarbaNegra Maps 9 02/10/2014 06:54 PM
Weapon Tint/Color friezakinght Scripting Help 3 01/08/2014 03:12 PM


All times are GMT. The time now is 12:41 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.