Декомпиляция скриптов

FYP

Известный
Автор темы
Администратор
1,758
5,720
GVWUrNJ.png
eNo5cSj.png


Общая тема для просьб о помощи в декомпиляциии и декриптованиии скриптов, плагинов и приложений.
Запрещено просить о декомпиляции/декриптовании софта, выставленного на продажу на нашем сайте.

Рекомендации:
  1. Сначала воспользуйтесь поиском по теме и по форуму, возможно его в декомпилированном виде или с исходным кодом уже выкладывали у нас на сайте.
  2. Попытайтесь декомпилировать самостоятельно: CLEO - декриптор, декомпилятор; AHK - распаковщик .exe; LuaJIT - декомпилятор1, декомпилятор2.
  3. Просить о декомпиляции .asi, .sf, .dll, .exe почти бесполезно, часто такие просьбы остаются без ответа и вряд ли вам это что-то даст. Можете попробовать сами, IDA Pro или Ghidra к вашим услугам.
    • Это не касается .exe, которые являются скомпилированными AutoHotKey-скриптами (.ahk).
  4. Добавьте название скрипта к сообщению, если оно известно - это поможет другим пользователям найти его с помощью поиска.
  5. Сообщения по типу "спасибо, помог" по правилам форума считаются флудом и скорее всего будут удалены. Если вам помогли, вы можете нажать кнопку Мне нравится под ответом - это даст понять, что ответ верный.
 
Последнее редактирование:

™ ChipFamily

По ту сторону надежды.
5,144
1,980
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Последнее редактирование:

JopaZukkala

Новичок
6
0
Код открыт.
CLEO:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

thread "NTIMER"
if
  $707 == 0
else_jump {Lab}-00001E
0A93: end_custom_thread

//Lab-00001E
wait 0
   SAMP.Available
else_jump {Lab}-00001E
if
filedef "cleo\narko_timer.ini"
else_jump {Lab}-000066
filedel "cleo\narko_timer.ini"

//Lab-000066
log "[timeUsedrugs] Loaded! by Alllss"
if
filedef "cleo\save_settings\settings.ini"
else_jump {Lab}-0000C0
jump {Lab}-0000F4

//Lab-0000C0
msg "{919191}[Error] Файл настроек не найден!" 9539985
0A93: end_custom_thread

//Lab-0000F4
cmd "nhelp" {Lab}-00053A
cmd "nkey" {Lab}-00056C
cmd "npos" {Lab}-000648
cmd "nsbiv" {Lab}-000786
cmd "nautolomka" {Lab}-000878
cmd "ntime" {Lab}-00098C

//Lab-00014B
wait 0
if
   SAMP.IsLocalPlayerSpawned
else_jump {Lab}-000533
alloc 9@ 64
alloc 8@ 64
alloc 1@ 64
alloc 2@ 64
alloc 17@ 64
alloc 18@ 64
rint 8@ "cleo\save_settings\settings.ini" "SelectKey" "Key"
rfloat 1@ "cleo\save_settings\settings.ini" "Position" "X"
rfloat 2@ "cleo\save_settings\settings.ini" "Position" "Y"
rint 17@ "cleo\save_settings\settings.ini" "AutoUsedrugs" "Active"
rint 18@ "cleo\save_settings\settings.ini" "SelectTime" "Time"
rint 18@ "cleo\save_settings\settings.ini" "SelectTime" "Time"
16@ = 3
0@ = Render.CreateFont("Arial", 11, 5)

//Lab-0002E5
wait 0
alloc 3@ 64
format 3@ "Можно юзать!"
Render.DrawText(0@, 3@, 10@, 12@, -16724992)
free 3@
0B60: convert_game_screen_coords 1@ 2@ to_window_screen_coords 10@ 12@
if and
  17@ == 1
   Actor.Animation($PLAYER_ACTOR) == "crckdeth1"
else_jump {Lab}-00035A
16@ = 0
jump {Lab}-0003A8

//Lab-00035A
if
   Actor.Animation($PLAYER_ACTOR) == "M_smk_drag"
else_jump {Lab}-000384
16@ = 1
jump {Lab}-0003A8

//Lab-000384
if
key 8@
else_jump {Lab}-0003A8
if
   not SAMP.ChatInputOpened
else_jump {Lab}-0003A8
16@ = 2

//Lab-0003A8
   not 16@ >= 3
else_jump {Lab}-0002E5
0C74: 4@ = create_timer_interval 1000 on_label {Lab}-000BBD
if or
  16@ == 2
  17@ == 1
else_jump {Lab}-000498
6@ = Actor.Health($PLAYER_ACTOR)
7@ = 160
0062: 7@ -= 6@ // (int)
7@ /= 10
if
  7@ >= 16
else_jump {Lab}-000414
7@ = 15

//Lab-000414
say "/usedrugs %d" 7@
rint 9@ "cleo\save_settings\settings.ini" "Sbiv" "Active"
if
  9@ == 1
else_jump {Lab}-000498
if
   not Actor.Driving($PLAYER_ACTOR)
else_jump {Lab}-000491
0792: disembark_instantly_actor $PLAYER_ACTOR
9@ = 0
jump {Lab}-000491

//Lab-000491
jump {Lab}-000498

//Lab-000498
wait 0
alloc 3@ 64
0C7C: 5@ = get_timer 4@ time_left
5@ /= 100
format 3@ "Осталось %d.%dсек." 18@ 5@
Render.DrawText(0@, 3@, 10@, 12@, -1)
free 3@
   not 18@ > -1
else_jump {Lab}-000498
0C78: set_timer 4@ active 0
018C: play_sound 1057 at 0.0 0.0 0.0
Render.ReleaseFont(0@)
free 9@
free 8@
free 1@
free 2@
free 17@
free 18@

//Lab-000533
jump {Lab}-00014B

//Lab-00053A
0AC6: 13@ = label {Lab}-000A79 offset
SAMP.ShowDialog(15, "{ffa500}Информация", 13@, "Выход", "", DIALOG_STYLE_MSGBOX)
SAMP.CmdRet

//Lab-00056C
   SAMP.IsCommandTyped(20@)
if
param 21@ 20@ "%d" 8@
else_jump {Lab}-000611
msg "{ffa500}[timer]: Клавиша активации была изменена на [id:%d]" 16753920 8@
wint 8@ "cleo\save_settings\settings.ini" "SelectKey" "Key"
jump {Lab}-000646

//Lab-000611
msg "{ffa500}[timer]: Используйте /nkey [id key]" 16753920

//Lab-000646
SAMP.CmdRet

//Lab-000648
   SAMP.IsCommandTyped(22@)
if
param 23@ 22@ "%d %d" 1@ 2@
else_jump {Lab}-000748
0093: 1@ = integer 1@ to_float
0093: 2@ = integer 2@ to_float
msg "{ffa500}[timer]: Кординаты были изменены на %f %f (original X - 555 | Y - 40)" 16753920 1@ 2@
wfloat 1@ "cleo\save_settings\settings.ini" "Position" "X"
wfloat 2@ "cleo\save_settings\settings.ini" "Position" "Y"
jump {Lab}-000784

//Lab-000748
msg "{ffa500}[timer]: Используйте /npos [X pos] [Y pos]" 16753920

//Lab-000784
SAMP.CmdRet

//Lab-000786
   SAMP.IsCommandTyped(24@)
if
param 25@ 24@ "%d" 9@
else_jump {Lab}-000832
msg "{ffa500}[timer]: Cбив анимации изменено на %d [1-Включен|0-Отключен]" 16753920 9@
wint 9@ "cleo\save_settings\settings.ini" "Sbiv" "Active"
jump {Lab}-000876

//Lab-000832
msg "{ffa500}[timer]: Используйте /nsbiv [1-Включен|0-Отключен]" 16753920

//Lab-000876
SAMP.CmdRet

//Lab-000878
   SAMP.IsCommandTyped(26@)
if
param 27@ 26@ "%d" 17@
else_jump {Lab}-00093F
msg "{ffa500}[timer]: Автоупотребление нарко при ломке изменено на %d [1-Включен|0-Отключен]" 16753920 17@
wint 17@ "cleo\save_settings\settings.ini" "AutoUsedrugs" "Active"
jump {Lab}-00098A

//Lab-00093F
msg "{ffa500}[timer]: Используйте /nautolomka [1-Включена|0-Отключена]" 16753920

//Lab-00098A
SAMP.CmdRet

//Lab-00098C
   SAMP.IsCommandTyped(28@)
if
param 29@ 28@ "%d" 18@
else_jump {Lab}-000A3E
18@ -= 1
0085: 19@ = 18@ // (int)
19@ += 1
msg "{ffa500}[timer]: Вы изменили время таймера на %d" 16753920 19@
wint 18@ "cleo\save_settings\settings.ini" "SelectTime" "Time"
jump {Lab}-000A77

//Lab-000A3E
msg "{ffa500}[timer]: Используйте /ntime [timer sec]" 16753920

//Lab-000A77
SAMP.CmdRet

//Lab-000A79
{FFFFFF}/nkey - Установить клавишу активации скрипта.
{FFFFFF}/npos - Установить позицию текста на экране.
{FFFFFF}/nsbiv - Отключить/Включить сбив анимации. [1-Включен|0-Отключен]
{FFFFFF}/nautolomka - Отключить/Включить авто употребление нарко при ломке. [1-Включен|0-Отключен]
{FFFFFF}/ntime - Установить время таймера.
end

//Lab-000BBD
18@ -= 1
SAMP.CmdRet
Спасибо , но я тупой , как мне сделать кс в сани билдере , мне выдаёт ошибку (Недостаточно параметров. Ожидалось 1 параметров.)
 

#Rin

Известный
Всефорумный модератор
1,214
1,036
Код с нормальными метками:
CLEO:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread "NTIMER"
if
  $707 == 0
jf @NTIMER_30
0A93: end_custom_thread

:NTIMER_30
wait 0
   SAMP.Available
jf @NTIMER_30
if
0AAB:   file_exists "cleo\narko_timer.ini"
jf @NTIMER_102
0B00: delete_file "cleo\narko_timer.ini" // IF and SET

:NTIMER_102
log "[timeUsedrugs] Loaded! by Alllss"
if
0AAB:   file_exists "cleo\save_settings\settings.ini"
jf @NTIMER_192
goto @NTIMER_244

:NTIMER_192
chatmsg "{919191}[Error] Файл настроек не найден!" 9539985
0A93: end_custom_thread

:NTIMER_244
0B34: samp register_client_command "nhelp" to_label @NTIMER_1338
0B34: samp register_client_command "nkey" to_label @NTIMER_1388
0B34: samp register_client_command "npos" to_label @NTIMER_1608
0B34: samp register_client_command "nsbiv" to_label @NTIMER_1926
0B34: samp register_client_command "nautolomka" to_label @NTIMER_2168
0B34: samp register_client_command "ntime" to_label @NTIMER_2444

:NTIMER_331
wait 0
if
   SAMP.IsLocalPlayerSpawned
jf @NTIMER_1331
alloc 9@ 64
alloc 8@ 64
alloc 1@ 64
alloc 2@ 64
alloc 17@ 64
alloc 18@ 64
0AF0: 8@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "SelectKey" key "Key"
0AF2: 1@ = get_float_from_ini_file "cleo\save_settings\settings.ini" section "Position" key "X"
0AF2: 2@ = get_float_from_ini_file "cleo\save_settings\settings.ini" section "Position" key "Y"
0AF0: 17@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "AutoUsedrugs" key "Active"
0AF0: 18@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "SelectTime" key "Time"
0AF0: 18@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "SelectTime" key "Time"
16@ = 3
0@ = Render.CreateFont("Arial", 11, 5)

:NTIMER_741
wait 0
alloc 3@ 64
format 3@ "Можно юзать!"
Render.DrawText(0@, 3@, 10@, 12@, -16724992)
free 3@
0B60: convert_game_screen_coords 1@ 2@ to_window_screen_coords 10@ 12@
if and
  17@ == 1
   Actor.Animation($PLAYER_ACTOR) == "crckdeth1"
jf @NTIMER_858
16@ = 0
goto @NTIMER_936

:NTIMER_858
if
   Actor.Animation($PLAYER_ACTOR) == "M_smk_drag"
jf @NTIMER_900
16@ = 1
goto @NTIMER_936

:NTIMER_900
if
key_down 8@
jf @NTIMER_936
if
   not SAMP.ChatInputOpened
jf @NTIMER_936
16@ = 2

:NTIMER_936
   not 16@ >= 3
jf @NTIMER_741
0C74: 4@ = create_timer_interval 1000 on_label @NTIMER_3005
if or
  16@ == 2
  17@ == 1
jf @NTIMER_1176
6@ = Actor.Health($PLAYER_ACTOR)
7@ = 160
0062: 7@ -= 6@ // (int)
7@ /= 10
if
  7@ >= 16
jf @NTIMER_1044
7@ = 15

:NTIMER_1044
say "/usedrugs %d" 7@
0AF0: 9@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "Sbiv" key "Active"
if
  9@ == 1
jf @NTIMER_1176
if
   not Actor.Driving($PLAYER_ACTOR)
jf @NTIMER_1169
0792: disembark_instantly_actor $PLAYER_ACTOR
9@ = 0
goto @NTIMER_1169

:NTIMER_1169
goto @NTIMER_1176

:NTIMER_1176
wait 0
alloc 3@ 64
0C7C: 5@ = get_timer 4@ time_left
5@ /= 100
format 3@ "Осталось %d.%dсек." 18@ 5@
Render.DrawText(0@, 3@, 10@, 12@, -1)
free 3@
   not 18@ > -1
jf @NTIMER_1176
0C78: set_timer 4@ active 0
018C: play_sound 1057 at 0.0 0.0 0.0
Render.ReleaseFont(0@)
free 9@
free 8@
free 1@
free 2@
free 17@
free 18@

:NTIMER_1331
goto @NTIMER_331

:NTIMER_1338
0AC6: 13@ = label @NTIMER_2681 offset
SAMP.ShowDialog(15, "{ffa500}Информация", 13@, "Выход", "", DIALOG_STYLE_MSGBOX)
SAMP.CmdRet

:NTIMER_1388
   SAMP.IsCommandTyped(20@)
if
0AD4: 21@ = scan_string 20@ format "%d" 8@
jf @NTIMER_1553
chatmsg "{ffa500}[timer]: Клавиша активации была изменена на [id:%d]" 16753920 8@
0AF1: write_int 8@ to_ini_file "cleo\save_settings\settings.ini" section "SelectKey" key "Key"
goto @NTIMER_1606

:NTIMER_1553
chatmsg "{ffa500}[timer]: Используйте /nkey [id key]" 16753920

:NTIMER_1606
SAMP.CmdRet

:NTIMER_1608
   SAMP.IsCommandTyped(22@)
if
0AD4: 23@ = scan_string 22@ format "%d %d" 1@ 2@
jf @NTIMER_1864
0093: 1@ = integer 1@ to_float
0093: 2@ = integer 2@ to_float
chatmsg "{ffa500}[timer]: Кординаты были изменены на %f %f (original X - 555 | Y - 40)" 16753920 1@ 2@
0AF3: write_float 1@ to_ini_file "cleo\save_settings\settings.ini" section "Position" key "X"
0AF3: write_float 2@ to_ini_file "cleo\save_settings\settings.ini" section "Position" key "Y"
goto @NTIMER_1924

:NTIMER_1864
chatmsg "{ffa500}[timer]: Используйте /npos [X pos] [Y pos]" 16753920

:NTIMER_1924
SAMP.CmdRet

:NTIMER_1926
   SAMP.IsCommandTyped(24@)
if
0AD4: 25@ = scan_string 24@ format "%d" 9@
jf @NTIMER_2098
chatmsg "{ffa500}[timer]: Cбив анимации изменено на %d [1-Включен|0-Отключен]" 16753920 9@
0AF1: write_int 9@ to_ini_file "cleo\save_settings\settings.ini" section "Sbiv" key "Active"
goto @NTIMER_2166

:NTIMER_2098
chatmsg "{ffa500}[timer]: Используйте /nsbiv [1-Включен|0-Отключен]" 16753920

:NTIMER_2166
SAMP.CmdRet

:NTIMER_2168
   SAMP.IsCommandTyped(26@)
if
0AD4: 27@ = scan_string 26@ format "%d" 17@
jf @NTIMER_2367
chatmsg "{ffa500}[timer]: Автоупотребление нарко при ломке изменено на %d [1-Включен|0-Отключен]" 16753920 17@
0AF1: write_int 17@ to_ini_file "cleo\save_settings\settings.ini" section "AutoUsedrugs" key "Active"
goto @NTIMER_2442

:NTIMER_2367
chatmsg "{ffa500}[timer]: Используйте /nautolomka [1-Включена|0-Отключена]" 16753920

:NTIMER_2442
SAMP.CmdRet

:NTIMER_2444
   SAMP.IsCommandTyped(28@)
if
0AD4: 29@ = scan_string 28@ format "%d" 18@
jf @NTIMER_2622
18@ -= 1
0085: 19@ = 18@ // (int)
19@ += 1
chatmsg "{ffa500}[timer]: Вы изменили время таймера на %d" 16753920 19@
0AF1: write_int 18@ to_ini_file "cleo\save_settings\settings.ini" section "SelectTime" key "Time"
goto @NTIMER_2679

:NTIMER_2622
chatmsg "{ffa500}[timer]: Используйте /ntime [timer sec]" 16753920

:NTIMER_2679
SAMP.CmdRet

:NTIMER_2681
hex
 7B 46 46 46 46 46 46 7D 2F 6E 6B 65 79 20 2D 20
 D3 F1 F2 E0 ED EE E2 E8 F2 FC 20 EA EB E0 E2 E8
 F8 F3 20 E0 EA F2 E8 E2 E0 F6 E8 E8 20 F1 EA F0
 E8 EF F2 E0 2E 0A 7B 46 46 46 46 46 46 7D 2F 6E
 70 6F 73 20 2D 20 D3 F1 F2 E0 ED EE E2 E8 F2 FC
 20 EF EE E7 E8 F6 E8 FE 20 F2 E5 EA F1 F2 E0 20
 ED E0 20 FD EA F0 E0 ED E5 2E 20 0A 7B 46 46 46
 46 46 46 7D 2F 6E 73 62 69 76 20 2D 20 CE F2 EA
 EB FE F7 E8 F2 FC 2F C2 EA EB FE F7 E8 F2 FC 20
 F1 E1 E8 E2 20 E0 ED E8 EC E0 F6 E8 E8 2E 20 5B
 31 2D C2 EA EB FE F7 E5 ED 7C 30 2D CE F2 EA EB
 FE F7 E5 ED 5D 0A 7B 46 46 46 46 46 46 7D 2F 6E
 61 75 74 6F 6C 6F 6D 6B 61 20 2D 20 CE F2 EA EB
 FE F7 E8 F2 FC 2F C2 EA EB FE F7 E8 F2 FC 20 E0
 E2 F2 EE 20 F3 EF EE F2 F0 E5 E1 EB E5 ED E8 E5
 20 ED E0 F0 EA EE 20 EF F0 E8 20 EB EE EC EA E5
 2E 20 5B 31 2D C2 EA EB FE F7 E5 ED 7C 30 2D CE
 F2 EA EB FE F7 E5 ED 5D 0A 7B 46 46 46 46 46 46
 7D 2F 6E 74 69 6D 65 20 2D 20 D3 F1 F2 E0 ED EE
 E2 E8 F2 FC 20 E2 F0 E5 EC FF 20 F2 E0 E9 EC E5
 F0 E0 2E 00
end

:NTIMER_3005
18@ -= 1
SAMP.CmdRet
HEX в конце лишь текст в диалоге.

Спасибо , но я тупой , как мне сделать кс в сани билдере , мне выдаёт ошибку (Недостаточно параметров. Ожидалось 1 параметров.)
Ты его не скомпилишь из-за кривых меток что тебе дали, если не скомпилится код что дал я - установи опкоды SampFuncs'a.
 

™ ChipFamily

По ту сторону надежды.
5,144
1,980
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Код с нормальными метками:
CLEO:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread "NTIMER"
if
  $707 == 0
jf @NTIMER_30
0A93: end_custom_thread

:NTIMER_30
wait 0
   SAMP.Available
jf @NTIMER_30
if
0AAB:   file_exists "cleo\narko_timer.ini"
jf @NTIMER_102
0B00: delete_file "cleo\narko_timer.ini" // IF and SET

:NTIMER_102
log "[timeUsedrugs] Loaded! by Alllss"
if
0AAB:   file_exists "cleo\save_settings\settings.ini"
jf @NTIMER_192
goto @NTIMER_244

:NTIMER_192
chatmsg "{919191}[Error] Файл настроек не найден!" 9539985
0A93: end_custom_thread

:NTIMER_244
0B34: samp register_client_command "nhelp" to_label @NTIMER_1338
0B34: samp register_client_command "nkey" to_label @NTIMER_1388
0B34: samp register_client_command "npos" to_label @NTIMER_1608
0B34: samp register_client_command "nsbiv" to_label @NTIMER_1926
0B34: samp register_client_command "nautolomka" to_label @NTIMER_2168
0B34: samp register_client_command "ntime" to_label @NTIMER_2444

:NTIMER_331
wait 0
if
   SAMP.IsLocalPlayerSpawned
jf @NTIMER_1331
alloc 9@ 64
alloc 8@ 64
alloc 1@ 64
alloc 2@ 64
alloc 17@ 64
alloc 18@ 64
0AF0: 8@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "SelectKey" key "Key"
0AF2: 1@ = get_float_from_ini_file "cleo\save_settings\settings.ini" section "Position" key "X"
0AF2: 2@ = get_float_from_ini_file "cleo\save_settings\settings.ini" section "Position" key "Y"
0AF0: 17@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "AutoUsedrugs" key "Active"
0AF0: 18@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "SelectTime" key "Time"
0AF0: 18@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "SelectTime" key "Time"
16@ = 3
0@ = Render.CreateFont("Arial", 11, 5)

:NTIMER_741
wait 0
alloc 3@ 64
format 3@ "Можно юзать!"
Render.DrawText(0@, 3@, 10@, 12@, -16724992)
free 3@
0B60: convert_game_screen_coords 1@ 2@ to_window_screen_coords 10@ 12@
if and
  17@ == 1
   Actor.Animation($PLAYER_ACTOR) == "crckdeth1"
jf @NTIMER_858
16@ = 0
goto @NTIMER_936

:NTIMER_858
if
   Actor.Animation($PLAYER_ACTOR) == "M_smk_drag"
jf @NTIMER_900
16@ = 1
goto @NTIMER_936

:NTIMER_900
if
key_down 8@
jf @NTIMER_936
if
   not SAMP.ChatInputOpened
jf @NTIMER_936
16@ = 2

:NTIMER_936
   not 16@ >= 3
jf @NTIMER_741
0C74: 4@ = create_timer_interval 1000 on_label @NTIMER_3005
if or
  16@ == 2
  17@ == 1
jf @NTIMER_1176
6@ = Actor.Health($PLAYER_ACTOR)
7@ = 160
0062: 7@ -= 6@ // (int)
7@ /= 10
if
  7@ >= 16
jf @NTIMER_1044
7@ = 15

:NTIMER_1044
say "/usedrugs %d" 7@
0AF0: 9@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "Sbiv" key "Active"
if
  9@ == 1
jf @NTIMER_1176
if
   not Actor.Driving($PLAYER_ACTOR)
jf @NTIMER_1169
0792: disembark_instantly_actor $PLAYER_ACTOR
9@ = 0
goto @NTIMER_1169

:NTIMER_1169
goto @NTIMER_1176

:NTIMER_1176
wait 0
alloc 3@ 64
0C7C: 5@ = get_timer 4@ time_left
5@ /= 100
format 3@ "Осталось %d.%dсек." 18@ 5@
Render.DrawText(0@, 3@, 10@, 12@, -1)
free 3@
   not 18@ > -1
jf @NTIMER_1176
0C78: set_timer 4@ active 0
018C: play_sound 1057 at 0.0 0.0 0.0
Render.ReleaseFont(0@)
free 9@
free 8@
free 1@
free 2@
free 17@
free 18@

:NTIMER_1331
goto @NTIMER_331

:NTIMER_1338
0AC6: 13@ = label @NTIMER_2681 offset
SAMP.ShowDialog(15, "{ffa500}Информация", 13@, "Выход", "", DIALOG_STYLE_MSGBOX)
SAMP.CmdRet

:NTIMER_1388
   SAMP.IsCommandTyped(20@)
if
0AD4: 21@ = scan_string 20@ format "%d" 8@
jf @NTIMER_1553
chatmsg "{ffa500}[timer]: Клавиша активации была изменена на [id:%d]" 16753920 8@
0AF1: write_int 8@ to_ini_file "cleo\save_settings\settings.ini" section "SelectKey" key "Key"
goto @NTIMER_1606

:NTIMER_1553
chatmsg "{ffa500}[timer]: Используйте /nkey [id key]" 16753920

:NTIMER_1606
SAMP.CmdRet

:NTIMER_1608
   SAMP.IsCommandTyped(22@)
if
0AD4: 23@ = scan_string 22@ format "%d %d" 1@ 2@
jf @NTIMER_1864
0093: 1@ = integer 1@ to_float
0093: 2@ = integer 2@ to_float
chatmsg "{ffa500}[timer]: Кординаты были изменены на %f %f (original X - 555 | Y - 40)" 16753920 1@ 2@
0AF3: write_float 1@ to_ini_file "cleo\save_settings\settings.ini" section "Position" key "X"
0AF3: write_float 2@ to_ini_file "cleo\save_settings\settings.ini" section "Position" key "Y"
goto @NTIMER_1924

:NTIMER_1864
chatmsg "{ffa500}[timer]: Используйте /npos [X pos] [Y pos]" 16753920

:NTIMER_1924
SAMP.CmdRet

:NTIMER_1926
   SAMP.IsCommandTyped(24@)
if
0AD4: 25@ = scan_string 24@ format "%d" 9@
jf @NTIMER_2098
chatmsg "{ffa500}[timer]: Cбив анимации изменено на %d [1-Включен|0-Отключен]" 16753920 9@
0AF1: write_int 9@ to_ini_file "cleo\save_settings\settings.ini" section "Sbiv" key "Active"
goto @NTIMER_2166

:NTIMER_2098
chatmsg "{ffa500}[timer]: Используйте /nsbiv [1-Включен|0-Отключен]" 16753920

:NTIMER_2166
SAMP.CmdRet

:NTIMER_2168
   SAMP.IsCommandTyped(26@)
if
0AD4: 27@ = scan_string 26@ format "%d" 17@
jf @NTIMER_2367
chatmsg "{ffa500}[timer]: Автоупотребление нарко при ломке изменено на %d [1-Включен|0-Отключен]" 16753920 17@
0AF1: write_int 17@ to_ini_file "cleo\save_settings\settings.ini" section "AutoUsedrugs" key "Active"
goto @NTIMER_2442

:NTIMER_2367
chatmsg "{ffa500}[timer]: Используйте /nautolomka [1-Включена|0-Отключена]" 16753920

:NTIMER_2442
SAMP.CmdRet

:NTIMER_2444
   SAMP.IsCommandTyped(28@)
if
0AD4: 29@ = scan_string 28@ format "%d" 18@
jf @NTIMER_2622
18@ -= 1
0085: 19@ = 18@ // (int)
19@ += 1
chatmsg "{ffa500}[timer]: Вы изменили время таймера на %d" 16753920 19@
0AF1: write_int 18@ to_ini_file "cleo\save_settings\settings.ini" section "SelectTime" key "Time"
goto @NTIMER_2679

:NTIMER_2622
chatmsg "{ffa500}[timer]: Используйте /ntime [timer sec]" 16753920

:NTIMER_2679
SAMP.CmdRet

:NTIMER_2681
hex
 7B 46 46 46 46 46 46 7D 2F 6E 6B 65 79 20 2D 20
 D3 F1 F2 E0 ED EE E2 E8 F2 FC 20 EA EB E0 E2 E8
 F8 F3 20 E0 EA F2 E8 E2 E0 F6 E8 E8 20 F1 EA F0
 E8 EF F2 E0 2E 0A 7B 46 46 46 46 46 46 7D 2F 6E
 70 6F 73 20 2D 20 D3 F1 F2 E0 ED EE E2 E8 F2 FC
 20 EF EE E7 E8 F6 E8 FE 20 F2 E5 EA F1 F2 E0 20
 ED E0 20 FD EA F0 E0 ED E5 2E 20 0A 7B 46 46 46
 46 46 46 7D 2F 6E 73 62 69 76 20 2D 20 CE F2 EA
 EB FE F7 E8 F2 FC 2F C2 EA EB FE F7 E8 F2 FC 20
 F1 E1 E8 E2 20 E0 ED E8 EC E0 F6 E8 E8 2E 20 5B
 31 2D C2 EA EB FE F7 E5 ED 7C 30 2D CE F2 EA EB
 FE F7 E5 ED 5D 0A 7B 46 46 46 46 46 46 7D 2F 6E
 61 75 74 6F 6C 6F 6D 6B 61 20 2D 20 CE F2 EA EB
 FE F7 E8 F2 FC 2F C2 EA EB FE F7 E8 F2 FC 20 E0
 E2 F2 EE 20 F3 EF EE F2 F0 E5 E1 EB E5 ED E8 E5
 20 ED E0 F0 EA EE 20 EF F0 E8 20 EB EE EC EA E5
 2E 20 5B 31 2D C2 EA EB FE F7 E5 ED 7C 30 2D CE
 F2 EA EB FE F7 E5 ED 5D 0A 7B 46 46 46 46 46 46
 7D 2F 6E 74 69 6D 65 20 2D 20 D3 F1 F2 E0 ED EE
 E2 E8 F2 FC 20 E2 F0 E5 EC FF 20 F2 E0 E9 EC E5
 F0 E0 2E 00
end

:NTIMER_3005
18@ -= 1
SAMP.CmdRet
HEX в конце лишь текст в диалоге.


Ты его не скомпилишь из-за кривых меток что тебе дали, если не скомпилится код что дал я - установи опкоды SampFuncs'a.
Скинь мне свой "Settings.ini", чтобы в дальнейшем не было проблем с метками.
 

JopaZukkala

Новичок
6
0
Код с нормальными метками:
CLEO:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread "NTIMER"
if
  $707 == 0
jf @NTIMER_30
0A93: end_custom_thread

:NTIMER_30
wait 0
   SAMP.Available
jf @NTIMER_30
if
0AAB:   file_exists "cleo\narko_timer.ini"
jf @NTIMER_102
0B00: delete_file "cleo\narko_timer.ini" // IF and SET

:NTIMER_102
log "[timeUsedrugs] Loaded! by Alllss"
if
0AAB:   file_exists "cleo\save_settings\settings.ini"
jf @NTIMER_192
goto @NTIMER_244

:NTIMER_192
chatmsg "{919191}[Error] Файл настроек не найден!" 9539985
0A93: end_custom_thread

:NTIMER_244
0B34: samp register_client_command "nhelp" to_label @NTIMER_1338
0B34: samp register_client_command "nkey" to_label @NTIMER_1388
0B34: samp register_client_command "npos" to_label @NTIMER_1608
0B34: samp register_client_command "nsbiv" to_label @NTIMER_1926
0B34: samp register_client_command "nautolomka" to_label @NTIMER_2168
0B34: samp register_client_command "ntime" to_label @NTIMER_2444

:NTIMER_331
wait 0
if
   SAMP.IsLocalPlayerSpawned
jf @NTIMER_1331
alloc 9@ 64
alloc 8@ 64
alloc 1@ 64
alloc 2@ 64
alloc 17@ 64
alloc 18@ 64
0AF0: 8@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "SelectKey" key "Key"
0AF2: 1@ = get_float_from_ini_file "cleo\save_settings\settings.ini" section "Position" key "X"
0AF2: 2@ = get_float_from_ini_file "cleo\save_settings\settings.ini" section "Position" key "Y"
0AF0: 17@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "AutoUsedrugs" key "Active"
0AF0: 18@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "SelectTime" key "Time"
0AF0: 18@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "SelectTime" key "Time"
16@ = 3
0@ = Render.CreateFont("Arial", 11, 5)

:NTIMER_741
wait 0
alloc 3@ 64
format 3@ "Можно юзать!"
Render.DrawText(0@, 3@, 10@, 12@, -16724992)
free 3@
0B60: convert_game_screen_coords 1@ 2@ to_window_screen_coords 10@ 12@
if and
  17@ == 1
   Actor.Animation($PLAYER_ACTOR) == "crckdeth1"
jf @NTIMER_858
16@ = 0
goto @NTIMER_936

:NTIMER_858
if
   Actor.Animation($PLAYER_ACTOR) == "M_smk_drag"
jf @NTIMER_900
16@ = 1
goto @NTIMER_936

:NTIMER_900
if
key_down 8@
jf @NTIMER_936
if
   not SAMP.ChatInputOpened
jf @NTIMER_936
16@ = 2

:NTIMER_936
   not 16@ >= 3
jf @NTIMER_741
0C74: 4@ = create_timer_interval 1000 on_label @NTIMER_3005
if or
  16@ == 2
  17@ == 1
jf @NTIMER_1176
6@ = Actor.Health($PLAYER_ACTOR)
7@ = 160
0062: 7@ -= 6@ // (int)
7@ /= 10
if
  7@ >= 16
jf @NTIMER_1044
7@ = 15

:NTIMER_1044
say "/usedrugs %d" 7@
0AF0: 9@ = get_int_from_ini_file "cleo\save_settings\settings.ini" section "Sbiv" key "Active"
if
  9@ == 1
jf @NTIMER_1176
if
   not Actor.Driving($PLAYER_ACTOR)
jf @NTIMER_1169
0792: disembark_instantly_actor $PLAYER_ACTOR
9@ = 0
goto @NTIMER_1169

:NTIMER_1169
goto @NTIMER_1176

:NTIMER_1176
wait 0
alloc 3@ 64
0C7C: 5@ = get_timer 4@ time_left
5@ /= 100
format 3@ "Осталось %d.%dсек." 18@ 5@
Render.DrawText(0@, 3@, 10@, 12@, -1)
free 3@
   not 18@ > -1
jf @NTIMER_1176
0C78: set_timer 4@ active 0
018C: play_sound 1057 at 0.0 0.0 0.0
Render.ReleaseFont(0@)
free 9@
free 8@
free 1@
free 2@
free 17@
free 18@

:NTIMER_1331
goto @NTIMER_331

:NTIMER_1338
0AC6: 13@ = label @NTIMER_2681 offset
SAMP.ShowDialog(15, "{ffa500}Информация", 13@, "Выход", "", DIALOG_STYLE_MSGBOX)
SAMP.CmdRet

:NTIMER_1388
   SAMP.IsCommandTyped(20@)
if
0AD4: 21@ = scan_string 20@ format "%d" 8@
jf @NTIMER_1553
chatmsg "{ffa500}[timer]: Клавиша активации была изменена на [id:%d]" 16753920 8@
0AF1: write_int 8@ to_ini_file "cleo\save_settings\settings.ini" section "SelectKey" key "Key"
goto @NTIMER_1606

:NTIMER_1553
chatmsg "{ffa500}[timer]: Используйте /nkey [id key]" 16753920

:NTIMER_1606
SAMP.CmdRet

:NTIMER_1608
   SAMP.IsCommandTyped(22@)
if
0AD4: 23@ = scan_string 22@ format "%d %d" 1@ 2@
jf @NTIMER_1864
0093: 1@ = integer 1@ to_float
0093: 2@ = integer 2@ to_float
chatmsg "{ffa500}[timer]: Кординаты были изменены на %f %f (original X - 555 | Y - 40)" 16753920 1@ 2@
0AF3: write_float 1@ to_ini_file "cleo\save_settings\settings.ini" section "Position" key "X"
0AF3: write_float 2@ to_ini_file "cleo\save_settings\settings.ini" section "Position" key "Y"
goto @NTIMER_1924

:NTIMER_1864
chatmsg "{ffa500}[timer]: Используйте /npos [X pos] [Y pos]" 16753920

:NTIMER_1924
SAMP.CmdRet

:NTIMER_1926
   SAMP.IsCommandTyped(24@)
if
0AD4: 25@ = scan_string 24@ format "%d" 9@
jf @NTIMER_2098
chatmsg "{ffa500}[timer]: Cбив анимации изменено на %d [1-Включен|0-Отключен]" 16753920 9@
0AF1: write_int 9@ to_ini_file "cleo\save_settings\settings.ini" section "Sbiv" key "Active"
goto @NTIMER_2166

:NTIMER_2098
chatmsg "{ffa500}[timer]: Используйте /nsbiv [1-Включен|0-Отключен]" 16753920

:NTIMER_2166
SAMP.CmdRet

:NTIMER_2168
   SAMP.IsCommandTyped(26@)
if
0AD4: 27@ = scan_string 26@ format "%d" 17@
jf @NTIMER_2367
chatmsg "{ffa500}[timer]: Автоупотребление нарко при ломке изменено на %d [1-Включен|0-Отключен]" 16753920 17@
0AF1: write_int 17@ to_ini_file "cleo\save_settings\settings.ini" section "AutoUsedrugs" key "Active"
goto @NTIMER_2442

:NTIMER_2367
chatmsg "{ffa500}[timer]: Используйте /nautolomka [1-Включена|0-Отключена]" 16753920

:NTIMER_2442
SAMP.CmdRet

:NTIMER_2444
   SAMP.IsCommandTyped(28@)
if
0AD4: 29@ = scan_string 28@ format "%d" 18@
jf @NTIMER_2622
18@ -= 1
0085: 19@ = 18@ // (int)
19@ += 1
chatmsg "{ffa500}[timer]: Вы изменили время таймера на %d" 16753920 19@
0AF1: write_int 18@ to_ini_file "cleo\save_settings\settings.ini" section "SelectTime" key "Time"
goto @NTIMER_2679

:NTIMER_2622
chatmsg "{ffa500}[timer]: Используйте /ntime [timer sec]" 16753920

:NTIMER_2679
SAMP.CmdRet

:NTIMER_2681
hex
 7B 46 46 46 46 46 46 7D 2F 6E 6B 65 79 20 2D 20
 D3 F1 F2 E0 ED EE E2 E8 F2 FC 20 EA EB E0 E2 E8
 F8 F3 20 E0 EA F2 E8 E2 E0 F6 E8 E8 20 F1 EA F0
 E8 EF F2 E0 2E 0A 7B 46 46 46 46 46 46 7D 2F 6E
 70 6F 73 20 2D 20 D3 F1 F2 E0 ED EE E2 E8 F2 FC
 20 EF EE E7 E8 F6 E8 FE 20 F2 E5 EA F1 F2 E0 20
 ED E0 20 FD EA F0 E0 ED E5 2E 20 0A 7B 46 46 46
 46 46 46 7D 2F 6E 73 62 69 76 20 2D 20 CE F2 EA
 EB FE F7 E8 F2 FC 2F C2 EA EB FE F7 E8 F2 FC 20
 F1 E1 E8 E2 20 E0 ED E8 EC E0 F6 E8 E8 2E 20 5B
 31 2D C2 EA EB FE F7 E5 ED 7C 30 2D CE F2 EA EB
 FE F7 E5 ED 5D 0A 7B 46 46 46 46 46 46 7D 2F 6E
 61 75 74 6F 6C 6F 6D 6B 61 20 2D 20 CE F2 EA EB
 FE F7 E8 F2 FC 2F C2 EA EB FE F7 E8 F2 FC 20 E0
 E2 F2 EE 20 F3 EF EE F2 F0 E5 E1 EB E5 ED E8 E5
 20 ED E0 F0 EA EE 20 EF F0 E8 20 EB EE EC EA E5
 2E 20 5B 31 2D C2 EA EB FE F7 E5 ED 7C 30 2D CE
 F2 EA EB FE F7 E5 ED 5D 0A 7B 46 46 46 46 46 46
 7D 2F 6E 74 69 6D 65 20 2D 20 D3 F1 F2 E0 ED EE
 E2 E8 F2 FC 20 E2 F0 E5 EC FF 20 F2 E0 E9 EC E5
 F0 E0 2E 00
end

:NTIMER_3005
18@ -= 1
SAMP.CmdRet
HEX в конце лишь текст в диалоге.


Ты его не скомпилишь из-за кривых меток что тебе дали, если не скомпилится код что дал я - установи опкоды SampFuncs'a.
Бля , как же всё запарно , просто хотел поменять команду в кс .
 

™ ChipFamily

По ту сторону надежды.
5,144
1,980
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

Вложения

  • narko_timer.cs
    27.1 KB · Просмотры: 10

w140

Известный
126
29
Драрути, кто может сменить кнопки активации?
Сейчас стоит: i+1
Надо сменить: kk
Был бы очень благодарен :3
 

Вложения

  • Who-Shoot-s.cs
    17.6 KB · Просмотры: 6

™ ChipFamily

По ту сторону надежды.
5,144
1,980
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

checkdasound

Известный
Проверенный
963
406

Вложения

  • Who-Shoot-s.cs
    19.6 KB · Просмотры: 8
  • Нравится
Реакции: w140