// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
:Noname_2
wait 0
SAMP.Available
jf @Noname_2
wait 3000
chatmsg "Помощник для автозавода. {e96df4}/AutoHelp{ffffff}. Автор: {6afb6a}garden" -1
0B34: samp register_client_command "AutoHelp" to_label @Noname_725
:Noname_117
wait 0
if
30@ == 1
jf @Noname_117
SAMP.ReadSAMPMemory(21@, 52144, 2)
SAMP.WriteSAMPMemory(52144, 50064, 2)
SAMP.ReadSAMPMemory(22@, 49232, 2)
SAMP.WriteSAMPMemory(49232, 50064, 2)
wait 0
say "/mn"
wait 1000
0BC9: samp send_dialog_response dialog 16 button 1 listitem 5 input ""
wait 300
0BC9: samp send_dialog_response dialog 18 button 1 listitem 3 input ""
wait 300
0BC9: samp send_dialog_response dialog 105 button 1 listitem 1 input ""
0BC9: samp send_dialog_response dialog 110 button 1 listitem 1 input ""
wait 300
0BC9: samp send_dialog_response dialog 106 button 1 listitem 1 input ""
0BC9: samp send_dialog_response dialog 111 button 1 listitem 1 input ""
wait 300
0BC9: samp send_dialog_response dialog 105 button 0 listitem 1 input ""
0BC9: samp send_dialog_response dialog 110 button 0 listitem 1 input ""
wait 300
0BC9: samp send_dialog_response dialog 18 button 0 listitem 3 input ""
wait 300
0BC9: samp send_dialog_response dialog 16 button 0 listitem 5 input ""
SAMP.CloseDialog(0)
wait 300
SAMP.WriteSAMPMemory(52144, 21@, 2)
SAMP.WriteSAMPMemory(49232, 22@, 2)
:Noname_371
wait 0
free 1@
if
30@ == 1
jf @Noname_117
if
0C5D: samp textdraw 2073 is_exists
jf @Noname_510
alloc 1@ 256
0C5A: samp textdraw 2073 get_string_to 1@
0C2D: strrev in 1@ out 1@
0A8D: 3@ = read_memory 1@ size 1 virtual_protect 0
alloc 21@ 4
format 21@ "%c" 3@
if
0C18: 0 = strstr string1 21@ string2 "~"
jf @Noname_510
SAMP.SetGameKeyState(16, -255)
free 21@
goto @Noname_371
:Noname_510
if
0C5D: samp textdraw 2063 is_exists
jf @Noname_614
0C5A: samp textdraw 2063 get_string_to 1@
0C2D: strrev in 1@ out 1@
0A8D: 3@ = read_memory 1@ size 1 virtual_protect 0
alloc 21@ 4
format 21@ "%c" 3@
if
0C18: 0 = strstr string1 21@ string2 "~"
jf @Noname_614
SAMP.SetGameKeyState(16, -255)
free 21@
goto @Noname_371
:Noname_614
if
0C5D: samp textdraw 2053 is_exists
jf @Noname_718
0C5A: samp textdraw 2053 get_string_to 1@
0C2D: strrev in 1@ out 1@
0A8D: 3@ = read_memory 1@ size 1 virtual_protect 0
alloc 21@ 4
format 21@ "%c" 3@
if
0C18: 0 = strstr string1 21@ string2 "~"
jf @Noname_718
SAMP.SetGameKeyState(16, -255)
free 21@
goto @Noname_371
:Noname_718
goto @Noname_371
:Noname_725
if
30@ == 1
jf @Noname_809
chatmsg "{e96df4}[AutoHelp]{ffffff} Помощник выключен." -1
30@ = 0
goto @Noname_870
:Noname_809
chatmsg "{e96df4}[AutoHelp]{ffffff} Помощник активирован" -1
30@ = 1
:Noname_870
SAMP.CmdRet