Вопросы по CLEO-скриптингу

AXE_CAMERON

Участник
66
0
Можно как тот блокировать нажатие определённой клавиши? (Чтобы вообще не началась)
 

hnnssy

Известный
Друг
2,684
2,749
дайте координаты грув баллас ацтек и рифу и вагос
заходишь в игру, едешь на нужное тебе место и вводишь /save, координаты сохранятся в gtasa user files/samp/savedpositions.txt
респы на всех серверах в разных местах мда
 

LuckyPlayer

Новичок
8
0
Всем привет, возможно многие знают самое популярное клео valdan666, у меня такой вопрос. Я хотел поменять команду активаций в его скрипте. С помощу SunnyBuilder. Изменяю, а потом, когда нажимаю компилировать. А точнее f6. То мне выдают эту ошибку: "Неизвестная команда call @GetSampBase 0". Можно узнать причину? Можете помочь? Заранее спасибо!
 

astap_

Известный
Всефорумный модератор
626
597
Всем привет, возможно многие знают самое популярное клео valdan666, у меня такой вопрос. Я хотел поменять команду активаций в его скрипте. С помощу SunnyBuilder. Изменяю, а потом, когда нажимаю компилировать. А точнее f6. То мне выдают эту ошибку: "Неизвестная команда call @GetSampBase 0". Можно узнать причину? Можете помочь? Заранее спасибо!
у тебя нет кейвордов. https://blast.hk/attachments/6831/
 
  • Нравится
Реакции: cursed

cursed

Новичок
8
1
Хочу компилировать скрипт и пишет "Недостаточно параметров. Ожидалось 6 параметров." Как фиксить?
 

astap_

Известный
Всефорумный модератор
626
597
Хочу компилировать скрипт и пишет "Недостаточно параметров. Ожидалось 6 параметров." Как фиксить?
значит опкод требует 6 параметров, а у тебя меньше либо больше. Скинь код если не можешь разобраться.
 
  • Нравится
Реакции: cursed

cursed

Новичок
8
1
значит опкод требует 6 параметров, а у тебя меньше либо больше. Скинь код если не можешь разобраться.
брат уже другая ошибка , че делать в душе не ебу
ru1Rn1VohD8.jpg

делаю первый раз скрипт , изменяю разработки друга под себя

{$CLEO}

0000: cursed

1
repeat
wait 0
until 0AFA:
wait 1000
0AF8: samp add_message_to_chat "{C35831}[Sbiv] Óñïåøíî çàãðóæåí. Íàñòðîéêè: /sbiv Àâòîð: {808080}cursed" color -1

const
DIALOG_STYLE_MSGBOX = 0
DIALOG_STYLE_INPUT = 1
DIALOG_STYLE_LIST = 2
end

0B34: samp register_client_command "sbiv" to_label @sbiv1


:reg
00D6: if
0AAB: file_exists "CLEO\Sbiv.ini"
004D: jump_if_false @inifile
0AF0: 1@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "Key"
0AF0: 2@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "ExitCarSbiv"
0AF0: 3@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "AirSbiv"


:cursed
wait 0

IF AND
8B21: not is_chat_opened
8B4C: not samp is_dialog_active -1
not Actor.Driving($PLAYER_ACTOR)
0AB0: key_pressed 1@
THEN
0AF9: samp say_msg "/anims 3"
wait 50
0AF9: samp say_msg "/usemed "
wait 100
0C72: set_virtual_key 13 down 1
0001: wait 50 ms
0C72: set_virtual_key 13 down 0
wait 150
end

IF AND
8B21: not is_chat_opened
8B4C: not samp is_dialog_active -1
Actor.Driving($PLAYER_ACTOR)
0AB0: key_pressed 1@
THEN
0AF9: samp say_msg "/usemed "
wait 150
end

IF AND
3@ == 1
0818: actor $PLAYER_ACTOR in_air
THEN
0B2B: samp 0@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B57: samp 11@ = player 0@ animation_id
IF
11@ == 1130
THEN
say "/anims 3"
wait 100
0C72: set_virtual_key 13 down 1
wait 50
0C72: set_virtual_key 13 down 0
wait 500
end
end

IF AND
2@ == 1
8B21: not is_chat_opened
00DF: actor $PLAYER_ACTOR driving
8B4C: not samp is_dialog_active -1
THEN
03C0: 25@ = actor $PLAYER_ACTOR car
02E3: 26@ = car 25@ speed
if
0031: 26@ >= 15.0
then
00D6: if or
0AB0: key_pressed 70
0AB0: key_pressed 13
then
wait 350
say "/anims 3"
wait 100
0C72: set_virtual_key 13 down 1
wait 50
0C72: set_virtual_key 13 down 0
end
end
end

IF
20@ == 1
THEN
0AC6: 19@ = label @text10 offset
0B3B: samp show_dialog id 400 caption "{C35831}Sbiv for AZRP | {808080}Àâòîð: cursed" text 19@ button_1 "Âûáðàòü" button_2 "Çàêðûòü" style DIALOG_STYLE_LIST

repeat
wait 0
until 0B3C: samp is_dialog_responded id 400 button 17@ list_item 18@ input_text 0

if 17@ == 1
then
IF 18@ == 0
THEN
jump @setkey
end

IF 18@ == 1
THEN
jump @keyid
end

IF 18@ == 3
THEN
0AF1: write_int 1 to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "AirSbiv"
0AF0: 3@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "AirSbiv"
018C: play_sound 1057 at 0.0 0.0 0.0
20@ = 4
jump @cursed
end

IF 18@ == 2
THEN
0AF1: write_int 1 to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "ExitCarSbiv"
0AF0: 2@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "ExitCarSbiv"
018C: play_sound 1057 at 0.0 0.0 0.0
20@ = 3
jump @cursed
end
end
END

IF
20@ == 2
THEN
0AC6: 19@ = label @text11 offset
0B3B: samp show_dialog id 401 caption "{C35831}Sbiv for AZRP {CD5C5C}| {808080}Àâòîð: cursed" text 19@ button_1 "Âûáðàòü" button_2 "Çàêðûòü" style DIALOG_STYLE_LIST

repeat
wait 0
until 0B3C: samp is_dialog_responded id 401 button 17@ list_item 18@ input_text 0

if 17@ == 1
then
IF 18@ == 0
THEN
jump @setkey
end

IF 18@ == 1
THEN
jump @keyid
end

IF 18@ == 3
THEN
0AF1: write_int 0 to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "AirSbiv"
0AF0: 3@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "AirSbiv"
018C: play_sound 1055 at 0.0 0.0 0.0
20@ = 3
jump @cursed
end

IF 18@ == 2
THEN
0AF1: write_int 0 to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "ExitCarSbiv"
018C: play_sound 1055 at 0.0 0.0 0.0
0AF0: 2@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "ExitCarSbiv"
20@ = 4
jump @cursed
end
end
END


IF
20@ == 3
THEN

0AC6: 19@ = label @text12 offset
0B3B: samp show_dialog id 402 caption "{C35831}Sbiv for AZRP +| {808080}Àâòîð: cursed" text 19@ button_1 "Âûáðàòü" button_2 "Çàêðûòü" style DIALOG_STYLE_LIST

repeat
wait 0
until 0B3C: samp is_dialog_responded id 402 button 17@ list_item 18@ input_text 0

if 17@ == 1
then
IF 18@ == 0
THEN
jump @setkey
end

IF 18@ == 1
THEN
jump @keyid
end

IF 18@ == 3
THEN
0AF1: write_int 1 to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "AirSbiv"
0AF0: 3@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "AirSbiv"
018C: play_sound 1057 at 0.0 0.0 0.0
20@ = 2
jump @cursed
end

IF 18@ == 2
THEN
0AF1: write_int 0 to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "ExitCarSbiv"
0AF0: 2@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "ExitCarSbiv"
018C: play_sound 1055 at 0.0 0.0 0.0
20@ = 1
jump @cursed
end

end
END


IF
20@ == 4
THEN

0AC6: 19@ = label @text13 offset
0B3B: samp show_dialog id 403 caption "{C35831}Sbiv for AZRP | {808080}Àâòîð: cursed" text 19@ button_1 "Âûáðàòü" button_2 "Çàêðûòü" style DIALOG_STYLE_LIST

repeat
wait 0
until 0B3C: samp is_dialog_responded id 403 button 17@ list_item 18@ input_text 0

if 17@ == 1
then
IF 18@ == 0
THEN
jump @setkey
end

IF 18@ == 1
THEN
jump @keyid
end

IF 18@ == 3
THEN
0AF1: write_int 0 to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "AirSbiv"
0AF0: 3@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "AirSbiv"
018C: play_sound 1055 at 0.0 0.0 0.0
20@ = 1
jump @cursed
end

IF 18@ == 2
THEN
0AF1: write_int 1 to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "ExitCarSbiv"
0AF0: 2@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "ExitCarSbiv"
018C: play_sound 1057 at 0.0 0.0 0.0
20@ = 2
jump @cursed
end

end
END

20@ = 0
jump @cursed



:sbiv1
0AF0: 2@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "ExitCarSbiv"
0AF0: 3@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "AirSbiv"

IF AND
2@ == 0
3@ == 0
THEN
20@ = 1
END

IF AND
2@ == 1
3@ == 1
THEN
20@ = 2
END

:sbiv3
IF AND
2@ == 1
3@ == 0
THEN
20@ = 3
END

:sbiv4
IF AND
2@ == 0
3@ == 1
THEN
20@ = 4
END

0B43: samp cmd_ret


:inifile
0AF1: write_int 81 to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "Key"
0AF1: write_int 1 to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "AirSbiv"
0AF1: write_int 1 to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "ExitCarSbiv"
0002: jump @Reg


:keyid
0AC6: 19@ = label @text6 offset
0B3B: samp show_dialog id 501 caption "{C35831}Sbiv for AZRP | {808080}Àâòîð: cursed" text 19@ button_1 "Âûáðàòü" button_2 "Çàêðûòü" style DIALOG_STYLE_LIST

repeat
wait 0
until 0B3C: samp is_dialog_responded id 501 button 17@ list_item 18@ input_text 0

IF
17@ == 1
THEN
IF
18@ == 0
THEN
0AC6: 19@ = label @text1 offset
0B3B: samp show_dialog id 502 caption "Áóêâû îò {6A5ACD}A {FFFFFF}äî {6A5ACD}Z" text 19@ button_1 "Çàêðûòü" button_2 "" style DIALOG_STYLE_MSGBOX
END

IF
18@ == 1
THEN
0AC6: 19@ = label @text2 offset
0B3B: samp show_dialog id 503 caption "Öèôðû" text 19@ button_1 "Çàêðûòü" button_2 "" style DIALOG_STYLE_MSGBOX
END

IF
18@ == 2
THEN
0AC6: 19@ = label @text3 offset
0B3B: samp show_dialog id 504 caption "Öèôðû ({6A5ACD}Num Lock{6A5ACD})" text 19@ button_1 "Çàêðûòü" button_2 "" style DIALOG_STYLE_MSGBOX
END

IF
18@ == 3
THEN
0AC6: 19@ = label @text4 offset
0B3B: samp show_dialog id 505 caption "Êëàâèøè ({6A5ACD}F1{6A5ACD}-{6A5ACD}F12{6A5ACD})" text 19@ button_1 "Çàêðûòü" button_2 "" style DIALOG_STYLE_MSGBOX
END

IF
18@ == 4
THEN
0AC6: 19@ = label @text5 offset
0B3B: samp show_dialog id 506 caption "Îñòàëüíûå êëàâèøè" text 19@ button_1 "Çàêðûòü" button_2 "" style DIALOG_STYLE_MSGBOX
END

END
20@ = 0
jump @cursed

:setkey
0B3B: samp show_dialog id 500 caption "{C35831}Sbiv for AZRP | {808080}Àâòîð: cursed" text "{FFFFFF}Óêàæèòå {FF0000}[ID] {FFFFFF}êëàâèøè ñáèâà àïòå÷êè:" button_1 "Âûáðàòü" button_2 "Çàêðûòü" style DIALOG_STYLE_INPUT 0xA
0ac8: alloc 16@ size 128
repeat
wait 0
until 0B3C: samp is_dialog_responded id 500 button 17@ list_item 0 input_text 16@

IF
17@ == 1
THEN
IF
0AD4: 16@ = scan_string 16@ format "%d" 2@
THEN
0AF1: write_int 2@ to_ini_file "cleo\Sbiv.ini" section "Sbiv" key "Key"
0AF0: 1@ = get_int_from_ini_file "cleo\Sbiv.ini" section "Sbiv" key "Key"
ELSE
0AF8: samp add_message_to_chat "{6A5ACD}[Sbiv] {FF0000}Çíà÷åíèå ââåäåíî íåâåðíî! {FF0000}Íåîáõîäèìî óêàçàòü [ID] êëàâèøè™" color -1
0ac9: free 16@
jump @setkey
end

END
0ac9: free 16@
20@ = 0
jump @cursed


:end
0B43: samp cmd_ret

:text1
hex
7b 32 45 46 45 32 45 7d 5b 36 35 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
41 5d 20 20 20 0d 0a 7b 32 45 46 45 32 45 7d 5b
36 36 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30
30 42 46 46 46 7d 5b 42 5d 20 0d 0a 7b 32 45 46
45 32 45 7d 5b 36 37 5d 20 7b 46 46 46 46 46 46
7d 2d 20 7b 30 30 42 46 46 46 7d 5b 43 5d 20 0d
0a 7b 32 45 46 45 32 45 7d 5b 36 38 5d 20 7b 46
46 46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d
5b 44 5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b 36
39 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30
42 46 46 46 7d 5b 45 5d 20 0d 0a 7b 32 45 46 45
32 45 7d 5b 37 30 5d 20 7b 46 46 46 46 46 46 7d
2d 20 7b 30 30 42 46 46 46 7d 5b 46 5d 20 0d 0a
7b 32 45 46 45 32 45 7d 5b 37 31 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
47 5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b 37 32
5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42
46 46 46 7d 5b 48 5d 20 0d 0a 7b 32 45 46 45 32
45 7d 5b 37 33 5d 20 7b 46 46 46 46 46 46 7d 2d
20 7b 30 30 42 46 46 46 7d 5b 49 5d 20 0d 0a 7b
32 45 46 45 32 45 7d 5b 37 34 5d 20 7b 46 46 46
46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 4a
5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b 37 35 5d
20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42 46
46 46 7d 5b 4b 5d 0d 0a 7b 32 45 46 45 32 45 7d
5b 37 36 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b
30 30 42 46 46 46 7d 5b 4c 5d 0d 0a 7b 32 45 46
45 32 45 7d 5b 37 37 5d 20 7b 46 46 46 46 46 46
7d 2d 20 7b 30 30 42 46 46 46 7d 5b 4d 5d 0d 0a
7b 32 45 46 45 32 45 7d 5b 37 38 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
4e 5d 0d 0a 7b 32 45 46 45 32 45 7d 5b 37 39 5d
20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42 46
46 46 7d 5b 4f 5d 0d 0a 7b 32 45 46 45 32 45 7d
5b 38 30 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b
30 30 42 46 46 46 7d 5b 50 5d 0d 0a 7b 32 45 46
45 32 45 7d 5b 38 31 5d 20 7b 46 46 46 46 46 46
7d 2d 20 7b 30 30 42 46 46 46 7d 5b 51 5d 0d 0a
7b 32 45 46 45 32 45 7d 5b 38 32 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
52 5d 0d 0a 7b 32 45 46 45 32 45 7d 5b 38 33 5d
20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42 46
46 46 7d 5b 53 5d 0d 0a 7b 32 45 46 45 32 45 7d
5b 38 34 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b
30 30 42 46 46 46 7d 5b 54 5d 0d 0a 7b 32 45 46
45 32 45 7d 5b 38 35 5d 20 7b 46 46 46 46 46 46
7d 2d 20 7b 30 30 42 46 46 46 7d 5b 55 5d 0d 0a
7b 32 45 46 45 32 45 7d 5b 38 36 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
56 5d 0d 0a 7b 32 45 46 45 32 45 7d 5b 38 37 5d
20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42 46
46 46 7d 5b 57 5d 0d 0a 7b 32 45 46 45 32 45 7d
5b 38 38 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b
30 30 42 46 46 46 7d 5b 58 5d 0d 0a 7b 32 45 46
45 32 45 7d 5b 38 39 5d 20 7b 46 46 46 46 46 46
7d 2d 20 7b 30 30 42 46 46 46 7d 5b 59 5d 0d 0a
7b 32 45 46 45 32 45 7d 5b 39 30 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
5a 5d 00
end

:text2
hex
7b 32 45 46 45 32 45 7d 5b 34 38 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
30 5d 20 20 20 0d 0a 7b 32 45 46 45 32 45 7d 5b
34 39 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30
30 42 46 46 46 7d 5b 31 5d 20 0d 0a 7b 32 45 46
45 32 45 7d 5b 35 30 5d 20 7b 46 46 46 46 46 46
7d 2d 20 7b 30 30 42 46 46 46 7d 5b 32 5d 20 0d
0a 7b 32 45 46 45 32 45 7d 5b 35 31 5d 20 7b 46
46 46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d
5b 33 5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b 35
32 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30
42 46 46 46 7d 5b 34 5d 20 0d 0a 7b 32 45 46 45
32 45 7d 5b 35 33 5d 20 7b 46 46 46 46 46 46 7d
2d 20 7b 30 30 42 46 46 46 7d 5b 35 5d 20 0d 0a
7b 32 45 46 45 32 45 7d 5b 35 34 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
36 5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b 35 35
5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42
46 46 46 7d 5b 37 5d 20 0d 0a 7b 32 45 46 45 32
45 7d 5b 35 36 5d 20 7b 46 46 46 46 46 46 7d 2d
20 7b 30 30 42 46 46 46 7d 5b 38 5d 20 0d 0a 7b
32 45 46 45 32 45 7d 5b 35 37 5d 20 7b 46 46 46
46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 39
5d 20 00
end

:text3
hex
7b 32 45 46 45 32 45 7d 5b 39 36 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
30 5d 20 20 20 0d 0a 7b 32 45 46 45 32 45 7d 5b
39 37 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30
30 42 46 46 46 7d 5b 31 5d 20 0d 0a 7b 32 45 46
45 32 45 7d 5b 39 38 5d 20 7b 46 46 46 46 46 46
7d 2d 20 7b 30 30 42 46 46 46 7d 5b 32 5d 20 0d
0a 7b 32 45 46 45 32 45 7d 5b 39 39 5d 20 7b 46
46 46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d
5b 33 5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b 31
30 30 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30
30 42 46 46 46 7d 5b 34 5d 20 0d 0a 7b 32 45 46
45 32 45 7d 5b 31 30 31 5d 20 7b 46 46 46 46 46
46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 35 5d 20
0d 0a 7b 32 45 46 45 32 45 7d 5b 31 30 32 5d 20
7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42 46 46
46 7d 5b 36 5d 20 0d 0a 7b 32 45 46 45 32 45 7d
5b 31 30 33 5d 20 7b 46 46 46 46 46 46 7d 2d 20
7b 30 30 42 46 46 46 7d 5b 37 5d 20 0d 0a 7b 32
45 46 45 32 45 7d 5b 31 30 34 5d 20 7b 46 46 46
46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 38
5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b 31 30 35
5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42
46 46 46 7d 5b 39 5d 20 0d 0a 7b 32 45 46 45 32
45 7d 5b 31 30 36 5d 20 7b 46 46 46 46 46 46 7d
2d 20 7b 30 30 42 46 46 46 7d 5b 2a 5d 0d 0a 7b
32 45 46 45 32 45 7d 5b 31 30 37 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
2b 5d 0d 0a 7b 32 45 46 45 32 45 7d 5b 31 30 39
5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42
46 46 46 7d 5b 2d 5d 0d 0a 7b 32 45 46 45 32 45
7d 5b 31 31 31 5d 20 7b 46 46 46 46 46 46 7d 2d
20 7b 30 30 42 46 46 46 7d 5b 2f 5d 0d 0a 7b 32
45 46 45 32 45 7d 5b 31 31 30 5d 20 7b 46 46 46
46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 2e
5d 00
end

:text4
hex
7b 32 45 46 45 32 45 7d 5b 31 31 32 5d 20 7b 46
46 46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d
5b 46 31 5d 20 20 20 0d 0a 7b 32 45 46 45 32 45
7d 5b 31 31 33 5d 20 7b 46 46 46 46 46 46 7d 2d
20 7b 30 30 42 46 46 46 7d 5b 46 32 5d 20 0d 0a
7b 32 45 46 45 32 45 7d 5b 31 31 34 5d 20 7b 46
46 46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d
5b 46 33 5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b
31 31 35 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b
30 30 42 46 46 46 7d 5b 46 34 5d 20 0d 0a 7b 32
45 46 45 32 45 7d 5b 31 31 36 5d 20 7b 46 46 46
46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 46
35 5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b 31 31
37 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30
42 46 46 46 7d 5b 46 36 5d 20 0d 0a 7b 32 45 46
45 32 45 7d 5b 31 31 38 5d 20 7b 46 46 46 46 46
46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 46 37 5d
20 0d 0a 7b 32 45 46 45 32 45 7d 5b 31 31 39 5d
20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42 46
46 46 7d 5b 46 38 5d 20 0d 0a 7b 32 45 46 45 32
45 7d 5b 31 32 30 5d 20 7b 46 46 46 46 46 46 7d
2d 20 7b 30 30 42 46 46 46 7d 5b 46 39 5d 20 0d
0a 7b 32 45 46 45 32 45 7d 5b 31 32 31 5d 20 7b
46 46 46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46
7d 5b 46 31 30 5d 20 0d 0a 7b 32 45 46 45 32 45
7d 5b 31 32 32 5d 20 7b 46 46 46 46 46 46 7d 2d
20 7b 30 30 42 46 46 46 7d 5b 46 31 31 5d 0d 0a
7b 32 45 46 45 32 45 7d 5b 31 32 33 5d 20 7b 46
46 46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d
5b 46 31 32 5d 00
end

:text5
hex
7b 32 45 46 45 32 45 7d 5b 38 5d 20 7b 46 46 46
46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 42
61 63 6b 73 70 61 63 65 5d 20 20 20 0d 0a 7b 32
45 46 45 32 45 7d 5b 39 5d 20 7b 46 46 46 46 46
46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 54 61 62
5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b 31 33 5d
20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42 46
46 46 7d 5b 45 6e 74 65 72 5d 20 0d 0a 7b 32 45
46 45 32 45 7d 5b 31 36 5d 20 7b 46 46 46 46 46
46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 53 68 69
66 74 5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b 31
37 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30 30
42 46 46 46 7d 5b 43 74 72 6c 5d 20 0d 0a 7b 32
45 46 45 32 45 7d 5b 31 39 5d 20 7b 46 46 46 46
46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 50 61
75 73 65 5d 20 0d 0a 7b 32 45 46 45 32 45 7d 5b
32 30 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30
30 42 46 46 46 7d 5b 43 61 70 73 4c 6f 63 6b 5d
20 0d 0a 7b 32 45 46 45 32 45 7d 5b 32 37 5d 20
7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42 46 46
46 7d 5b 45 73 63 5d 20 0d 0a 7b 32 45 46 45 32
45 7d 5b 33 32 5d 20 7b 46 46 46 46 46 46 7d 2d
20 7b 30 30 42 46 46 46 7d 5b 53 70 61 63 65 5d
20 0d 0a 7b 32 45 46 45 32 45 7d 5b 33 33 5d 20
7b 46 46 46 46 46 46 7d 2d 20 7b 30 30 42 46 46
46 7d 5b 50 61 67 65 20 55 70 5d 20 0d 0a 7b 32
45 46 45 32 45 7d 5b 33 34 5d 20 7b 46 46 46 46
46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b 50 61
67 65 20 44 6f 77 6e 5d 0d 0a 7b 32 45 46 45 32
45 7d 5b 33 35 5d 20 7b 46 46 46 46 46 46 7d 2d
20 7b 30 30 42 46 46 46 7d 5b 45 6e 64 5d 0d 0a
7b 32 45 46 45 32 45 7d 5b 33 36 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
48 6f 6d 65 5d 0d 0a 7b 32 45 46 45 32 45 7d 5b
34 35 5d 20 7b 46 46 46 46 46 46 7d 2d 20 7b 30
30 42 46 46 46 7d 5b 49 6e 73 65 72 74 5d 0d 0a
7b 32 45 46 45 32 45 7d 5b 34 36 5d 20 7b 46 46
46 46 46 46 7d 2d 20 7b 30 30 42 46 46 46 7d 5b
44 65 6c 65 74 65 5d 0d 0a 7b 32 45 46 45 32 45
7d 5b 31 34 35 5d 20 7b 46 46 46 46 46 46 7d 2d
20 7b 30 30 42 46 46 46 7d 5b 53 63 72 6f 6c 6c
20 4c 6f 63 6b 5d 0d 0a 7b 32 45 46 45 32 45 7d
5b 31 34 34 5d 20 7b 46 46 46 46 46 46 7d 2d 20
7b 30 30 42 46 46 46 7d 5b 4e 75 6d 20 4c 6f 63
6b 5d 00
end

:text6
hex
7b 46 46 46 46 46 46 7d ca eb e0 e2 e8 f8 e8 20
ee f2 20 7b 46 46 30 30 30 30 7d 41 20 7b 46 46
46 46 46 46 7d e4 ee 20 7b 46 46 30 30 30 30 7d
5a 0d 0a 7b 46 46 46 46 46 46 7d d6 e8 f4 f0 fb
0d 0a 7b 46 46 46 46 46 46 7d d6 e8 f4 f0 fb 20
28 7b 46 46 30 30 30 30 7d 4e 75 6d 20 4c 6f 63
6b 7b 46 46 46 46 46 46 7d 29 0d 0a 7b 46 46 46
46 46 46 7d ca eb e0 e2 e8 f8 e8 20 28 7b 46 46
30 30 30 30 7d 46 31 7b 46 46 46 46 46 46 7d 2d
7b 46 46 30 30 30 30 7d 46 31 32 7b 46 46 46 46
46 46 7d 29 0d 0a 7b 46 46 46 46 46 46 7d ce f1
f2 e0 eb fc ed fb e5 20 ea eb e0 e2 e8 f8 e8 00
end

:text10
hex
7b 46 46 46 46 46 46 7d c8 e7 ec e5 ed e8 f2 fc
20 ea eb e0 e2 e8 f8 f3 20 f1 e1 e8 e2 e0 20 e0
ef f2 e5 f7 ea e8 20 5b 7b 46 46 30 30 30 30 7d
49 44 7b 46 46 46 46 46 46 7d 5d 0d 0a 7b 46 46
46 46 46 46 7d 5b 7b 46 46 30 30 30 30 7d 49 44
7b 46 46 46 46 46 46 7d 5d 20 ea eb e0 e2 e8 f8
0d 0a 7b 46 46 46 46 46 46 7d 43 61 72 45 78 69
74 53 62 69 76 20 5b 7b 41 34 41 34 41 34 7d 2f
61 6e 69 6d 20 31 20 ef f0 e8 20 e2 fb ef e0 e4
e5 ed e8 e8 20 e8 e7 20 ec e0 f8 e8 ed fb 7b 46
46 46 46 46 46 7d 5d 20 2d 20 7b 46 46 30 30 30
30 7d c4 c5 c0 ca d2 c8 c2 c8 d0 ce c2 c0 cd 0d
0a 7b 46 46 46 46 46 46 7d 41 69 72 53 62 69 76
20 5b 7b 41 34 41 34 41 34 7d 2f 61 6e 69 6d 20
31 20 ef f0 e8 20 ef e0 e4 e5 ed e8 e8 7b 46 46
46 46 46 46 7d 5d 20 2d 20 7b 46 46 30 30 30 30
7d c4 c5 c0 ca d2 c8 c2 c8 d0 ce c2 c0 cd 00
end

:text11
hex
7b 46 46 46 46 46 46 7d c8 e7 ec e5 ed e8 f2 fc
20 ea eb e0 e2 e8 f8 f3 20 f1 e1 e8 e2 e0 20 e0
ef f2 e5 f7 ea e8 20 5b 7b 46 46 30 30 30 30 7d
49 44 7b 46 46 46 46 46 46 7d 5d 0d 0a 7b 46 46
46 46 46 46 7d 5b 7b 46 46 30 30 30 30 7d 49 44
7b 46 46 46 46 46 46 7d 5d 20 ea eb e0 e2 e8 f8
0d 0a 7b 46 46 46 46 46 46 7d 43 61 72 45 78 69
74 53 62 69 76 20 5b 7b 41 34 41 34 41 34 7d 2f
61 6e 69 6d 20 31 20 ef f0 e8 20 e2 fb ef e0 e4
e5 ed e8 e8 20 e8 e7 20 ec e0 f8 e8 ed fb 7b 46
46 46 46 46 46 7d 5d 20 2d 20 7b 34 30 46 46 30
30 7d c0 ca d2 c8 c2 c8 d0 ce c2 c0 cd 0d 0a 7b
46 46 46 46 46 46 7d 41 69 72 53 62 69 76 20 5b
7b 41 34 41 34 41 34 7d 2f 61 6e 69 6d 20 31 20
ef f0 e8 20 ef e0 e4 e5 ed e8 e8 7b 46 46 46 46
46 46 7d 5d 20 2d 20 7b 34 30 46 46 30 30 7d c0
ca d2 c8 c2 c8 d0 ce c2 c0 cd 00
end

:text12
hex
7b 46 46 46 46 46 46 7d c8 e7 ec e5 ed e8 f2 fc
20 ea eb e0 e2 e8 f8 f3 20 f1 e1 e8 e2 e0 20 e0
ef f2 e5 f7 ea e8 20 5b 7b 46 46 30 30 30 30 7d
49 44 7b 46 46 46 46 46 46 7d 5d 0d 0a 7b 46 46
46 46 46 46 7d 5b 7b 46 46 30 30 30 30 7d 49 44
7b 46 46 46 46 46 46 7d 5d 20 ea eb e0 e2 e8 f8
0d 0a 7b 46 46 46 46 46 46 7d 41 69 72 53 62 69
76 20 5b 7b 41 34 41 34 41 34 7d 2f 61 6e 69 6d
20 31 20 ef f0 e8 20 ef e0 e4 e5 ed e8 e8 7b 46
46 46 46 46 46 7d 5d 20 2d 20 7b 34 30 46 46 30
30 7d c0 ca d2 c8 c2 c8 d0 ce c2 c0 cd 0d 0a 7b
46 46 46 46 46 46 7d 43 61 72 45 78 69 74 53 62
69 76 20 5b 7b 41 34 41 34 41 34 7d 2f 61 6e 69
6d 20 31 20 ef f0 e8 20 e2 fb ef e0 e4 e5 ed e8
e8 20 e8 e7 20 ec e0 f8 e8 ed fb 7b 46 46 46 46
46 46 7d 5d 20 2d 20 7b 46 46 30 30 30 30 7d c4
c5 c0 ca d2 c8 c2 c8 d0 ce c2 c0 cd 00
end

:text13
hex
7b 46 46 46 46 46 46 7d c8 e7 ec e5 ed e8 f2 fc
20 ea eb e0 e2 e8 f8 f3 20 f1 e1 e8 e2 e0 20 e0
ef f2 e5 f7 ea e8 20 5b 7b 46 46 30 30 30 30 7d
49 44 7b 46 46 46 46 46 46 7d 5d 0d 0a 7b 46 46
46 46 46 46 7d 5b 7b 46 46 30 30 30 30 7d 49 44
7b 46 46 46 46 46 46 7d 5d 20 ea eb e0 e2 e8 f8
0d 0a 7b 46 46 46 46 46 46 7d 41 69 72 53 62 69
76 20 5b 7b 41 34 41 34 41 34 7d 2f 61 6e 69 6d
20 31 20 ef f0 e8 20 ef e0 e4 e5 ed e8 e8 7b 46
46 46 46 46 46 7d 5d 20 2d 20 7b 46 46 30 30 30
30 7d c4 c5 c0 ca d2 c8 c2 c8 d0 ce c2 c0 cd 0d
0a 7b 46 46 46 46 46 46 7d 43 61 72 45 78 69 74
53 62 69 76 20 5b 7b 41 34 41 34 41 34 7d 2f 61
6e 69 6d 20 31 20 ef f0 e8 20 e2 fb ef e0 e4 e5
ed e8 e8 20 e8 e7 20 ec e0 f8 e8 ed fb 7b 46 46
46 46 46 46 7d 5d 20 2d 20 7b 34 30 46 46 30 30
7d c0 ca d2 c8 c2 c8 d0 ce c2 c0 cd 00
end
 

astap_

Известный
Всефорумный модератор
626
597
Почему краш?
CLEO:
{$CLEO}

0000:

repeat
    wait 0
until SAMP.Available()

call @GetScreenCentre 2 100 100 13@ 14@
0B80: dialog 0@ = create "MultiCheat"
0B84: dialog 0@ set_pos_XY 13@ 14@ size 200 320
0B83: dialog 0@ add_checkbox id 1 text "InfiniteRun" pos_XY 5 0 size 150 20
0B83: dialog 0@ add_checkbox id 2 text "SensitivityFix" pos_XY 5 25 size 150 20
0B83: dialog 0@ add_checkbox id 3 text "NoCamRestore" pos_XY 5 50 size 150 20
0B83: dialog 0@ add_checkbox id 4 text "StayOnBike" pos_XY 5 75 size 150 20
0B83: dialog 0@ add_checkbox id 5 text "FPSUnlock" pos_XY 5 100 size 150 20
0B83: dialog 0@ add_checkbox id 6 text "AntiCrasher" pos_XY 5 125 size 150 20
0B83: dialog 0@ add_checkbox id 7 text "Memory2048" pos_XY 5 150 size 150 20
0B83: dialog 0@ add_checkbox id 8 text "AntiStun" pos_XY 5 175 size 150 20
0B82: dialog 0@ add_button id 9 text "Suicide" pos_XY 50 200 size 100 30
0B82: dialog 0@ add_button id 10 text "ExitGame" pos_XY 50 235 size 100 30
0B91: dialog 0@ add_static id 11 text " 1.03 {FF0000} Release" pos_XY 50 270 size 150 20
0B86: dialog 0@ set_visible 0
0AF0: 15@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "InfiniteRun"
0AF0: 16@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "SensitivityFix"
0AF0: 17@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "NoCamRestore"
0AF0: 18@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "StayOnBike"
0AF0: 19@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "FPSUnlock"
0AF0: 20@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiCrasher"
0AF0: 21@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "Memory2048"
0AF0: 22@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiStun"
0B9E: dialog 0@ checkbox 1 set_checked 15@
0B9E: dialog 0@ checkbox 2 set_checked 16@
0B9E: dialog 0@ checkbox 3 set_checked 17@
0B9E: dialog 0@ checkbox 4 set_checked 18@
0B9E: dialog 0@ checkbox 5 set_checked 19@
0B9E: dialog 0@ checkbox 6 set_checked 20@
0B9E: dialog 0@ checkbox 7 set_checked 21@
0B9E: dialog 0@ checkbox 8 set_checked 22@
0C6A: 23@ = create_custom_thread_at_label @InfiniteRun 15@ 0@
0C6A: 24@ = create_custom_thread_at_label @SensitivityFix 16@ 0@
0C6A: 25@ = create_custom_thread_at_label @NoCamRestore 17@ 0@
0C6A: 26@ = create_custom_thread_at_label @StayOnBike 18@ 0@
0C6A: 27@ = create_custom_thread_at_label @FPSUnlock 19@ 0@
0C6A: 28@ = create_custom_thread_at_label @AntiCrasher 20@ 0@
0C6A: 29@ = create_custom_thread_at_label @Memory2048 21@ 0@
0C6A: 30@ = create_custom_thread_at_label @AntiStun 22@ 0@
0C6A: 31@ = create_custom_thread_at_label @Suicide 0@
0C6A: 32@ = create_custom_thread_at_label @ExitGame 0@

while true
    wait 0
    if and
        0ADC: test_cheat "Z"
        not SAMP.IsCursorActive()
    then
        0B12: 5@ = 5@ XOR 1
        if 5@ == 1
        then
            Dialog.SetVisible(0@, true)
            SAMP.ToggleCursor(true)
        else
            Dialog.SetVisible(0@, false)
            SAMP.ToggleCursor(false)
        end
    end
end

:InfiniteRun
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 1
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        while true
            wait 0
            Player.InfiniteRun($PLAYER_CHAR, true)
            0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "InfiniteRun"
        end
    else
        while true
            wait 0
            Player.InfiniteRun($PLAYER_CHAR, false)
            0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "InfiniteRun"
        end
    end
end

:SensitivityFix
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    0A8D: 3@ = read_memory 11987996 size 4 virtual_protect 0
    0A8D: 4@ = read_memory 11987992 size 4 virtual_protect 0
    if and
        1@ == 1025
        2@ == 2
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        while true
            wait 0
            0A8C: write_memory 11987992 size 4 value 3@ virtual_protect 0
            0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "SensitivityFix"
        end
    else
        while true
            wait 0
            0A8C: write_memory 11987992 size 4 value 4@ virtual_protect 0
            0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "SensitivityFix"
        end
    end
end

:NoCamRestore
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    0A8D: 3@ = read_memory 5310892 size 1 virtual_protect 1
    0A8D: 4@ = read_memory 5310917 size 1 virtual_protect 1
    0A8D: 5@ = read_memory 5386662 size 1 virtual_protect 1
    0A8D: 6@ = read_memory 5386797 size 1 virtual_protect 1
    0A8D: 7@ = read_memory 5387194 size 1 virtual_protect 1
    if and
        1@ == 1025
        2@ == 3
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        while true
            wait 0
            0A8C: write_memory 5310892 size 1 value 235 virtual_protect 1
            0A8C: write_memory 5310917 size 1 value 235 virtual_protect 1
            0A8C: write_memory 5386662 size 1 value 235 virtual_protect 1
            0A8C: write_memory 5386797 size 1 value 235 virtual_protect 1
            0A8C: write_memory 5387194 size 1 value 235 virtual_protect 1
            0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "NoCamRestore"
        end
    else
        while true
            wait 0
            0A8C: write_memory 5310892 size 1 value 5@ virtual_protect 1
            0A8C: write_memory 5310917 size 1 value 6@ virtual_protect 1
            0A8C: write_memory 5386662 size 1 value 7@ virtual_protect 1
            0A8C: write_memory 5386797 size 1 value 8@ virtual_protect 1
            0A8C: write_memory 5387194 size 1 value 9@ virtual_protect 1
            0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "NoCamRestore"
        end
    end
end

:StayOnBike
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 4
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        while true
            wait 0
            08C6: set_actor $PLAYER_ACTOR stay_on_bike true
            0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "StayOnBike"
        end
    else
        while true
            wait 0
            08C6: set_actor $PLAYER_ACTOR stay_on_bike false
            0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "StayOnBike"
        end
    end
end

:FPSUnlock
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    0AA2: 11@ = load_library "SAMP.DLL"
    if and
        1@ == 1025
        2@ == 5
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        000A: 11@ += 645584
        0A8C: write_memory 11@ size 4 value 1347550997 virtual_protect 1
        0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "FPSUnlock"
    else
        0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "FPSUnlock"
    end
end

:AntiCrasher
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    0AA2: 12@ = load_library "SAMP.DLL"
    if and
        1@ == 1025
        2@ == 6
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        if not 12@ == false
        then
            000A: 12@ += 380716
            0A8C: write_memory 12@ size 4 value -1869574000 virtual_protect 1
            000A: 12@ += 4
            0A8C: write_memory 12@ size 1 value 144 virtual_protect 1
            000A: 12@ += 9
            0A8C: write_memory 12@ size 4 value -1869574000 virtual_protect 1
            000A: 12@ += 4
            0A8C: write_memory 12@ size 1 value 144 virtual_protect 1
            0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiCrasher"
        else
            0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiCrasher"
        end
    end
end

:Memory2048
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 7
        0B92:  dialog 0@ checkbox 2@ is_checked
    then
        0A8C: write_memory 9067136 size 4 value 2147483647 virtual_protect 1
        0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "Memory2048"
    else
        0A8C: write_memory 9067136 size 4 value 52428800 virtual_protect 1
        0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "Memory2048"
    end
end

:AntiStun
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 8
        0B92:  dialog 0@ checkbox 2@ is_checked
    then
        while true
            wait 0
            0946: set_actor $PLAYER_ACTOR actions_uninterupted_by_weapon_fire true
            0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiStun"
        end
    else
        while true
            wait 0
            0946: set_actor $PLAYER_ACTOR actions_uninterupted_by_weapon_fire false
            0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiStun"
        end
    end
end

:Suicide
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 257
        2@ == 9
    then
        0223: set_actor $PLAYER_ACTOR health_to 0
    end
end

:ExitGame
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 257
        2@ == 10
    then
        0AA5: call 8535003 num_params 3 pop 3 0 0 0
        0A93: end_custom_thread
    end
end      
      
:GetScreenCentre
0B5A: get_screen_resolution 2@ 3@
0016: 2@ /= 2
0062: 2@ -= 0@
0016: 3@ /= 2
0062: 3@ -= 1@
0AB2: ret 2 2@ 3@
1. 49-ая строка. Ты используешь недопустимую переменную для этого опкода.
2. Если ты создаёшь потоки и потом никак не взаимодействуешь с ними, то лучше не тратить переменные и не присваивать им указатель, просто пиши 0.
3. Ты неправильно передаёшь переменные в другой поток. Для примера:
CLEO:
0C6A: 23@ = create_custom_thread_at_label @InfiniteRun 15@ 0@
Ты хочешь передать 15@ и 0@ в @InfiniteRun. Но в @InfiniteRun будет: 0@ = 15@ , а 1@ = 0@. Вряд ли ты хотел чтобы хендл диалога был равен значению из иника. В остальных случаях всё так же.
4. Изменять память постоянно на одно и то же значение в беск. цикле - плохая идея. Не знаю может ли это вызвать краш, но так точно делать не нужно.
 

Carrentine

Потрачен
569
460
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
1. 49-ая строка. Ты используешь недопустимую переменную для этого опкода.
2. Если ты создаёшь потоки и потом никак не взаимодействуешь с ними, то лучше не тратить переменные и не присваивать им указатель, просто пиши 0.
3. Ты неправильно передаёшь переменные в другой поток. Для примера:
CLEO:
0C6A: 23@ = create_custom_thread_at_label @InfiniteRun 15@ 0@
Ты хочешь передать 15@ и 0@ в @InfiniteRun. Но в @InfiniteRun будет: 0@ = 15@ , а 1@ = 0@. Вряд ли ты хотел чтобы хендл диалога был равен значению из иника. В остальных случаях всё так же.
4. Изменять память постоянно на одно и то же значение в беск. цикле - плохая идея. Не знаю может ли это вызвать краш, но так точно делать не нужно.
Все что ты сказал - то исправил, все равно краш, в чем проблемс?

CLEO:
{$CLEO}

0000:

repeat
    wait 0
until SAMP.Available()

call @GetScreenCentre 2 100 100 13@ 14@
0B80: dialog 0@ = create "MultiCheat"
0B84: dialog 0@ set_pos_XY 13@ 14@ size 200 320
0B83: dialog 0@ add_checkbox id 1 text "InfiniteRun" pos_XY 5 0 size 150 20
0B83: dialog 0@ add_checkbox id 2 text "SensitivityFix" pos_XY 5 25 size 150 20
0B83: dialog 0@ add_checkbox id 3 text "NoCamRestore" pos_XY 5 50 size 150 20
0B83: dialog 0@ add_checkbox id 4 text "StayOnBike" pos_XY 5 75 size 150 20
0B83: dialog 0@ add_checkbox id 5 text "FPSUnlock" pos_XY 5 100 size 150 20
0B83: dialog 0@ add_checkbox id 6 text "AntiCrasher" pos_XY 5 125 size 150 20
0B83: dialog 0@ add_checkbox id 7 text "Memory2048" pos_XY 5 150 size 150 20
0B83: dialog 0@ add_checkbox id 8 text "AntiStun" pos_XY 5 175 size 150 20
0B82: dialog 0@ add_button id 9 text "Suicide" pos_XY 50 200 size 100 30
0B82: dialog 0@ add_button id 10 text "ExitGame" pos_XY 50 235 size 100 30
0B91: dialog 0@ add_static id 11 text " 1.03 {FF0000} Release" pos_XY 50 270 size 150 20
0B86: dialog 0@ set_visible 0
0AF0: 15@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "InfiniteRun"
0AF0: 16@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "SensitivityFix"
0AF0: 17@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "NoCamRestore"
0AF0: 18@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "StayOnBike"
0AF0: 19@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "FPSUnlock"
0AF0: 20@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiCrasher"
0AF0: 21@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "Memory2048"
0AF0: 22@ = get_int_from_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiStun"
0B9E: dialog 0@ checkbox 1 set_checked 15@
0B9E: dialog 0@ checkbox 2 set_checked 16@
0B9E: dialog 0@ checkbox 3 set_checked 17@
0B9E: dialog 0@ checkbox 4 set_checked 18@
0B9E: dialog 0@ checkbox 5 set_checked 19@
0B9E: dialog 0@ checkbox 6 set_checked 20@
0B9E: dialog 0@ checkbox 7 set_checked 21@
0B9E: dialog 0@ checkbox 8 set_checked 22@
0C6A: 0 = create_custom_thread_at_label @InfiniteRun 0@
0C6A: 0 = create_custom_thread_at_label @SensitivityFix 0@
0C6A: 0 = create_custom_thread_at_label @NoCamRestore 0@
0C6A: 0 = create_custom_thread_at_label @StayOnBike 0@
0C6A: 0 = create_custom_thread_at_label @FPSUnlock 0@
0C6A: 0 = create_custom_thread_at_label @AntiCrasher 0@
0C6A: 0 = create_custom_thread_at_label @Memory2048 0@
0C6A: 0 = create_custom_thread_at_label @AntiStun 0@
0C6A: 0 = create_custom_thread_at_label @Suicide 0@
0C6A: 0 = create_custom_thread_at_label @ExitGame 0@

while true
    wait 0
    if and
        0ADC: test_cheat "Z"
        not SAMP.IsCursorActive()
    then
        0B12: 5@ = 5@ XOR 1
        if 5@ == 1
        then
            Dialog.SetVisible(0@, true)
            SAMP.ToggleCursor(true)
        else
            Dialog.SetVisible(0@, false)
            SAMP.ToggleCursor(false) 
        end
    end
end

:InfiniteRun
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 1
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        while true
            wait 0
            Player.InfiniteRun($PLAYER_CHAR, true)
            0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "InfiniteRun"
        end
    else
        while true
            wait 0
            Player.InfiniteRun($PLAYER_CHAR, false)
            0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "InfiniteRun"
        end
    end
end
            
:SensitivityFix
0A8D: 3@ = read_memory 11987996 size 4 virtual_protect 0
0A8D: 4@ = read_memory 11987992 size 4 virtual_protect 0
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 2
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        0A8C: write_memory 11987992 size 4 value 3@ virtual_protect 0
        0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "SensitivityFix"
    else
        0A8C: write_memory 11987992 size 4 value 4@ virtual_protect 0
        0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "SensitivityFix"
    end
end

:NoCamRestore
0A8D: 3@ = read_memory 5310892 size 1 virtual_protect 1
0A8D: 4@ = read_memory 5310917 size 1 virtual_protect 1
0A8D: 5@ = read_memory 5386662 size 1 virtual_protect 1
0A8D: 6@ = read_memory 5386797 size 1 virtual_protect 1
0A8D: 7@ = read_memory 5387194 size 1 virtual_protect 1
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 3
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        0A8C: write_memory 5310892 size 1 value 235 virtual_protect 1
        0A8C: write_memory 5310917 size 1 value 235 virtual_protect 1
        0A8C: write_memory 5386662 size 1 value 235 virtual_protect 1
        0A8C: write_memory 5386797 size 1 value 235 virtual_protect 1
        0A8C: write_memory 5387194 size 1 value 235 virtual_protect 1
        0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "NoCamRestore"
    else
        0A8C: write_memory 5310892 size 1 value 5@ virtual_protect 1
        0A8C: write_memory 5310917 size 1 value 6@ virtual_protect 1
        0A8C: write_memory 5386662 size 1 value 7@ virtual_protect 1
        0A8C: write_memory 5386797 size 1 value 8@ virtual_protect 1
        0A8C: write_memory 5387194 size 1 value 9@ virtual_protect 1
        0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "NoCamRestore"
    end
end

:StayOnBike
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 4
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        while true
            wait 0
            08C6: set_actor $PLAYER_ACTOR stay_on_bike true
            0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "StayOnBike"
        end
    else
        while true
            wait 0
            08C6: set_actor $PLAYER_ACTOR stay_on_bike false
            0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "StayOnBike"
        end
    end
end

:FPSUnlock
0AA2: 11@ = load_library "SAMP.DLL"
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 5
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        000A: 11@ += 645584
        0A8C: write_memory 11@ size 4 value 1347550997 virtual_protect 1
        0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "FPSUnlock"
    else
        0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "FPSUnlock"
    end
end

:AntiCrasher
0AA2: 12@ = load_library "SAMP.DLL"
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 6
        0B92: dialog 0@ checkbox 2@ is_checked
    then
        if not 12@ == false
        then
            000A: 12@ += 380716
            0A8C: write_memory 12@ size 4 value -1869574000 virtual_protect 1
            000A: 12@ += 4
            0A8C: write_memory 12@ size 1 value 144 virtual_protect 1
            000A: 12@ += 9
            0A8C: write_memory 12@ size 4 value -1869574000 virtual_protect 1
            000A: 12@ += 4
            0A8C: write_memory 12@ size 1 value 144 virtual_protect 1
            0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiCrasher"
        else
            0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiCrasher"
        end
    end
end

:Memory2048
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 7
        0B92:  dialog 0@ checkbox 2@ is_checked
    then
        0A8C: write_memory 9067136 size 4 value 2147483647 virtual_protect 1
        0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "Memory2048"
    else
        0A8C: write_memory 9067136 size 4 value 52428800 virtual_protect 1
        0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "Memory2048"
    end
end

:AntiStun
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 1025
        2@ == 8
        0B92:  dialog 0@ checkbox 2@ is_checked
    then
        while true
            wait 0
            0946: set_actor $PLAYER_ACTOR actions_uninterupted_by_weapon_fire true
            0AF1: write_int 1 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiStun"
        end
    else
        while true
            wait 0
            0946: set_actor $PLAYER_ACTOR actions_uninterupted_by_weapon_fire false
            0AF1: write_int 0 to_ini_file "CLEO\MultiCheat.ini" section "Settings" key "AntiStun"
        end
    end
end

:Suicide
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 257
        2@ == 9
    then
        0223: set_actor $PLAYER_ACTOR health_to 0
    end
end

:ExitGame
while true
    wait 0
    0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
    if and
        1@ == 257
        2@ == 10
    then
        0AA5: call 8535003 num_params 3 pop 3 0 0 0
    end
end
0A93: end_custom_thread      
       
:GetScreenCentre
0B5A: get_screen_resolution 2@ 3@
0016: 2@ /= 2
0062: 2@ -= 0@
0016: 3@ /= 2
0062: 3@ -= 1@
0AB2: ret 2 2@ 3@
 
  • Нравится
Реакции: Const