- Версия SA-MP
-
- 0.3.7 (R1)
Хочу изменить бинд в клео, искал в интернете способ, нашел, но после изменения 0AB0: key_pressed скрипт переставал работать, можете помочь изменить на + и - (которые на нумпаде) пожалуйста.
Код:
Код:
// 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
wait 0
if
0AA2: 1@ = load_library "kernel32.dll" // IF and SET
else_jump @Noname_334
if
0AA4: 30@ = get_proc_address "GetModuleHandleA" library 1@ // IF and SET
else_jump @Noname_334
0AA7: call_function 30@ num_params 1 pop 0 "samp.dll" 0@
if
0@ > 0
else_jump @Noname_334
0085: 2@ = 0@ // (int)
2@ += 2203832
:Noname_132
wait 0
if or
0AB0: key_pressed 36
0AB0: key_pressed 35
else_jump @Noname_132
0A8D: 5@ = read_memory 2@ size 4 virtual_protect 1
if
5@ > 10000
else_jump @Noname_132
0085: 30@ = 5@ // (int)
30@ += 40
0A8D: 31@ = read_memory 30@ size 4 virtual_protect 1
if and
31@ == 1
0AB0: key_pressed 36
else_jump @Noname_273
0A8C: write_memory 30@ size 4 value 0 virtual_protect 1
gosub @Noname_336
0AD1: show_formatted_text_highpriority "Dialog Hided" time 2000
:Noname_273
if and
31@ == 0
0AB0: key_pressed 35
else_jump @Noname_327
0A8C: write_memory 30@ size 4 value 1 virtual_protect 1
0AD1: show_formatted_text_highpriority "Dialog Showed" time 2000
:Noname_327
jump @Noname_132
:Noname_334
0A93: end_custom_thread
:Noname_336
0085: 30@ = 0@ // (int)
30@ += 2203916
0A8D: 31@ = read_memory 30@ size 4 virtual_protect 1
0085: 30@ = 0@ // (int)
30@ += 638256
0AA6: call_method 30@ struct 31@ num_params 3 pop 0 0 0 0
return
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
wait 0
if
0AA2: 1@ = load_library "kernel32.dll" // IF and SET
else_jump @Noname_334
if
0AA4: 30@ = get_proc_address "GetModuleHandleA" library 1@ // IF and SET
else_jump @Noname_334
0AA7: call_function 30@ num_params 1 pop 0 "samp.dll" 0@
if
0@ > 0
else_jump @Noname_334
0085: 2@ = 0@ // (int)
2@ += 2203832
:Noname_132
wait 0
if or
0AB0: key_pressed 36
0AB0: key_pressed 35
else_jump @Noname_132
0A8D: 5@ = read_memory 2@ size 4 virtual_protect 1
if
5@ > 10000
else_jump @Noname_132
0085: 30@ = 5@ // (int)
30@ += 40
0A8D: 31@ = read_memory 30@ size 4 virtual_protect 1
if and
31@ == 1
0AB0: key_pressed 36
else_jump @Noname_273
0A8C: write_memory 30@ size 4 value 0 virtual_protect 1
gosub @Noname_336
0AD1: show_formatted_text_highpriority "Dialog Hided" time 2000
:Noname_273
if and
31@ == 0
0AB0: key_pressed 35
else_jump @Noname_327
0A8C: write_memory 30@ size 4 value 1 virtual_protect 1
0AD1: show_formatted_text_highpriority "Dialog Showed" time 2000
:Noname_327
jump @Noname_132
:Noname_334
0A93: end_custom_thread
:Noname_336
0085: 30@ = 0@ // (int)
30@ += 2203916
0A8D: 31@ = read_memory 30@ size 4 virtual_protect 1
0085: 30@ = 0@ // (int)
30@ += 638256
0AA6: call_method 30@ struct 31@ num_params 3 pop 0 0 0 0
return