Napisano dnia: 2010-12-10 13:54:41
Witam zrobiłem skrypt który sprawia że heli po nas leci. Problem zaczyna się kiedy ma lecieć. Spawnuje się spoko lecz kiedy ma do mnie lecieć to stoi jak ta czapa i nic.
Kod:
{$CLEO .cs}
0000: NOP
:petla
wait 10
if
Player.Defined($PLAYER_CHAR)
jf @petla
0247: request_model #MAVERICK
0247: request_model 17
038B: load_requested_models
:klawisze
wait 10
if and
0AB0: key_pressed 0x78
jf @klawisze
00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@
1@ += 1.5
2@ += 1.5
00A5: 4@ = create_car #MAVERICK at 358.7722 2471.9451 16.095
0175: set_car 4@ Z_angle_to 1.7434
0129: 5@ = create_actor_pedtype 23 model 17 in_car 4@ driverseat
0186: 32@ = create_marker_above_car 4@
0743: heli 4@ fly_to 1@ 2@ 3@ altitude 0.0 0.0
:nacisnal
wait 10
if and
00E1: player 0 pressed_key 16
00E1: player 0 pressed_key 15
0206: actor $PLAYER_ACTOR near_car 4@ radius 5.0 5.0 3.0 flag 0 on_foot
jf @nacisnal
05CA: AS_actor $PLAYER_ACTOR enter_car 4@ passenger_seat 0 10000 ms
:wsiadl
wait 10
if
00DB: actor $PLAYER_ACTOR in_car 4@
jf @wsiadl
0743: heli 4@ fly_to -2244.48 129.14 34.56 altitude 0.0 0.0
0A93: end_custom_thread
0000: NOP
:petla
wait 10
if
Player.Defined($PLAYER_CHAR)
jf @petla
0247: request_model #MAVERICK
0247: request_model 17
038B: load_requested_models
:klawisze
wait 10
if and
0AB0: key_pressed 0x78
jf @klawisze
00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@
1@ += 1.5
2@ += 1.5
00A5: 4@ = create_car #MAVERICK at 358.7722 2471.9451 16.095
0175: set_car 4@ Z_angle_to 1.7434
0129: 5@ = create_actor_pedtype 23 model 17 in_car 4@ driverseat
0186: 32@ = create_marker_above_car 4@
0743: heli 4@ fly_to 1@ 2@ 3@ altitude 0.0 0.0
:nacisnal
wait 10
if and
00E1: player 0 pressed_key 16
00E1: player 0 pressed_key 15
0206: actor $PLAYER_ACTOR near_car 4@ radius 5.0 5.0 3.0 flag 0 on_foot
jf @nacisnal
05CA: AS_actor $PLAYER_ACTOR enter_car 4@ passenger_seat 0 10000 ms
:wsiadl
wait 10
if
00DB: actor $PLAYER_ACTOR in_car 4@
jf @wsiadl
0743: heli 4@ fly_to -2244.48 129.14 34.56 altitude 0.0 0.0
0A93: end_custom_thread