<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Как создать свое меню в SA:MP ?]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12169&amp;type=atom" />
	<updated>2016-12-27T10:04:04Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12169</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как создать свое меню в SA:MP ?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=110317#p110317" />
			<content type="html"><![CDATA[<p><strong>mr.ramser</strong>, не совсем верно. Само окно, да, фэйковое. Но вывести из него переменные можно с помощью input: посмотрите пример моего кода выше.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2016-12-27T10:04:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=110317#p110317</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как создать свое меню в SA:MP ?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=110265#p110265" />
			<content type="html"><![CDATA[<p><strong>slavafedora</strong></p><p>Точь в точь написал , как у тебя код , захожу в игру , нажимаю F5 не работает ( Поменял на свою клавишу ).</p>]]></content>
			<author>
				<name><![CDATA[Akio Mori]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34137</uri>
			</author>
			<updated>2016-12-26T14:57:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=110265#p110265</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как создать свое меню в SA:MP ?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=110067#p110067" />
			<content type="html"><![CDATA[<p>Скачай Player Helper от murKotik. По мне хорошую вещь для игроков сделал. Насколько я знаю, основное направление - SAMP-RP. Там есть и меню, и всё насвете.</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-12-23T09:27:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=110067#p110067</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как создать свое меню в SA:MP ?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109971#p109971" />
			<content type="html"><![CDATA[<p>Нужен SAMP-UDF. Готовый код:<br /></p><div class="codebox"><pre><code>F5::
Showdialog(&quot;1&quot;, &quot;{FFFAFA}Выберите пункт&quot;, &quot;{FFFAFA}[1] - Гос. новости`n[2] - Пригласить игрока`n[3] - Уволить игрока&quot;, &quot;Ok&quot;)
input, text, V, {Enter}
Keywait, Enter, D
sleep 300

if (text = 1) {
sendchanmessage(&quot;/gov текст введешь сам&quot;)
sleep 1100
sendchanmessage(&quot;/gov текст введешь сам&quot;)
sleep 1100
sendchanmessage(&quot;/gov текст введешь сам&quot;)
} else if (text = 2) {
sendchanmessage(&quot;/gov РП отыгровка принятия (1-я строчка)&quot;)
sleep 1100
sendchanmessage(&quot;/gov РП отыгровка принятия (2-я строчка)&quot;)
sleep 1100
sendinput {F6}/invite{Space}
} else if (text = 3) {
sendinput {F6}/uninvite{Space}
} else { 
addMessageToChatWindow(&quot;[AHK]: Ошибка. Выберите пункт с помощью цифр 1-3&quot;
}
return</code></pre></div><p>Вот простейший код без всяких красивостей (типо ввод причины и ID в диалоговое окно: зачем это делать если можно прямо в строчку чата вводить. Диалоговое окно красивое, но оно нестабильное и иногда вызывает краши, лучше избегать лишнее использование его), некоторые строчки измени под себя.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2016-12-21T16:02:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109971#p109971</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как создать свое меню в SA:MP ?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109737#p109737" />
			<content type="html"><![CDATA[<p>Тоже делаю такой. Посмотри что получилось. Как выйдет скину код.<br /></p><div class="codebox"><pre><code>^1::
    showDialog(&quot;2&quot;, &quot;Меню&quot;, &quot;Наказания`nОтыгровка`nFunktion3&quot;, &quot;Ок&quot;, &quot;Отмена&quot;)
return
#If isDialogOpen() &amp;&amp; WinActive(&quot;GTA:SA:MP&quot;)
$Enter::
    OnDialogResponse(true)
return
ESC::
    OnDialogResponse(false)
return
#If
OnDialogResponse(response) {
    caption := getDialogCaption()
    if (response) {
  if (caption == &quot;Меню&quot;) {
   line := getDialogLine(getDialogIndex())
   if (line == &quot;Наказания&quot;) {
    showDialog(&quot;2&quot;, &quot;Под список&quot;, &quot;Заглушки`nНаказания кпз`nРелоги&quot;, &quot;Ок&quot;, &quot;Отмена&quot;)
   }
   else if (line == &quot;Отыгровка&quot;) 
   {
    showDialog(&quot;1&quot;, &quot;/я текст&quot;, &quot;Введите отыгровку&quot;, &quot;Ок&quot;, &quot;Отмена&quot;)
    input, text, V, {Enter} 
    SendChat(&quot;/я &quot; text)
   }
   return
  }
  else if (caption == &quot;Под список&quot;) {
   line := getDialogLine(getDialogIndex())
   AddChatMessage(line)
   Send, {Enter}
  }
  else if (caption == &quot;Keybinder - Funktion2&quot;) {
   clipboardBuffer := ClipboardAll
   clipboard := &quot;&quot;
   Send, ^{A}
   Send, ^{X}
   sleep, 100
   dialogInput := clipboard
   clipboard := clipboardBuffer
   if (dialogInput != -1 &amp;&amp; dialogInput != &quot;&quot;) {
    AddChatMessage(&quot;Dialog Input: &quot; dialogInput)
   }
   Send, {Enter}
  }
  else
   Send, {Enter}
    }
    else {
  if (caption == &quot;Под список&quot;) 
  {
   showDialog(&quot;2&quot;, &quot;Меню&quot;, &quot;Наказания`nОтыгровка`nFunktion3&quot;, &quot;Ок&quot;, &quot;Отмена&quot;)
  }
  else
   Send, {ESC}
    }
    return
}</code></pre></div><p>Не забудь что нужен UDF.</p>]]></content>
			<author>
				<name><![CDATA[slavafedora]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34221</uri>
			</author>
			<updated>2016-12-09T16:22:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109737#p109737</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как создать свое меню в SA:MP ?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109545#p109545" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Empire пишет:</cite><blockquote><p><strong>Akio Mori</strong> Приветствую. AHK не умеет создавать диалоги. Вы можете подключить SAMP UDF (SAMP.ahk), в нем кажется есть функция ShowDialog</p></blockquote></div><p> Да в САМП ЮДФ есть такая функция но она создаёт Фейк диалог и вывести из него какую либо переменную невозможно будет.</p>]]></content>
			<author>
				<name><![CDATA[mr.ramser]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33354</uri>
			</author>
			<updated>2016-12-02T10:26:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109545#p109545</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как создать свое меню в SA:MP ?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109498#p109498" />
			<content type="html"><![CDATA[<p><strong>Akio Mori</strong> Приветствую. AHK не умеет создавать диалоги. Вы можете подключить SAMP UDF (SAMP.ahk), в нем кажется есть функция ShowDialog</p>]]></content>
			<author>
				<name><![CDATA[Empire]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34347</uri>
			</author>
			<updated>2016-11-30T01:47:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109498#p109498</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как создать свое меню в SA:MP ?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109330#p109330" />
			<content type="html"><![CDATA[<p><strong>Akio Mori</strong>, не создавайте темы по играм в ветке AHK.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-11-24T14:41:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109330#p109330</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как создать свое меню в SA:MP ?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109329#p109329" />
			<content type="html"><![CDATA[<p>Добрый день! Подскажите кто знает. Как создать меню похожее на обычное [ /mn ] в SA:MP. <br />К примеру <br />Нажимаешь F5 , появляется меню с выбором : Гос новости , ниже уволить игрока , ниже принять .<br />И далее когда выбираешь какой либо раздел появляется еще меню куда надо вводить к примеру текст для гос.волны 3 Строки будет , или же вводить ид игрока для принятие , вначале идет отыгровка RolePlay , а потом уже и /invte [ id ]<br />Если выбрать увольнения , то будет такой текст : Введите id игрока и через пробел причину увольнения .<br />Если поможете буду благодарен .</p>]]></content>
			<author>
				<name><![CDATA[Akio Mori]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34137</uri>
			</author>
			<updated>2016-11-24T13:48:35Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109329#p109329</id>
		</entry>
</feed>
