Temat:
Menu znika po wyborze opcij
|
Napisano dnia: 2010-11-16 21:11:16
Witam zrobiłem narazie menu a jedną opcją ta druga ma zostac gdyż przyda mi się później. Otóż po naciśnieciu Shift menu zamiast zacząć misję znika:
Kod:
{$CLEO .cs}
0000: NOP
02A7: 1@ = create_icon_marker_and_sphere 22 at 2525.7141 -1703.9878 13.3803
:petla1
wait 10
if
0102: actor $PLAYER_ACTOR in_sphere 2525.7141 -1703.9878 13.3803 radius 1.2 1.2 3.0 sphere 1 stopped_on_foot
jf @petla1
054C: use_GXT_table 'SAPlus'
Player.CanMove($PLAYER_CHAR) = False
08D4: $Panel = create_panel_with_title 'FEM_MM' position 29.0 145.0 width 200.0 columns 1 interactive 1 background 1 alignment 1
08DB: set_panel $Panel column 0 header 'TITLE' data 'M1' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'
:czekaj_na_wybor
wait 0
if
00E1: player $PLAYER_CHAR pressed_key 15
jf @czekaj_na_wybor_test2
:czekaj_na_wybor_test2
if
00E1: player $PLAYER_CHAR pressed_key 16
jf @czekaj_na_wybor
0871: init_jump_table $Wybrane total_jumps 2 1 -1 jumps 0 @wybrane1 1 @wybrane2 0 -1 0 -1 0 -1 0 -1 0 -1
:wybrane1
jump @wyjdz
fade 0 1500
wait 1500
wait 1500
fade 1 1500
0A94: start_custom_mission "SAPlus/1.cm"
:wybrane2
jump @wyjdz
:wyjdz
08DA: remove_panel $Panel
03E6: remove_text_box
Player.CanMove($PLAYER_CHAR) = True
0A93: end_custom_thread
0000: NOP
02A7: 1@ = create_icon_marker_and_sphere 22 at 2525.7141 -1703.9878 13.3803
:petla1
wait 10
if
0102: actor $PLAYER_ACTOR in_sphere 2525.7141 -1703.9878 13.3803 radius 1.2 1.2 3.0 sphere 1 stopped_on_foot
jf @petla1
054C: use_GXT_table 'SAPlus'
Player.CanMove($PLAYER_CHAR) = False
08D4: $Panel = create_panel_with_title 'FEM_MM' position 29.0 145.0 width 200.0 columns 1 interactive 1 background 1 alignment 1
08DB: set_panel $Panel column 0 header 'TITLE' data 'M1' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'
:czekaj_na_wybor
wait 0
if
00E1: player $PLAYER_CHAR pressed_key 15
jf @czekaj_na_wybor_test2
:czekaj_na_wybor_test2
if
00E1: player $PLAYER_CHAR pressed_key 16
jf @czekaj_na_wybor
0871: init_jump_table $Wybrane total_jumps 2 1 -1 jumps 0 @wybrane1 1 @wybrane2 0 -1 0 -1 0 -1 0 -1 0 -1
:wybrane1
jump @wyjdz
fade 0 1500
wait 1500
wait 1500
fade 1 1500
0A94: start_custom_mission "SAPlus/1.cm"
:wybrane2
jump @wyjdz
:wyjdz
08DA: remove_panel $Panel
03E6: remove_text_box
Player.CanMove($PLAYER_CHAR) = True
0A93: end_custom_thread





