// 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
:Label000002
0001: wait 400 ms
0AFA: is_samp_available
004D: jump_if_false @Label000002
0661: NOP "ANTI AFK ON DIALOGS"
0661: NOP "by MogAika"
0661: NOP "BlastHack.net"
0661: NOP "Version 2.0"
0B80: dialog 0@ = create "AFK Master by MogAika"
0B84: dialog 0@ set_pos_XY 0 0 size 360 152
0AB1: call_scm_func @Label00038F 1 0@
0B83: dialog 0@ add_checkbox id 1 text "Работа скриптов в оконном режиме" pos_XY 8 8 size 356 24
0B83: dialog 0@ add_checkbox id 2 text "Работа скриптов в свернутом режиме" pos_XY 8 32 size 356 24
0B83: dialog 0@ add_checkbox id 3 text "Зациклить показ мыши" pos_XY 8 56 size 316 24
0B83: dialog 0@ add_checkbox id 4 text "Отключить центрирование мыши" pos_XY 8 80 size 316 24
0B82: dialog 0@ add_button id 255 text "Закрыть окно" pos_XY 8 104 size 316 24
0B90: dialog 0@ control 2 set_visible 0
0B9E: dialog 0@ checkbox 4 set_checked 1
0B86: dialog 0@ set_visible 0
0B34: samp register_client_command "aafk" to_label @Label000382
0C11: memset destination 7623723 value 144 size 8
0006: 20@ = 0
:Label00019F
0001: wait 0 ms
0AB1: call_scm_func @Label00038F 1 0@
00D6: if
0039: 20@ == 1
004D: jump_if_false @Label0001C6
0B8D: samp set_cursor_mode 2
:Label0001C6
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
004D: jump_if_false @Label000379
0001: wait 0 ms
00D6: if
0039: 2@ == 1
004D: jump_if_false @Label000281
00D6: if
0B92: dialog 0@ checkbox 1 is_checked
004D: jump_if_false @Label000248
0B90: dialog 0@ control 2 set_visible 1
0A8C: write_memory 7634870 size 1 value 1 virtual_protect 1
0A8C: write_memory 7635034 size 1 value 1 virtual_protect 1
00D6: if
0B92: dialog 0@ checkbox 2 is_checked
004D: jump_if_false @Label000241
0C11: memset destination 5499528 value 144 size 6
:Label000241
0002: jump @Label000281
:Label000248
0B90: dialog 0@ control 2 set_visible 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 @Label0003EE offset
0C10: memcpy destination 5499528 source 3@ size 6
:Label000281
00D6: if
0039: 2@ == 2
004D: jump_if_false @Label0002CE
00D6: if
0B92: dialog 0@ checkbox 2 is_checked
004D: jump_if_false @Label0002B8
0C11: memset destination 5499528 value 144 size 6
0002: jump @Label0002CE
:Label0002B8
0AC6: 3@ = label @Label0003EE offset
0C10: memcpy destination 5499528 source 3@ size 6
:Label0002CE
00D6: if
0039: 2@ == 3
004D: jump_if_false @Label000307
00D6: if
0B92: dialog 0@ checkbox 3 is_checked
004D: jump_if_false @Label000300
0006: 20@ = 1
0002: jump @Label000307
:Label000300
0006: 20@ = 0
:Label000307
00D6: if
0039: 2@ == 4
004D: jump_if_false @Label000354
00D6: if
0B92: dialog 0@ checkbox 4 is_checked
004D: jump_if_false @Label00033E
0C11: memset destination 7623723 value 144 size 8
0002: jump @Label000354
:Label00033E
0AC6: 3@ = label @Label0003F4 offset
0C10: memcpy destination 7623723 source 3@ size 8
:Label000354
00D6: if
0039: 2@ == 255
004D: jump_if_false @Label000372
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
:Label000372
0002: jump @Label0001C6
:Label000379
0002: jump @Label00019F
0A93: end_custom_thread
:Label000382
0B86: dialog 0@ set_visible 1
0B5D: samp toggle_cursor 1
0B43: samp cmd_ret
:Label00038F
0B85: dialog 0@ get_position_to 1@ 2@ size_to 3@ 4@
0B5A: get_screen_resolution 5@ 6@
0062: 5@ -= 3@ // (int)
0016: 5@ /= 2
0062: 6@ -= 4@ // (int)
0B84: dialog 0@ set_pos_XY 5@ 6@ size 3@ 4@
0AB2: ret 0
000A: 0@ += 338
0A8C: write_memory 0@ size 1 value 1@ virtual_protect 1
0AB2: ret 0
:Label0003EE
840F: not
017B: set_actor
hex
00 50 51 FF 15 00
end
8583: not player