Наркотаймер

SWEIZ1

Новичок
Автор темы
18
3
Пацаны, есть наркотаймер на эвольв нормальный, но мне нужно его передалть под родину, потому что там не работает. Но когда я компилирую при заходе в игру меня крашит, даже если я ничего не редактировал и просто залил все равно крашит. Сделайте пожалуйста так код, что бы я мог его отредактировать и не крашило, прошу вас. Ниже я предоставлю сам клео и код, кому как угодно короче


Код клео:
{$CLEO .cs}
{$INCLUDE SF}

//-------------MAIN---------------
0000: NOP
03A4: name_thread "bladee"

:bladee_12
0001: wait 0 ms
0AFA:  is_samp_available
004D: jump_if_false @bladee_12
00D6: if
8AAB:   not file_exists "CLEO\drugtimer.ini"
004D: jump_if_false @bladee_228
0AF1: write_int 1 to_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "active"
0AF1: write_int 60 to_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "seconds"
0AF1: write_int 0 to_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "sbiv"

:bladee_228
0AF0: 2@ = get_int_from_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "active"
00D6: if
0029:   2@ >= 1
004D: jump_if_false @bladee_318
0006: 2@ = 1
0002: jump @bladee_325

:bladee_318
0006: 2@ = 0

:bladee_325
0AF1: write_int 2@ to_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "active"
0AF0: 15@ = get_int_from_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "seconds"
00D6: if
0019:   15@ > 65535
004D: jump_if_false @bladee_480
0006: 15@ = 65535
0002: jump @bladee_505

:bladee_480
00D6: if
8029:   not  15@ >= 0
004D: jump_if_false @bladee_505
0006: 15@ = 0

:bladee_505
0AF1: write_int 15@ to_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "seconds"
0AF0: 8@ = get_int_from_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "sbiv"
00D6: if
0029:   8@ >= 1
004D: jump_if_false @bladee_659
0006: 8@ = 1
0006: 13@ = 1
0002: jump @bladee_666

:bladee_659
0006: 8@ = 0

:bladee_666
0AF1: write_int 8@ to_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "sbiv"
0AC8: 28@ = allocate_memory_size 256
0AC8: 27@ = allocate_memory_size 64
0AC8: 26@ = allocate_memory_size 64
0AC8: 21@ = allocate_memory_size 64
0BE3: raknet setup_incoming_rpc_hook -1639
0B34: samp register_client_command "ttogg" to_label @bladee_1981
0B34: samp register_client_command "tinfo" to_label @bladee_2717
0B34: samp register_client_command "tsbiv" to_label @bladee_2135
0B34: samp register_client_command "tsec" to_label @bladee_2339
0C74: 1 = create_timer_interval 1000 on_label -3061
0C78: set_timer 1 active 0

:bladee_831
82CB:   not actor $PLAYER_ACTOR bounding_sphere_visible
004D: jump_if_false @bladee_854
0001: wait 0 ms
0002: jump @bladee_831

:bladee_854
00D6: if
0039:   13@ == 1
004D: jump_if_false @bladee_905
0B2E: 19@ = read_samp_memory offset 94112 size 2
0B2D: write_samp_memory offset 94112 value 50064 size 2
000E: 13@ -= 1

:bladee_905
00D6: if
0039:   2@ == 1
004D: jump_if_false @bladee_1075
0A8D: 9@ = read_memory 12030944 size 4 virtual_protect 1
00D6: if
0043:   9@ == 569.0
004D: jump_if_false @bladee_993
0C48: samp textdraw 618 create "Use!" pos 610.0 65.5
0006: 10@ = 1
0002: jump @bladee_1021

:bladee_993
0C48: samp textdraw 618 create "Use!" pos 610.0 75.8
0006: 10@ = 0

:bladee_1021
0C52: samp textdraw 618 set_letter_size 0.225 1.1 color -1
0C4D: samp textdraw 618 set_shadow 1 color -16777216
0C4E: samp textdraw 618 set_outline 1 color -16777216
0B34: samp register_client_command "tres" to_label @bladee_2663

:bladee_1075
0001: wait 0 ms
0050: gosub @bladee_1565
00D6: if
0039:   2@ == 0
004D: jump_if_false @bladee_1155
0C5E: samp textdraw 618 delete
0C78: set_timer 1 active 0
0B63: samp unregister_client_command "tres"
0006: 1@ = 0

:bladee_1130
0001: wait 0 ms
0039:   2@ == 1
004D: jump_if_false @bladee_1130
0002: jump @bladee_831

:bladee_1155
0B2B: samp 23@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B25: samp 22@ = get_player_health 23@
00D6: if and
0ADC:   test_cheat "X"
8118:   not actor $PLAYER_ACTOR dead
8B8C:   not samp is_cursor_active
8C79:   not is_timer 1 active
0039:   1@ == 0
0019:   22@ > 0
004D: jump_if_false @bladee_1304
0226: 12@ = actor $PLAYER_ACTOR health
0006: 17@ = 160
0062: 17@ -= 12@ // (int)
0016: 17@ /= 10
00D6: if
0019:   17@ > 0
004D: jump_if_false @bladee_1288
0AF9: samp say_msg "/usedrugs %d" 17@
0002: jump @bladee_1304

:bladee_1288
0AF9: samp say_msg "/usedrugs 1"

:bladee_1304
0B4F: samp 12@ = get_gamestate
00D6: if
0039:   12@ == 5
004D: jump_if_false @bladee_1371
0C78: set_timer 1 active 0
0B63: samp unregister_client_command "tres"

:bladee_1341
0001: wait 0 ms
0B4F: samp 12@ = get_gamestate
0039:   12@ == 3
004D: jump_if_false @bladee_1341
0002: jump @bladee_831

:bladee_1371
00D6: if and
0C79: is_timer 1 active
0039:   12@ == 3
004D: jump_if_false @bladee_1474
00D6: if or
0118:   actor $PLAYER_ACTOR dead
8019:   not  22@ > 0
004D: jump_if_false @bladee_1474

:bladee_1416
0001: wait 0 ms
0050: gosub @bladee_1565
0B2B: samp 23@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B25: samp 22@ = get_player_health 23@
0019:   22@ > 0
004D: jump_if_false @bladee_1416
0C78: set_timer 1 active 0
0C50: samp textdraw 618 set_string "Use!"

:bladee_1474
00D6: if
8029:   not  1@ >= -1
004D: jump_if_false @bladee_1529
0C78: set_timer 1 active 0
0C50: samp textdraw 618 set_string "Use!"
018C: play_sound 1057 at 0.0 0.0 0.0

:bladee_1529
00D6: if and
8C79:   not is_timer 1 active
8039:   not  1@ == 0
004D: jump_if_false @bladee_1558
0006: 1@ = 0

:bladee_1558
0002: jump @bladee_1075

:bladee_1565
0A8D: 9@ = read_memory 12030944 size 4 virtual_protect 1
00D6: if
0043:   9@ == 569.0
004D: jump_if_false @bladee_1622
0C51: samp textdraw 618 set_pos 610.0 65.5
0002: jump @bladee_1637

:bladee_1622
0C51: samp textdraw 618 set_pos 610.0 75.8

:bladee_1637
0051: return
0BE5: raknet 30@ = get_hook_param 1
00D6: if and
0039:   30@ == 93
0039:   2@ == 1
004D: jump_if_false @bladee_1977
0BE5: raknet 30@ = get_hook_param 0
0BF2: raknet 14@ = bit_stream 30@ get_read_offset
0BED: raknet bit_stream 30@ set_read_offset 32
0BE7: raknet 29@ = bit_stream_read 30@ type 3
0BE8: raknet bit_stream 30@ read_array 28@ size 29@
0C1E: array 28@ element 29@ el_size 1 = 0
0BED: raknet bit_stream 30@ set_read_offset 14@
0B2B: samp 23@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 27@ = get_player_nickname 23@
0AD3: 26@ = format " %s употребил(a) наркотик" 27@
00D6: if and
0C14: strcmp string1 28@ string2 26@
8C79:   not is_timer 1 active
004D: jump_if_false @bladee_1823
000A: 31@ += 1
0002: jump @bladee_1894

:bladee_1823
0AD4: 25@ = scan_string 28@ format " (( Здоровье пополнено до: %i ))" 22@
00D6: if
0039:   25@ == 1
004D: jump_if_false @bladee_1894
000A: 31@ += 1

:bladee_1894
00D6: if
0039:   31@ == 1
004D: jump_if_false @bladee_1977
00D6: if
0019:   15@ > 0
004D: jump_if_false @bladee_1950
0085: 1@ = 15@ // (int)
0C77: set_timer 1 interval 0
0C78: set_timer 1 active 1

:bladee_1950
018C: play_sound 1052 at 0.0 0.0 0.0
000E: 31@ -= 1

:bladee_1977
0BE0: raknet hook_ret 1

:bladee_1981
0B12: 2@ = 2@ XOR 1
0AF1: write_int 2@ to_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "active"
00D6: if
0039:   2@ == 1
004D: jump_if_false @bladee_2103
0AF8: samp add_message_to_chat "Скпипт {44DD44}включён" color -1
0002: jump @bladee_2133

:bladee_2103
0AF8: samp add_message_to_chat "Скрипт {DD4444}выключен" color -1

:bladee_2133
0B43: samp cmd_ret

:bladee_2135
0B12: 8@ = 8@ XOR 1
0AF1: write_int 8@ to_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "sbiv"
00D6: if
0039:   8@ == 1
004D: jump_if_false @bladee_2288
0B2E: 19@ = read_samp_memory offset 94112 size 2
0B2D: write_samp_memory offset 94112 value 50064 size 2
0AF8: samp add_message_to_chat "Сбив анимации {44DD44}включён" color -1
0002: jump @bladee_2337

:bladee_2288
0B2D: write_samp_memory offset 94112 value 19@ size 2
0AF8: samp add_message_to_chat "Сбив анимации {DD4444}выключен" color -1

:bladee_2337
0B43: samp cmd_ret

:bladee_2339
0B35: samp 18@ = get_last_command_params
0AD4: 16@ = scan_string 18@ format "%i" 18@
00D6: if and
0039:   16@ == 1
0029:   18@ >= 0
8019:   not  18@ > 65535
004D: jump_if_false @bladee_2590
00D6: if
0019:   18@ > 0
004D: jump_if_false @bladee_2486
0AF8: samp add_message_to_chat "Новая продолжительность таймера: {44DD44}%i {FFFFFF}сек." color -1 18@
0002: jump @bladee_2516

:bladee_2486
0AF8: samp add_message_to_chat "Таймер {DD4444}выключен" color -1

:bladee_2516
0AF1: write_int 18@ to_ini_file "CLEO\drugtimer.ini" section "Drugtimer for Evolve RP" key "seconds"
0085: 15@ = 18@ // (int)
0002: jump @bladee_2661

:bladee_2590
0AF8: samp add_message_to_chat "Используйте {DD4444}/tsec [число секунд] {FFFFFF}(от 0 до 65535)" color -1

:bladee_2661
0B43: samp cmd_ret

:bladee_2663
00D6: if
0C79: is_timer 1 active
004D: jump_if_false @bladee_2715
0C78: set_timer 1 active 0
018C: play_sound 1057 at 0.0 0.0 0.0
0C50: samp textdraw 618 set_string "Use!"

:bladee_2715
0B43: samp cmd_ret

:bladee_2717
00D6: if
8B4C:   not samp is_dialog_active 619
004D: jump_if_false @bladee_2794
0AC6: 0@ = label @bladee_2796 offset
0B3B: samp show_dialog id 619 caption "Наркотаймер для {FF384F}Evolve RP" text 0@ button_1 "OK" button_2 "" style 0

:bladee_2794
0B43: samp cmd_ret

:bladee_2796
hex
 7B 46 46 33 38 34 46 7D 2F 74 74 6F 67 67 09 7B
 46 46 46 46 46 46 7D C2 EA EB FE F7 E8 F2 FC 20
 2F 20 E2 FB EA EB FE F7 E8 F2 FC 20 F1 EA F0 E8
 EF F2 0A 7B 46 46 33 38 34 46 7D 2F 74 69 6E 66
 6F 09 7B 46 46 46 46 46 46 7D CE F2 EE E1 F0 E0
 E7 E8 F2 FC 20 E2 F1 EF EE EC EE E3 E0 F2 E5 EB
 FC ED FB E9 20 E4 E8 E0 EB EE E3 0A 7B 46 46 33
 38 34 46 7D 2F 74 73 62 69 76 09 7B 46 46 46 46
 46 46 7D C2 EA EB FE F7 E8 F2 FC 20 2F 20 E2 FB
 EA EB FE F7 E8 F2 FC 20 F1 E1 E8 E2 0A 7B 46 46
 33 38 34 46 7D 2F 74 72 65 73 09 7B 46 46 46 46
 46 46 7D CE E1 ED F3 EB E8 F2 FC 20 F2 E0 E9 EC
 E5 F0 0A 7B 46 46 33 38 34 46 7D 2F 74 73 65 63
 09 7B 46 46 46 46 46 46 7D D3 F1 F2 E0 ED EE E2
 E8 F2 FC 20 EF F0 EE E4 EE EB E6 E8 F2 E5 EB FC
 ED EE F1 F2 FC 20 F2 E0 E9 EC E5 F0 E0 20 E2 20
 F1 E5 EA F3 ED E4 E0 F5 00
end
00D6: if
003B:   1@ == 15@ // (int)
004D: jump_if_false @bladee_3087
0C77: set_timer 1 interval 1000

:bladee_3087
00D6: if
0029:   1@ >= 0
004D: jump_if_false @bladee_3126
0AD3: 24@s = format "%d" 1@
0C50: samp textdraw 618 set_string 24@s

:bladee_3126
000E: 1@ -= 1
0B43: samp cmd_ret