// 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 400
SAMP.Available
jf @Noname_2
0661: NOP "ANTI AFK ON DIALOGS"
0661: NOP "by MogAika"
0661: NOP "BlastHack.net"
0661: NOP "Version 2.0"
Dialog.Create(0@, "AFK Master by MogAika")
Dialog.SetRECT(0@, 0, 0, 360, 152)
call @Noname_911 1 0@
Dialog.AddCheckBox(0@, 1, "Работа скриптов в оконном режиме", 8, 8, 356, 24)
Dialog.AddCheckBox(0@, 2, "Работа скриптов в свернутом режиме", 8, 32, 356, 24)
Dialog.AddCheckBox(0@, 3, "Зациклить показ мыши", 8, 56, 316, 24)
Dialog.AddCheckBox(0@, 4, "Отключить центрирование мыши", 8, 80, 316, 24)
Dialog.AddButton(0@, 255, "Закрыть окно", 8, 104, 316, 24)
Dialog.SetControlVisible(0@, 2, 0)
Dialog.SetCheckBoxChecked(0@, 4, 1)
Dialog.SetVisible(0@, 0)
0B34: samp register_client_command "aafk" to_label @Noname_898
0C11: memset destination 7623723 value 144 size 8
20@ = 0
:Noname_415
wait 0
call @Noname_911 1 0@
if
20@ == 1
jf @Noname_454
SAMP.SetCursorMode(2)
:Noname_454
Dialog.PopEvent(0@, 1@, 2@)
jf @Noname_889
wait 0
if
2@ == 1
jf @Noname_641
if
Dialog.CheckBoxIsChecked(0@, 1)
jf @Noname_584
Dialog.SetControlVisible(0@, 2, 1)
0A8C: write_memory 7634870 size 1 value 1 virtual_protect 1
0A8C: write_memory 7635034 size 1 value 1 virtual_protect 1
if
Dialog.CheckBoxIsChecked(0@, 2)
jf @Noname_577
0C11: memset destination 5499528 value 144 size 6
:Noname_577
goto @Noname_641
:Noname_584
Dialog.SetControlVisible(0@, 2, 0)
0A8C: write_memory 7634870 size 1 value 0 virtual_protect 1
0A8C: write_memory 7635034 size 1 value 0 virtual_protect 1
0AC6: 3@ = label @Noname_1006 offset
0C10: memcpy destination 5499528 source 3@ size 6
:Noname_641
if
2@ == 2
jf @Noname_718
if
Dialog.CheckBoxIsChecked(0@, 2)
jf @Noname_696
0C11: memset destination 5499528 value 144 size 6
goto @Noname_718
:Noname_696
0AC6: 3@ = label @Noname_1006 offset
0C10: memcpy destination 5499528 source 3@ size 6
:Noname_718
if
2@ == 3
jf @Noname_775
if
Dialog.CheckBoxIsChecked(0@, 3)
jf @Noname_768
20@ = 1
goto @Noname_775
:Noname_768
20@ = 0
:Noname_775
if
2@ == 4
jf @Noname_852
if
Dialog.CheckBoxIsChecked(0@, 4)
jf @Noname_830
0C11: memset destination 7623723 value 144 size 8
goto @Noname_852
:Noname_830
0AC6: 3@ = label @Noname_1012 offset
0C10: memcpy destination 7623723 source 3@ size 8
:Noname_852
if
2@ == 255
jf @Noname_882
Dialog.SetVisible(0@, 0)
SAMP.ToggleCursor(0)
:Noname_882
goto @Noname_454
:Noname_889
goto @Noname_415
0A93: end_custom_thread
:Noname_898
Dialog.SetVisible(0@, 1)
SAMP.ToggleCursor(1)
SAMP.CmdRet
:Noname_911
Dialog.GetRECT(0@, 1@, 2@, 3@, 4@)
SAMP.GetScreenResolution(5@, 6@)
0062: 5@ -= 3@ // (int)
5@ /= 2
0062: 6@ -= 4@ // (int)
Dialog.SetRECT(0@, 5@, 6@, 3@, 4@)
ret 0
0@ += 338
0A8C: write_memory 0@ size 1 value 1@ virtual_protect 1
ret 0