SA-MP Forums Archive
turf colors on panel - 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: turf colors on panel (/showthread.php?tid=628657)



turf colors on panel - StR_MaRy - 12.02.2017

edit.


Re: turf colors on panel - Sew_Sumi - 12.02.2017

You should chase your friend up as to what he means... It's obvious that it's a problem with the output from either the DB, or the panel itself.

You'd more likely need to pass the colors of the gangzone owners to the panel to allow it to display in a color. Being that black is 000000, it can't be that far off.


Re: turf colors on panel - Scriptery - 19.08.2017

With "converter" color.

use

PHP код:
substr($Field['ColorTurf'],2,-2); 
EX: from 0x452A0DFF to 452A0D
and from 10 digits converted to 6 digits, only good for css.

Then you can create a div with turf size with color converted

Example: <div style="background-color:#'.substr($Field['ColorTurf'],2,-2).'; width: xpx; height:ypx;">