Бензобак в 100 литров
:BENZIN
thread 'BENZIN'
marker.CreateIconWithoutSphere($TOPL1,55,2201.8188,2476.791,17.0937)
marker.CreateIconWithoutSphere($TOPL2,55,2640.4836,1107.9344,17.0547)
marker.CreateIconWithoutSphere($TOPL3,55,2116.1138,921.5753,17.0547)
marker.CreateIconWithoutSphere($TOPL4,55,384.9267,2602.614,16.4844)
marker.CreateIconWithoutSphere($TOPL5,55,391.5619,2569.0234,16.3672)
marker.CreateIconWithoutSphere($TOPL6,55,-342.7661,2678.0959,63.5189)
marker.CreateIconWithoutSphere($TOPL7,55,-927.9468,2664.6614,44.5246)
marker.CreateIconWithoutSphere($TOPL8,55,-1328.4524,2677.6138,50.0625)
marker.CreateIconWithoutSphere($TOPL9,55,70.0441,1217.7223,18.8117)
marker.CreateIconWithoutSphere($TOPL10,55,-2411.0598,977.6907,45.4609)
marker.CreateIconWithoutSphere($TOPL11,55,-2026.5817,156.5791,29.0391)
marker.CreateIconWithoutSphere($TOPL12,55,-1606.4712,-2712.9067,47.9788)
marker.CreateIconWithoutSphere($TOPL13,55,-91.6131,-1169.0676,1.867)
marker.CreateIconWithoutSphere($TOPL14,55,1938.9485,-1773.2655,12.9043)
marker.CreateIconWithoutSphere($TOPL15,55,1382.2828,462.5316,19.6513)
marker.CreateIconWithoutSphere($TOPL16,55,-1673.9116,414.3242,7.1797)
:BENZIN_1
wait 0
if
Actor.Driving($PLAYER_ACTOR)
jf @BENZIN_1
if
not Actor.InCar($PLAYER_ACTOR, $MyCar)
jf @BENZIN_2
03C0: $MyCar = actor $PLAYER_ACTOR car
if 2
8137: NOT car $MyCar id == #BMX
8137: NOT car $MyCar id == #MTBIKE
8137: NOT car $MyCar id == #BIKE
jf @BENZIN_1
2@ = 200
3@ = 10001
0209: $BENZIN = random_int 2@ 3@
:BENZIN_2
wait 0
if
8119: not car $MyCar wrecked
jf @BENZIN_8
if 5
8100: not actor $PLAYER_ACTOR near_point_in_car 2205.4712 2470.1516 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car -1684.6312 407.8672 7.1797 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2205.3982 2480.5466 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2199.3621 2480.4089 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car -1671.7809 414.6198 7.1797 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2199.1409 2469.9216 9.8203 radius 5.0 5.0 5.0 sphere 1
jf @BENZIN_9
if 5
8100: not actor $PLAYER_ACTOR near_point_in_car 2640.0896 1103.14 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2640.0896 1103.14 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2645.2876 1109.4246 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2639.866 1109.4246 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2634.428 1109.1266 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2108.9958 923.1729 9.8203 radius 5.0 5.0 5.0 sphere 1
jf @BENZIN_9
if 5
8100: not actor $PLAYER_ACTOR near_point_in_car 2634.5811 1103.4642 10.813 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2115.1096 923.4273 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2120.8706 923.607 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2120.7622 917.1142 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2114.8164 917.1771 9.8203 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 2108.8584 916.7469 9.8203 radius 5.0 5.0 5.0 sphere 1
jf @BENZIN_9
if 5
8100: not actor $PLAYER_ACTOR near_point_in_car 384.9267 2602.614 15.4844 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 391.552 2569.1575 15.3672 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car -342.7661 2678.0959 63.5189 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car -927.9468 2664.6614 41.2364 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car -1328.4524 2677.6138 50.0625 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 70.0441 1217.7223 18.8117 radius 5.0 5.0 5.0 sphere 1
jf @BENZIN_9
if 5
8100: not actor $PLAYER_ACTOR near_point_in_car -2407.6646 976.3728 45.2969 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car -2029.2676 156.5764 28.8359 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car -1605.3003 -2713.7961 48.5335 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car -87.203 -1163.811 2.2313 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 1939.4865 -1771.0599 13.3828 radius 5.0 5.0 5.0 sphere 1
8100: not actor $PLAYER_ACTOR near_point_in_car 1380.7777 462.3883 20.1031 radius 5.0 5.0 5.0 sphere 1
jf @BENZIN_9
if
not $BENZIN <= 10
jf @BENZIN_7
if or
00E1: key_pressed 0 16
00E1: key_pressed 0 14
jf @BENZIN_4
$PACXOD = 8
4@ = 0.0
02E3: 1@ = car $MyCar speed
:BENZIN_3
wait 1
if
8119: not car $MyCar wrecked
jf @BENZIN_8
if
Actor.Driving($PLAYER_ACTOR)
jf @BENZIN_6
if
not 1@ == 0.0
jf @BENZIN_4
4@ += 5.0
$PACXOD -= 1
if 1
0025: 1@ > 4@
not $PACXOD == 1
jf @BENZIN_5
jump @BENZIN_3
:BENZIN_4
wait 1000
$PACXOD = 1
jump @BENZIN_5
:BENZIN_5
wait 200
if
8119: not car $MyCar wrecked
jf @BENZIN_8
if
Actor.Driving($PLAYER_ACTOR)
jf @BENZIN_6
if
Actor.InCar($PLAYER_ACTOR, $MyCar)
jf @BENZIN_1
0060: $BENZIN -= $PACXOD
008B: $BENZIN2 = $BENZIN
$BENZIN2 /= 100
04F7: status_text $BENZIN 0 line 2 'SPEEDO'
jump @BENZIN_2
:BENZIN_6
wait 50
if
8119: not car $MyCar wrecked
jf @BENZIN_8
02D4: unknown_turn_off_car $MyCar engine
if
not Actor.Driving($PLAYER_ACTOR)
jf @BENZIN_6
0151: remove_status_text $BENZIN2
jump @BENZIN_1
:BENZIN_7
wait 0
if
8119: not car $MyCar wrecked
jf @BENZIN_8
if
1@ >= 2.0
jf @BENZIN_6
wait 900
02E3: 1@ = car $MyCar speed
1@ -= 1.0
Car.SetMaxSpeed($MyCar, 1@)
04BA: set_car $MyCar speed_instantly 1@
jump @BENZIN_7
:BENZIN_8
wait 0
0151: remove_status_text $BENZIN2
Car.RemoveReferences($MyCar)
jump @BENZIN_1
:BENZIN_9
wait 10
if 1
not $BENZIN >= 10000
Player.Money($PLAYER_CHAR) > 1
jf @BENZIN_2
Player.Money($PLAYER_CHAR) += -2
$BENZIN += 40
$PACXOD -= 1
jump @BENZIN_5