JUMP

Dzey

Member
Joined
Feb 1, 2018
Messages
22
Likes
0
Points
1
1
#1
How to make bike double jump auto? I tried every thing, it's not for me this script.
 
OP
OP
D

Dzey

Member
Joined
Feb 1, 2018
Messages
22
Likes
0
Points
1
1
#7
Can you make it? because i don't know how this code would show.
 

Hidend

Well-Known Member
Joined
Mar 4, 2013
Messages
446
Likes
3
Points
68
#8
Idk if this would work but leaving this here so someone can test it:

Code:
{$CLEO .cs}
0000:

REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

//make an off/on or you will check 24/7 for this
WHILE TRUE
IF
00DF: actor $PLAYER_ACTOR driving
THEN
    03C0: [email protected] = actor $PLAYER_ACTOR car
    IF
    0137: car [email protected] model == BIKEID //idk what it is
    THEN
        0819: [email protected] = actor $PLAYER_ACTOR distance_from_ground
        IF [email protected] <= 300 //idk what distance should be
        THEN
            0AB1: call @keyPress 2 key 17 time 250 //u should calculate the time too
        END
     END
END

:keyPress
// [email protected] - key, [email protected] - time
// Example: 0AB1: call @keyPress 2 key [email protected] time [email protected]

if 0AA2: [email protected] = load_library "User32.dll"
then
     if 0AA4: [email protected] = get_proc_address "keybd_event" library [email protected]
     then
         0AA5: call [email protected] num_params 4 pop 0 0 0 0 [email protected]
         wait [email protected]
         0AA5: call [email protected] num_params 4 pop 0 0 0x02 0 [email protected]
     end
end
0AB2: ret 0
 
OP
OP
D

Dzey

Member
Joined
Feb 1, 2018
Messages
22
Likes
0
Points
1
1
#9
I made like this but it's not working.

Code:
 {$CLEO .cs}

0000:

0B34: samp register_client_command "jump" to_label @table1
   
WHILE TRUE
WAIT 0                                       
if
0B61:  samp is_local_player_spawned
then      
    0B2B: samp [email protected] = get_player_id_by_actor_handle $PLAYER_ACTOR
    0B36: samp [email protected] = get_player_nickname [email protected]
    if
    0C14: strcmp string1 "Matt_James" string2 [email protected]
    then
        if and
        [email protected] == 1
        8B21: SAMP_CHAT_NOT_OPENED
        8B4C: SAMP_DIALOG_NOT_ACTIVE -1
        then
        0819: [email protected] = actor $PLAYER_ACTOR distance_from_ground
        IF [email protected] <= 0.5 //idk what distance should be
        THEN
        0AF8: samp add_message_to_chat "sd" color -1
            call @keyPress 2 key 17 time 850
            wait 100
        end
    end
end
end
end // end WHILE TRUE

:table1
if
[email protected] == 0
then
    wait 500
    0ACD: show_text_highpriority "JUMP ~g~ON~w~" time 1337
    018C: play_sound 1083 at 0.0 0.0 0.0
    [email protected] = 1
else
    wait 500
    0ACD: show_text_highpriority "JUMP ~r~OFF~w~" time 1337
    018C: play_sound 1084 at 0.0 0.0 0.0 
    [email protected] = 0
end
0B43: samp cmd_ret



:keyPress 
// [email protected] - key, [email protected] - time 
// Example: 0AB1: call @keyPress 2 key [email protected] time [email protected] 

if 0AA2: [email protected] = load_library "User32.dll" 
then 
    if 0AA4: [email protected] = get_proc_address "keybd_event" library [email protected] 
    then 
        0AA5: call [email protected] num_params 4 pop 0 0 0 0 [email protected] 
        wait [email protected] 
        0AA5: call [email protected] num_params 4 pop 0 0 0x02 0 [email protected] 
    end 
end 
0AB2: ret 0

:FAKE_KEYPRESS
[email protected] = 0xB73458 
005A: [email protected] += [email protected]  // (int)
0A8C: write_memory [email protected] size 1 value 255 virtual_protect 0
0AB2: ret 0[code/]
 

Opcode.eXe

Well-Known Member
Joined
Feb 18, 2013
Messages
1,317
Likes
63
Points
98
Location
( ͡° ͜ʖ ͡°)
Website
www.youtube.com
10
#10
Code:
{$CLEO .cs}
0000:

[email protected] = 0 // JUMP_COUNTER

WHILE TRUE
    WAIT 0
    IF
    047A:   actor $PLAYER_ACTOR driving_bike
    THEN   
        03C0: [email protected] = actor $PLAYER_ACTOR car       
        IF
        01F3:   car [email protected] in_air
        THEN
            repeat
                wait 0
            until 81F3: [email protected] in air
            [email protected] += 1
        END
        
        IF
        [email protected] == 2
        THEN
            repeat
                wait 0
                if
                847A:   actor $PLAYER_ACTOR driving_bike
                THEN
                    break
                end
                0819: [email protected] = actor $PLAYER_ACTOR distance_from_ground       
                0AB1: call @keyPress 2 key 17 time 10
            until  [email protected] > 3.0
            [email protected] = 0
        END
    END     
END

:keyPress
// [email protected] - key, [email protected] - time
// Example: 0AB1: call @keyPress 2 key [email protected] time [email protected]

if 0AA2: [email protected] = load_library "User32.dll"
then
     if 0AA4: [email protected] = get_proc_address "keybd_event" library [email protected]
     then
         0AA5: call [email protected] num_params 4 pop 0 0 0 0 [email protected]
         wait [email protected]
         0AA5: call [email protected] num_params 4 pop 0 0 0x02 0 [email protected]
     end
end
0AB2: ret 0
 
OP
OP
D

Dzey

Member
Joined
Feb 1, 2018
Messages
22
Likes
0
Points
1
1
#11
I want this jump
not like spaming ctrl. Because with this jump you cant make double jump.
 
Top