CLEO Help Please help

CLEO related
Status
Not open for further replies.

hacker127

Active member
Joined
Jul 17, 2019
Messages
44
Reaction score
2
I need help with the script on the Jump car. I'd like Jump to turn on when I give an "ah" but it only jumped when I gave an "ah," but again the "ii" then the Jump goes off and if I give an "ah" it doesn't pop up again. Such switching off and switching on the Jump. Please help rewrite my code if necessary. (It's 2 scripts in one but misspelled because I'm only going to turn on the Jump "i" but I can't be told)



Code:
{$CLEO}

wait 0

0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED445' 0@ //// Get gxt text address by gxt name
0AA5: call 0x718600 2 pop 2 0@ "~1~%"

1@ = 0

while true
    wait 0
    if 0AB0:   key_pressed 57
    then
        if 1@ == 0
        then
            0ACD: show_text_highpriority "~P~BHOP ~G~ON" time 1337
            018C: play_sound 1083 at 0.0 0.0 0.0
            1@ = 1
            wait 200
        else
            0ACD: show_text_highpriority "~P~BHOP ~R~OFF" time 1337
            018C: play_sound 1084 at 0.0 0.0 0.0
            1@ = 0
            wait 200
        end
    end

    if 1@ == 1
    then
:NONAME_2
wait 10
0AB4: 1@ = var 6
if and
   not 1@ == 1
key_down 56
   Actor.Driving($PLAYER_ACTOR)
else_jump @NONAME_2
0@ = Actor.CurrentCar($PLAYER_ACTOR)
07D5: set_car 0@ velocity_in_direction_XYZ 0.0 0.0 0.2 rotation_velocitiesXY 0.0 0.0 unk 0.0
wait 200
jump @NONAME_2
    end
end
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
937
Location
Lithuania
PHP:
{$CLEO .cs}

0000: NOP

wait 8500

while true
    wait 0
    
if 
0AB0: 57
then
    repeat
    wait 0
    until 8AB0: 57 // anti spam key
    if 1@ == 0
    then
        0AD1: "~P~BHOP ~G~ON" time 1337
        018C: play_sound 1083 at 0.0 0.0 0.0
        1@ = 1
    else
        0AD1: "~P~BHOP ~R~OFF" time 1337
        018C: play_sound 1084 at 0.0 0.0 0.0
        1@ = 0
    end
end

if and
1@ == 1
0AB0: 56
Actor.Driving($PLAYER_ACTOR)
then
    0@ = Actor.CurrentCar($PLAYER_ACTOR)
    07D5: set_car 0@ velocity_in_direction_XYZ 0.0 0.0 0.2 rotation_velocitiesXY 0.0 0.0 unk 0.0
    wait 200
end

end
 
Status
Not open for further replies.
Top