Napisano dnia: 2010-12-19 21:41:24
Witam zrobiłem skrypt który sprawi że jeśli gracz ustawi dowolny samochód w wyznaczonym punkcie silnik zgaśnie po wyjściu. Jednak silnik nie gaśnie.
Kod:
{$CLEO .cs}
0000: NOP
:petla
wait 10
if
Player.Defined($PLAYER_CHAR)
jf @petla
:petla2
wait 10
if
0449: actor $PLAYER_ACTOR in_a_car
jf @petla2
00D9: 1@ = actor $PLAYER_ACTOR car
:petla3
wait 10
if
0103: actor $PLAYER_ACTOR in_sphere 2497.9958 -1683.34 12.9839 radius 3.0 3.0 3.0 sphere 0 stopped_in_car
jf @petla3
:petla4
wait 10
if
0633: AS_actor $PLAYER_ACTOR exit_car
jf @petla4
02D4: car 1@ turn_off_engine
jump @petla
0A93: end_custom_thread
0000: NOP
:petla
wait 10
if
Player.Defined($PLAYER_CHAR)
jf @petla
:petla2
wait 10
if
0449: actor $PLAYER_ACTOR in_a_car
jf @petla2
00D9: 1@ = actor $PLAYER_ACTOR car
:petla3
wait 10
if
0103: actor $PLAYER_ACTOR in_sphere 2497.9958 -1683.34 12.9839 radius 3.0 3.0 3.0 sphere 0 stopped_in_car
jf @petla3
:petla4
wait 10
if
0633: AS_actor $PLAYER_ACTOR exit_car
jf @petla4
02D4: car 1@ turn_off_engine
jump @petla
0A93: end_custom_thread