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

Qsany

Потрачен
464
147
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
опкод спавна плиз очень срочно
 

Sudak

Известный
Проверенный
31
73
Как высчитать квантернион для персонажа имея угол его поворота
 

Bananious

Известный
238
17
Я переустановил SB! Вообщем я написал скрипт нажимаю компилировать ввожу название и мне выдает [имя файла].scm а .cs нету что делать? HELP!!!
 

Dimoman

Новичок
24
0
Ребятки, помогите, плиз! Написал скрипт который аттачит транспорт к Andromada. Если сесть в Andromada, затем выйти из неё и нажать присесть, то игра зависает. Зависает именно от присесть (переназначал присесть на другую клавишу в меню игры). Я ХЗ куда копать.
Код:
//-------------MAIN---------------
thread 'C_160'

:C_160_11
wait 0
if
   Player.Defined($PLAYER_CHAR)
else_jump @C_160_11
wait 0
if
   Actor.DrivingVehicleType($PLAYER_ACTOR, #ANDROM)
else_jump @C_160_11
0@ = Actor.CurrentCar($PLAYER_ACTOR)
jump @C_160_69

:C_160_69
wait 0
if
   not Actor.DrivingVehicleType($PLAYER_ACTOR, #ANDROM)
else_jump @C_160_69
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_69
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 0.0 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = 0.00" time 3000
wait 1500
jump @C_160_202

:C_160_202
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_287
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_287

:C_160_287
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_287
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.05 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.05" time 3000
wait 1500
jump @C_160_398

:C_160_398
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_483
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_483

:C_160_483
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_483
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.1 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.1" time 3000
wait 1500
jump @C_160_593

:C_160_593
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_678
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_678

:C_160_678
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_678
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.15 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.15" time 3000
wait 1500
jump @C_160_789

:C_160_789
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_874
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_874

:C_160_874
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_874
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.2 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.2" time 3000
wait 1500
jump @C_160_984

:C_160_984
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_1069
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_1069

:C_160_1069
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_1069
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.25 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.25" time 3000
wait 1500
jump @C_160_1180

:C_160_1180
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_1265
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_1265

:C_160_1265
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_1265
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.3 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.3" time 3000
wait 1500
jump @C_160_1375

:C_160_1375
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_1460
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_1460

:C_160_1460
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_1460
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.35 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.35" time 3000
wait 1500
jump @C_160_1571

:C_160_1571
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_1656
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_1656

:C_160_1656
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_1656
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.4 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.4" time 3000
wait 1500
jump @C_160_1766

:C_160_1766
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_1851
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_1851

:C_160_1851
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_1851
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.45 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
32@ = 0
0ACD: show_text_highpriority "COORDINATE Z = -0.45" time 3000
wait 1500
jump @C_160_1969

:C_160_1969
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_2054
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_2054

:C_160_2054
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_2054
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.5 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.5" time 3000
wait 1500
jump @C_160_2164

:C_160_2164
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_2249
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_2249

:C_160_2249
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_2249
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.55 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.55" time 3000
wait 1500
jump @C_160_2360

:C_160_2360
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_2445
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_2445

:C_160_2445
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_2445
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.6 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.6" time 3000
wait 1500
jump @C_160_2555

:C_160_2555
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_2640
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_2640

:C_160_2640
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_2640
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.65 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.65" time 3000
wait 1500
jump @C_160_2751

:C_160_2751
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_2836
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_2836

:C_160_2836
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_2836
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.7 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.7" time 3000
wait 1500
jump @C_160_2946

:C_160_2946
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_3031
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_3031

:C_160_3031
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_3031
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.75 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.75" time 3000
wait 1500
jump @C_160_3142

:C_160_3142
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_3227
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_3227

:C_160_3227
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_3227
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.8 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.8" time 3000
wait 1500
jump @C_160_3337

:C_160_3337
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_3422
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_3422

:C_160_3422
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_3422
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.85 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.85" time 3000
wait 1500
jump @C_160_3533

:C_160_3533
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_3618
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_3618

:C_160_3618
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_3618
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.9 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.9" time 3000
wait 1500
jump @C_160_3728

:C_160_3728
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_3813
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_3813

:C_160_3813
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_3813
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -0.95 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -0.95" time 3000
wait 1500
jump @C_160_3924

:C_160_3924
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_4009
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_4009

:C_160_4009
wait 0
if
00E1:   player 0 pressed_key 18
else_jump @C_160_4009
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0683: attach_car 3@ to_car 0@ with_offset 0.0 0.0 -1.0 rotation 0.0 0.0 0.0
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "COORDINATE Z = -1.0" time 3000
wait 1500
jump @C_160_4119

:C_160_4119
wait 0
if
0AB0:   key_pressed 77
else_jump @C_160_69
3@ = Actor.CurrentCar($PLAYER_ACTOR)
0684: detach_car 3@ 0.0 0.0 0.1 collision_detection 1
Car.RemoveReferences(3@)
0ACD: show_text_highpriority "CAR DETACHED" time 3000
wait 1500
jump @C_160_69
Скрипт работает как надо. Только зависает если нажать "присесть".
 

клешь рояль

Известный
1,255
551
Я не знаю как начать но допустим, я хочу дать файл человеку протестировать на 1 день и я хочу если пройдёт 1 день то файл удалит код/удалит себя/заблокируется или что то такое, как можно такое сделать? Или есть тема с таким?
 

Maks4971

Новичок
1
0
Sanny Builder 3
что означает?(1@ 2@ примеры):
1@ *= 2@
1@ >= 2@
1@ <= 2@
1@ += 2@
1@ -= 2@
Скажите пожалуйстааа
 
Последнее редактирование:

™ ChipFamily

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

CLEO:
// This file was decompiled using SASCM.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP

:Label000002
8AFA:   not
004D: jump_if_false @Label000016
0001: wait 0 ms
0002: jump @Label000002

:Label000016
0001: wait 0 ms
00D6: if
 

hnnssy

Известный
Друг
2,684
2,750
Sanny Builder 3
что означает?(1@ 2@ примеры):
1@ *= 2@
1@ >= 2@
1@ <= 2@
1@ += 2@
1@ -= 2@
Скажите пожалуйстааа
1@ умножается на 2@
если 1@ больше или равно 2@
если 1@ меньше или равно 2@
к 1@ прибавляется 2@
от 1@ вычитается 2@
неужто не ясно
 
  • Нравится
Реакции: Maks4971

#saniwe

глаза пофикси
218
107
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
решено
 
Последнее редактирование:

astap_

Известный
Всефорумный модератор
626
597
При открытые диалога с ID 6192, чтобы сразу нажимался Enter.
Не получается.

CLEO:
// This file was decompiled using SASCM.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP

:Label000002
8AFA:   not
004D: jump_if_false @Label000016
0001: wait 0 ms
0002: jump @Label000002

:Label000016
0001: wait 0 ms
00D6: if
CLEO:
{$CLEO}
0000:
  
:Label
wait 0
if
0B4C:  samp is_dialog_active 6192
jf @Label 
wait 20
0C72: set_virtual_key 13 true
wait 20
0C72: set_virtual_key 13 false