// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
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, False)
Dialog.SetCheckBoxChecked(0@, 4, True)
Dialog.SetVisible(0@, False)
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, True)
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
jump @NONAME_641
:NONAME_584
Dialog.SetControlVisible(0@, 2, False)
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
jump @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
jump @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
jump @NONAME_852
:NONAME_830
0AC6: 3@ = label -1012 offset
0C10: memcpy destination 7623723 source 3@ size 8
:NONAME_852
if
2@ == 255
jf @NONAME_882
Dialog.SetVisible(0@, False)
SAMP.ToggleCursor(False)
:NONAME_882
jump @NONAME_454
:NONAME_889
jump @NONAME_415
0A93: end_custom_thread
:NONAME_898
Dialog.SetVisible(0@, True)
SAMP.ToggleCursor(True)
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
:NONAME_1006
840F: not
Actor.SetWeaponAmmo()
not Player.InZone()