<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; SA-MP: Проверить по координатам моё местоположение]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=12258</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12258&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «SA-MP: Проверить по координатам моё местоположение».]]></description>
		<lastBuildDate>Wed, 15 Feb 2017 18:57:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: SA-MP: Проверить по координатам моё местоположение]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=112595#p112595</link>
			<description><![CDATA[<p>Используй функции из SAMP.ahk<strong>.</strong><br />Считай координаты, и проверяй, находишься ли ты в радиусе нужных координат<strong>.</strong></p><div class="codebox"><pre><code>getPlayerMapPosX() {
    if(!checkHandles())
        return -1
    
    MapPosX := readFloat(hGTA, 0xBA67B8)
    if(ErrorLevel) {
        ErrorLevel := ERROR_READ_MEMORY
        return -1
    }
    
    ErrorLevel := ERROR_OK
    return MapPosX
}

getPlayerMapPosY() {
    if(!checkHandles())
        return -1
    
    MapPosY := readFloat(hGTA, 0xBA67BC)
    if(ErrorLevel) {
        ErrorLevel := ERROR_READ_MEMORY
        return -1
    }
    
    ErrorLevel := ERROR_OK
    return MapPosY
}
getPlayerMapZoom() {
    if(!checkHandles())
        return -1
    
    MapZoom := readFloat(hGTA, 0xBA67AC)
    if(ErrorLevel) {
        ErrorLevel := ERROR_READ_MEMORY
        return -1
    }
    
    ErrorLevel := ERROR_OK
    return MapZoom
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Wed, 15 Feb 2017 18:57:15 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=112595#p112595</guid>
		</item>
		<item>
			<title><![CDATA[SA-MP: Проверить по координатам моё местоположение]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=110230#p110230</link>
			<description><![CDATA[<p>Приветствую всех ,у меня вопрос . Как сделать проверку по координатам ,к примеру мы заезжаем на базу СВ и в чате выходит информация что вы попали в область армии Сухопутных Войск.</p>]]></description>
			<author><![CDATA[null@example.com (Akio Mori)]]></author>
			<pubDate>Mon, 26 Dec 2016 06:22:35 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=110230#p110230</guid>
		</item>
	</channel>
</rss>
