<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Цвет имён игроков в SA:MP]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=11732&amp;type=atom" />
	<updated>2016-06-16T11:27:54Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=11732</id>
		<entry>
			<title type="html"><![CDATA[Re: Цвет имён игроков в SA:MP]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105297#p105297" />
			<content type="html"><![CDATA[<p>Решение из интернета: в udf</p><div class="codebox"><pre><code>
;author democrazy
getColorById(id)
{
    id += 0
    if(!checkHandles())
        return -1
    color := readDWORD(hGTA, dwSAMP + 0x216378 + 4*id)
    if(ErrorLevel) {
        ErrorLevel := ERROR_READ_MEMORY
        return -1
    }
    return color
}
convertColor(color)
{
    color += 0
    color &gt;&gt;= 8
    color &amp;= 0xffffff
    SetFormat, IntegerFast, hex
    color += 0
    color .= &quot;&quot;
    StringTrimLeft, color, color, 2
    SetFormat, IntegerFast, d
    return &quot;{&quot; color &quot;}&quot;
}
</code></pre></div><p>Первый и 17-й цвет определяет криво. Надо исправлять.</p>]]></content>
			<author>
				<name><![CDATA[User45]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33989</uri>
			</author>
			<updated>2016-06-16T11:27:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105297#p105297</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Цвет имён игроков в SA:MP]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105296#p105296" />
			<content type="html"><![CDATA[<p>Приветствую. Как можно узнать цвета ников игроков в SA:MP? Предположим, игрок ввёл /clist 32 (чёрный цвет). Нужно, чтобы скрипт получал в переменную цвет. Здесь надо работать с памятью процесса, но в samp-udf такого нет.</p>]]></content>
			<author>
				<name><![CDATA[Ink]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33547</uri>
			</author>
			<updated>2016-06-16T11:12:06Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105296#p105296</id>
		</entry>
</feed>
