CLEO Help Help - Bulletproof tires

CLEO related
Status
Not open for further replies.

hacker127

Active member
Joined
Jul 17, 2019
Messages
44
Reaction score
2
I need help scripting for bulletproof tires. I'd like the bulletproof tires to turn on when I put an "ý" and not go for a shot, but if I put an "ý" again then they turned off and went for a shot again. Please help rewrite my code if necessary.

Code:
{$CLEO .cs}

0000: NOP

wait 8500

while true
    wait 0
   
if
0AB0: 57
then
    repeat
    wait 0
    until 8AB0: 55
    if 12@ == 0
    then
        0AD1: "~Y~WHEELS ~G~ON" time 1337
        018C: play_sound 1083 at 0.0 0.0 0.0
        12@ = 1
    else
        0AD1: "~Y~WHEELS ~R~OFF" time 1337
        018C: play_sound 1084 at 0.0 0.0 0.0
        12@ = 0
    end
end

if and
12@ == 1
:LOCKHP_94
wait 0
if
   Player.Defined($PLAYER_ACTOR)
else_jump @LOCKHP_94
if
0449:   actor $PLAYER_ACTOR in_a_car
else_jump @LOCKHP_94
if
847A:   not actor $PLAYER_ACTOR driving_bike
else_jump @LOCKHP_197
0@ = Actor.CurrentCar($PLAYER_ACTOR)
1@ = Car.Health(0@)
0699: set_car 0@ repair_tire 2
0699: set_car 0@ repair_tire 1
0699: set_car 0@ repair_tire 3
0699: set_car 0@ repair_tire 0
jump @LOCKHP_94


:LOCKHP_197
0@ = Actor.CurrentCar($PLAYER_ACTOR)
1@ = Car.Health(0@)
0A30: repair_car 0@
Car.Health(0@) = 1@
jump @LOCKHP_94

end
 
Last edited:
Status
Not open for further replies.
Top