Помогите воткнуть проверку на чат

Saucehil

Новичок
Автор темы
10
4
Чтобы когда нажимал SHIFT при открытом чате не переставал работать круиз контрол чем и является данный скрыыыпт
Короче вы поняли


Cruise Control SHIFT:
// This file was decompiled using SASCM.ini published on 2022-03-20

{$CLEO .cs}


if

  is_game_version_original

jf @NONAME_30

7@ = 5503856

jump @NONAME_40


:NONAME_30

7@ = 5505040


:NONAME_40

call_function_return 7@ num_params 1 pop 1 0 10@


:NONAME_55

wait 0

if and

  Actor.Driving($PLAYER_ACTOR)

84C8:   not actor $PLAYER_ACTOR driving_flying_vehicle

jf @NONAME_582

if

  1@ == 0

jf @NONAME_128

if

  is_key_pressed 16

  00D6: if and

not SAMP.ChatInputOpened(16)

jf @NONAME_121

1@ = 1


:NONAME_121

jump @NONAME_332


:NONAME_128

if

  1@ == 1

jf @NONAME_187

if

  not is_key_pressed 16

  00D6: if and

not SAMP.ChatInputOpened(16)

jf @NONAME_180

1@ = 2

018C: play_sound 1056 at 0 0 0


:NONAME_180

jump @NONAME_332


:NONAME_187

if

  2@ == 0

jf @NONAME_318

if

80E1:   not player 0 pressed_key 16

jf @NONAME_311

1@ = 0

0@ = Actor.CurrentCar($PLAYER_ACTOR)

02E3: 4@ = car 0@ speed

if

  4@ > 1.0

jf @NONAME_311

4@ += 0.25

2@ = 1

wait 100

018C: play_sound 1057 at 0 0 0

03CC: enable_car 0@ stuck_check_distance_to 1.0 time_to 500


:NONAME_311

jump @NONAME_332


:NONAME_318

1@ = 0

gosub @NONAME_614


:NONAME_332

if

  2@ == 1

jf @NONAME_575

if

83CE:   not car 0@ stuck

jf @NONAME_568

02E3: 3@ = car 0@ speed

0087: 5@ = 4@ // (float)

0063: 5@ -= 3@ // (float)

if

  0 > 5@

jf @NONAME_422

6@ = 28

jump @NONAME_429


:NONAME_422

6@ = 32


:NONAME_429

if and

80E1:   not player 0 pressed_key 14

80E1:   not player 0 pressed_key 16

jf @NONAME_554

0097: make 5@ absolute_float

5@ *= 10.0

if

  5@ > 90.0

jf @NONAME_498

5@ = 90.0


:NONAME_498

02F6: 8@ = sine 5@ // (float)

8@ *= 255.0

0092: 9@ = float 8@ to_integer

0A8E: 11@ = 10@ + 6@ // int

write_memory 11@ size 2 value 9@ virtual_protect 0

jump @NONAME_561


:NONAME_554

gosub @NONAME_614


:NONAME_561

jump @NONAME_575


:NONAME_568

gosub @NONAME_614


:NONAME_575

jump @NONAME_607


:NONAME_582

if

  2@ == 1

jf @NONAME_607

gosub @NONAME_614


:NONAME_607

jump @NONAME_55


:NONAME_614

018C: play_sound 1057 at 0 0 0

wait 100

018C: play_sound 1056 at 0 0 0

2@ = 0

03CD: disable_car 0@ stuck_check

return
 

D3.Pheonix

🎹
Модератор
2,868
1,646
Только зачем свое говно вставлять нерабочее ? Скинул бы ссылку на оригинал
CLEO:
{$CLEO .cs}
{$USE CLEO+}

00D6: if
0AA9:   is_game_version_original
004D: jump_if_false @Noname_30
0006: 7@ = 5503856
0002: jump @Noname_40

:Noname_30
0006: 7@ = 5505040

:Noname_40
0AA7: call_function 7@ num_params 1 pop 1 0 10@

:Noname_55
0001: wait 0 ms
00D6: if and
00DF:   actor $PLAYER_ACTOR driving
84C8:   not actor $PLAYER_ACTOR driving_flying_vehicle
004D: jump_if_false @Noname_582
00D6: if
0039:   1@ == 0
004D: jump_if_false @Noname_128
if and
0AB0:   key_pressed 16
8B21:   not  samp is_chat_opened
004D: jump_if_false @Noname_121
0006: 1@ = 1

:Noname_121
0002: jump @Noname_332

:Noname_128
00D6: if
0039:   1@ == 1
004D: jump_if_false @Noname_187
00D6: if
8AB0:   not key_pressed 16
004D: jump_if_false @Noname_180
0006: 1@ = 2
018C: play_sound 1056 at 0 0 0

:Noname_180
0002: jump @Noname_332

:Noname_187
00D6: if
0039:   2@ == 0
004D: jump_if_false @Noname_318
00D6: if
80E1:   not player 0 pressed_key 16
004D: jump_if_false @Noname_311
0006: 1@ = 0
03C0: 0@ = actor $PLAYER_ACTOR car
02E3: 4@ = car 0@ speed
00D6: if
0021:   4@ > 1.0
004D: jump_if_false @Noname_311
000B: 4@ += 0.25
0006: 2@ = 1
0001: wait 100 ms
018C: play_sound 1057 at 0 0 0
03CC: enable_car 0@ stuck_check_distance_to 1.0 time_to 500

:Noname_311
0002: jump @Noname_332

:Noname_318
0006: 1@ = 0
0050: gosub @Noname_614

:Noname_332
00D6: if
0039:   2@ == 1
004D: jump_if_false @Noname_575
00D6: if
83CE:   not car 0@ stuck
004D: jump_if_false @Noname_568
02E3: 3@ = car 0@ speed
0087: 5@ = 4@ // (float)
0063: 5@ -= 3@ // (float)
00D6: if
001B:   0 > 5@
004D: jump_if_false @Noname_422
0006: 6@ = 28
0002: jump @Noname_429

:Noname_422
0006: 6@ = 32

:Noname_429
00D6: if and
80E1:   not player 0 pressed_key 14
80E1:   not player 0 pressed_key 16
004D: jump_if_false @Noname_554
0097: make 5@ absolute_float
0013: 5@ *= 10.0
00D6: if
0021:   5@ > 90.0
004D: jump_if_false @Noname_498
0007: 5@ = 90.0

:Noname_498
02F6: 8@ = sine 5@ // (float)
0013: 8@ *= 255.0
0092: 9@ = float 8@ to_integer
0A8E: 11@ = 10@ + 6@ // int
0A8C: write_memory 11@ size 2 value 9@ virtual_protect 0
0002: jump @Noname_561

:Noname_554
0050: gosub @Noname_614

:Noname_561
0002: jump @Noname_575

:Noname_568
0050: gosub @Noname_614

:Noname_575
0002: jump @Noname_607

:Noname_582
00D6: if
0039:   2@ == 1
004D: jump_if_false @Noname_607
0050: gosub @Noname_614

:Noname_607
0002: jump @Noname_55

:Noname_614
018C: play_sound 1057 at 0 0 0
0001: wait 100 ms
018C: play_sound 1056 at 0 0 0
0006: 2@ = 0
03CD: disable_car 0@ stuck_check
0051: return
 

Saucehil

Новичок
Автор темы
10
4
Только зачем свое говно вставлять нерабочее ? Скинул бы ссылку на оригинал
CLEO:
{$CLEO .cs}
{$USE CLEO+}

00D6: if
0AA9:   is_game_version_original
004D: jump_if_false @Noname_30
0006: 7@ = 5503856
0002: jump @Noname_40

:Noname_30
0006: 7@ = 5505040

:Noname_40
0AA7: call_function 7@ num_params 1 pop 1 0 10@

:Noname_55
0001: wait 0 ms
00D6: if and
00DF:   actor $PLAYER_ACTOR driving
84C8:   not actor $PLAYER_ACTOR driving_flying_vehicle
004D: jump_if_false @Noname_582
00D6: if
0039:   1@ == 0
004D: jump_if_false @Noname_128
if and
0AB0:   key_pressed 16
8B21:   not  samp is_chat_opened
004D: jump_if_false @Noname_121
0006: 1@ = 1

:Noname_121
0002: jump @Noname_332

:Noname_128
00D6: if
0039:   1@ == 1
004D: jump_if_false @Noname_187
00D6: if
8AB0:   not key_pressed 16
004D: jump_if_false @Noname_180
0006: 1@ = 2
018C: play_sound 1056 at 0 0 0

:Noname_180
0002: jump @Noname_332

:Noname_187
00D6: if
0039:   2@ == 0
004D: jump_if_false @Noname_318
00D6: if
80E1:   not player 0 pressed_key 16
004D: jump_if_false @Noname_311
0006: 1@ = 0
03C0: 0@ = actor $PLAYER_ACTOR car
02E3: 4@ = car 0@ speed
00D6: if
0021:   4@ > 1.0
004D: jump_if_false @Noname_311
000B: 4@ += 0.25
0006: 2@ = 1
0001: wait 100 ms
018C: play_sound 1057 at 0 0 0
03CC: enable_car 0@ stuck_check_distance_to 1.0 time_to 500

:Noname_311
0002: jump @Noname_332

:Noname_318
0006: 1@ = 0
0050: gosub @Noname_614

:Noname_332
00D6: if
0039:   2@ == 1
004D: jump_if_false @Noname_575
00D6: if
83CE:   not car 0@ stuck
004D: jump_if_false @Noname_568
02E3: 3@ = car 0@ speed
0087: 5@ = 4@ // (float)
0063: 5@ -= 3@ // (float)
00D6: if
001B:   0 > 5@
004D: jump_if_false @Noname_422
0006: 6@ = 28
0002: jump @Noname_429

:Noname_422
0006: 6@ = 32

:Noname_429
00D6: if and
80E1:   not player 0 pressed_key 14
80E1:   not player 0 pressed_key 16
004D: jump_if_false @Noname_554
0097: make 5@ absolute_float
0013: 5@ *= 10.0
00D6: if
0021:   5@ > 90.0
004D: jump_if_false @Noname_498
0007: 5@ = 90.0

:Noname_498
02F6: 8@ = sine 5@ // (float)
0013: 8@ *= 255.0
0092: 9@ = float 8@ to_integer
0A8E: 11@ = 10@ + 6@ // int
0A8C: write_memory 11@ size 2 value 9@ virtual_protect 0
0002: jump @Noname_561

:Noname_554
0050: gosub @Noname_614

:Noname_561
0002: jump @Noname_575

:Noname_568
0050: gosub @Noname_614

:Noname_575
0002: jump @Noname_607

:Noname_582
00D6: if
0039:   2@ == 1
004D: jump_if_false @Noname_607
0050: gosub @Noname_614

:Noname_607
0002: jump @Noname_55

:Noname_614
018C: play_sound 1057 at 0 0 0
0001: wait 100 ms
018C: play_sound 1056 at 0 0 0
0006: 2@ = 0
03CD: disable_car 0@ stuck_check
0051: return
А в чём проблема моего, это и есть ориг только я на шифт поменял кнопку и попросил добавить проверку чата, что-бы когда едешь можно было тыкать на шифт и писать большими буквами, ну типо. Всё работало без проблем, ток с чатом залупа была