Народ, пару лет назад я устанавливал какие-то опкоды на сб в результате чего опкод 0AB0 можно было писать не только 0AB0: Key_pressed 70, а и 0AB0: Key_pressed_F. Никто не знает где его достать или как так сделать
Лучше загружать тхт в котором указаны коды кнопок. Как найду - кину.
инклуд клавиш(Как установить будет описано в архиве)
Лучше загружать тхт в котором указаны коды кнопок. Как найду - кину.
0B34: samp register_client_command "blist" to_label @blist
:blista
wait 0
0A9A: 0@ = openfile "CLEO\BlackList.txt" mode "rt"
:check
0AD7: read_string_from_file 0@ to 1@v size 20
for 4@ = 0 to 1000
if
0B23: samp is_player_connected 4@
then
0B36: samp 3@ = get_player_nickname 4@
if
0C14: strcmp string1 1@v string2 3@
then
0AF8: samp add_message_to_chat "%s" color 0xFF61BB 3@
end
end
end
if 0AD6: end_of_file 0@ reached
jf @check
0B43: samp cmd_ret
А память ты для переменной выделял?
{$CLEO .cs}
0000: NOP
wait 10000
:Label11
wait 400
0AFA: is_samp_load
004D: jump_if_false @Label11
0B5A: get_screen_resolution $4 $5
0015: $4 /= 1.7
0B80: samp $6 = create_dialog "Patches"
wait 10
0B84: samp dialog $6 set_pos_XY $4 0 size 300 70
wait 10
0B83: samp dialog $6 add_checkbox id 19 text "WeaponPatch" pos_XY 5 0 size 150 20
wait 10
0B83: samp dialog $6 add_checkbox id 20 text "FreezePatch" pos_XY 5 24 size 150 20
wait 10
0B83: samp dialog $6 add_checkbox id 21 text "PlayerPatch" pos_XY 160 0 size 150 20
wait 10
0B83: samp dialog $6 add_checkbox id 22 text "VehiclPatch" pos_XY 160 24 size 150 20
0B86: samp dialog $6 set_visible 1
:Label405
0001: wait 0
00D6: if
0B92: samp dialog $6 checkbox 19 is_checked
004D: jump_if_false @Label631
0001: wait 0
0B2E: 3@ = read_samp_memory offset 76192 size 2
0001: wait 10
0B2E: 4@ = read_samp_memory offset 22112 size 1
0001: wait 20
0B2E: 5@ = read_samp_memory offset 23792 size 3
0001: wait 30
0B2E: 6@ = read_samp_memory offset 85536 size 2
0001: wait 40
0B2E: 7@ = read_samp_memory offset 79584 size 2
0001: wait 50
0B2E: 8@ = read_samp_memory offset 87024 size 2
0001: wait 60
0B2D: write_samp_memory offset 76192 value 50064 size 2
0B2D: write_samp_memory offset 22112 value 195 size 1
0B2D: write_samp_memory offset 23792 value 12718080 size 3
0B2D: write_samp_memory offset 85536 value 50064 size 2
0B2D: write_samp_memory offset 79584 value 50064 size 2
0B2D: write_samp_memory offset 87024 value 50064 size 2
0006: 15@ = 1
:Label631
0001: wait 0
00D6: if
0039: 15@ == 1
8B92: not samp dialog $6 checkbox 19 is_checked
004D: jump_if_false @Label728
0B2D: write_samp_memory offset 76192 value 3@ size 2
0B2D: write_samp_memory offset 22112 value 4@ size 1
0B2D: write_samp_memory offset 23792 value 5@ size 3
0B2D: write_samp_memory offset 85536 value 6@ size 2
0B2D: write_samp_memory offset 79584 value 7@ size 2
0B2D: write_samp_memory offset 87024 value 8@ size 2
0006: 15@ = 0
:Label728
0001: wait 0
00D6: if
0B92: samp dialog $6 checkbox 20 is_checked
004D: jump_if_false @Label845
0001: wait 0
0B2E: 9@ = read_samp_memory offset 84592 size 2
0001: wait 10
0B2E: 10@ = read_samp_memory offset 47664 size 2
0001: wait 20
0B2D: write_samp_memory offset 84592 value 50064 size 2
0B2D: write_samp_memory offset 47664 value 50064 size 2
0006: 11@ = 1
:Label845
0001: wait 0
00D6: if
0039: 11@ == 1
8B92: not samp dialog $6 checkbox 20 is_checked
004D: jump_if_false @Label898
0B2D: write_samp_memory offset 84592 value 9@ size 2
0B2D: write_samp_memory offset 47664 value 10@ size 2
0006: 11@ = 0
:Label898
0001: wait 0
00D6: if
0B92: samp dialog $6 checkbox 21 is_checked
004D: jump_if_false @Label1256
0001: wait 0
0B2E: 12@ = read_samp_memory offset 81248 size 2
0001: wait 10
0B2E: 13@ = read_samp_memory offset 80688 size 2
0001: wait 20
0B2E: 14@ = read_samp_memory offset 85376 size 2
0001: wait 30
0B2E: 25@ = read_samp_memory offset 86320 size 2
0001: wait 40
0B2E: 26@ = read_samp_memory offset 77344 size 2
0001: wait 50
0B2E: 27@ = read_samp_memory offset 77616 size 2
0001: wait 60
0B2E: 28@ = read_samp_memory offset 78048 size 2
0001: wait 70
0B2E: 29@ = read_samp_memory offset 82816 size 2
0001: wait 80
0B2E: 30@ = read_samp_memory offset 82608 size 2
0001: wait 90
0B2E: 31@ = read_samp_memory offset 84976 size 2
0001: wait 100
0B2D: write_samp_memory offset 81248 value 50064 size 2
0B2D: write_samp_memory offset 80688 value 50064 size 2
0B2D: write_samp_memory offset 85376 value 50064 size 2
0B2D: write_samp_memory offset 86320 value 50064 size 2
0B2D: write_samp_memory offset 77344 value 50064 size 2
0B2D: write_samp_memory offset 77616 value 50064 size 2
0B2D: write_samp_memory offset 78048 value 50064 size 2
0B2D: write_samp_memory offset 82816 value 50064 size 2
0B2D: write_samp_memory offset 82608 value 50064 size 2
0B2D: write_samp_memory offset 84976 value 50064 size 2
0006: 1@ = 1
:Label1256
0001: wait 0
00D6: if
0039: 1@ == 1
8B92: not samp dialog $6 checkbox 21 is_checked
004D: jump_if_false @Label1405
0B2D: write_samp_memory offset 81248 value 12@ size 2
0B2D: write_samp_memory offset 80688 value 13@ size 2
0B2D: write_samp_memory offset 85376 value 14@ size 2
0B2D: write_samp_memory offset 86320 value 25@ size 2
0B2D: write_samp_memory offset 77344 value 26@ size 2
0B2D: write_samp_memory offset 77616 value 27@ size 2
0B2D: write_samp_memory offset 78048 value 28@ size 2
0B2D: write_samp_memory offset 82816 value 29@ size 2
0B2D: write_samp_memory offset 82608 value 30@ size 2
0B2D: write_samp_memory offset 84976 value 31@ size 2
0006: 1@ = 0
:Label1405
0001: wait 0
00D6: if
0B92: samp dialog $6 checkbox 22 is_checked
004D: jump_if_false @Label1733
0001: wait 0
0B2E: 16@ = read_samp_memory offset 83072 size 2
0001: wait 10
0B2E: 17@ = read_samp_memory offset 78304 size 2
0001: wait 20
0B2E: 18@ = read_samp_memory offset 87376 size 2
0001: wait 30
0B2E: 19@ = read_samp_memory offset 83344 size 2
0001: wait 40
0B2E: 20@ = read_samp_memory offset 489872 size 2
0001: wait 50
0B2E: 21@ = read_samp_memory offset 83552 size 2
0001: wait 60
0B2E: 22@ = read_samp_memory offset 53648 size 2
0001: wait 70
0B2E: 23@ = read_samp_memory offset 81424 size 2
0001: wait 80
0B2E: 24@ = read_samp_memory offset 76016 size 2
0001: wait 90
0B2D: write_samp_memory offset 83072 value 50064 size 2
0B2D: write_samp_memory offset 78304 value 50064 size 2
0B2D: write_samp_memory offset 87376 value 50064 size 2
0B2D: write_samp_memory offset 83344 value 50064 size 2
0B2D: write_samp_memory offset 489872 value 50064 size 2
0B2D: write_samp_memory offset 83552 value 50064 size 2
0B2D: write_samp_memory offset 53648 value 50064 size 2
0B2D: write_samp_memory offset 81424 value 50064 size 2
0B2D: write_samp_memory offset 76016 value 50064 size 2
0006: 2@ = 1
:Label1733
0001: wait 0
00D6: if
0039: 2@ == 1
8B92: not samp dialog $6 checkbox 22 is_checked
004D: jump_if_false @Label1870
0B2D: write_samp_memory offset 83072 value 16@ size 2
0B2D: write_samp_memory offset 78304 value 17@ size 2
0B2D: write_samp_memory offset 87376 value 18@ size 2
0B2D: write_samp_memory offset 83344 value 19@ size 2
0B2D: write_samp_memory offset 489872 value 20@ size 2
0B2D: write_samp_memory offset 83552 value 21@ size 2
0B2D: write_samp_memory offset 53648 value 22@ size 2
0B2D: write_samp_memory offset 81424 value 23@ size 2
0B2D: write_samp_memory offset 76016 value 24@ size 2
0006: 2@ = 0
:Label1870
0001: wait 400
0002: jump @Label405
if
Dialog.CheckBoxIsChecked(2@, 19)
else_jump @Noname_778
15@ = 1
jump @Noname_785
Достал с моего декомпилированого модер меню.
Код:if Dialog.CheckBoxIsChecked(2@, 19) else_jump @Noname_778 15@ = 1 jump @Noname_785