Raised This Month: $ Target: $400
 0% 

converting Pawn to hex color


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
klashfire
Member
Join Date: May 2014
Location: NY, USA
Old 07-25-2014 , 09:09   converting Pawn to hex color
Reply With Quote #1

ppl say that you convert hex to pawn colors by adding an 0x at the beginning and an FF at the end, but how do I do the opposite? I want to convert specific pawn colors, so I don't want something like a color picker, I want to convert pawn colors to hex like: \x07830000
how do I convert that to a hexidecimal color? (programs like SA:MP color picker don't let you enter a value to convert, just to pick a color and it tells you the hex and pawn color of it.)

p.s. that pawn color is red. any hex color that isn't red isn't that color.

Last edited by klashfire; 07-25-2014 at 09:28.
klashfire is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-25-2014 , 16:31   Re: converting Pawn to hex color
Reply With Quote #2

Is this Source related?

There is no special pawn color system. Simply drop the \x07 or \x08 from the front and then you have the hex value of the color. If you have 8 characters left, drop the last 2 as they are the Alpha values.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 07-25-2014 at 16:31.
YamiKaitou is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 13:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode