<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Помогите начинающему быдлокодеру]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13909&amp;type=atom" />
	<updated>2018-08-24T18:23:38Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13909</id>
		<entry>
			<title type="html"><![CDATA[Re: Помогите начинающему быдлокодеру]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=128241#p128241" />
			<content type="html"><![CDATA[<p>Если вам нужно, чтобы скрипт работал всё время и отвечал на запросы:<br /></p><div class="codebox"><pre><code>
chat = %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
filedelete, %chat% // Удаляем чат, чтобы не было срабатывания скрипта, если это было раньше
loop, read, %chat%, info // Читаем чат
{
if info contains &lt;сюда вставляете часть строки, если скрипт увидит эти слова - он сработает&gt;
{
sendinput, {F6}/time{enter}
sleep 200
SendInput, {F8}
FileDelete, %chat% // Снова удаляем chatlog
sleep 1500 // Антифлуд, можете поставить значение меньше
}
return
</code></pre></div><p>Если же вам нужно, чтобы скрипт ждал ввода команды игроком, делал скриншот и выключался:<br /></p><div class="codebox"><pre><code>
chat = %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
filedelete, %chat% // Удаляем чат, чтобы не было срабатывания скрипта, если это было раньше
loop, read, %chat%, info // Читаем чат
{
if info contains &lt;сюда вставляете часть строки, если скрипт увидит эти слова - он сработает&gt;
{
sendinput, {F6}/time{enter}
sleep 200
SendInput, {F8}
Break
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[felrok]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39478</uri>
			</author>
			<updated>2018-08-24T18:23:38Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=128241#p128241</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите начинающему быдлокодеру]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126716#p126716" />
			<content type="html"><![CDATA[<p>Не вижу смысла в ваших скриптах.<br />Просто забиндите на клавишу /time и F8.<br /></p><div class="codebox"><pre><code>
F2::
SendInput, /time {Enter}
sleep 200
Send, {F8}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-07-06T00:15:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126716#p126716</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помогите начинающему быдлокодеру]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126669#p126669" />
			<content type="html"><![CDATA[<p>Привет ребят!<br />Пожалуйста, помогите мне.<br />Есть три команды (я про самп)<br />/sellhouse<br />/sellcar<br />/sellbiz<br />Мне надо чтобы если человек пишет например:<br />/sellhouse 0 1000000<br />и нажимает энтер, чтобы автоматически писался /time и через 2 секунды делался F8.</p>]]></content>
			<author>
				<name><![CDATA[grandscripter]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39363</uri>
			</author>
			<updated>2018-07-03T17:26:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126669#p126669</id>
		</entry>
</feed>
