{$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: 0@ = actor $PLAYER_ACTOR car
IF
0137: car 0@ model == BIKEID //idk what it is
THEN
0819: 1@ = actor $PLAYER_ACTOR distance_from_ground
IF 1@ <= 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
// 0@ - key, 1@ - time
// Example: 0AB1: call @keyPress 2 key 0@ time 1@
if 0AA2: 2@ = load_library "User32.dll"
then
if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
then
0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
wait 1@
0AA5: call 2@ num_params 4 pop 0 0 0x02 0 0@
end
end
0AB2: ret 0
{$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 1@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 2@ = get_player_nickname 1@
if
0C14: strcmp string1 "Matt_James" string2 2@
then
if and
31@ == 1
8B21: SAMP_CHAT_NOT_OPENED
8B4C: SAMP_DIALOG_NOT_ACTIVE -1
then
0819: 4@ = actor $PLAYER_ACTOR distance_from_ground
IF 4@ <= 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
31@ == 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
31@ = 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
31@ = 0
end
0B43: samp cmd_ret
:keyPress
// 0@ - key, 1@ - time
// Example: 0AB1: call @keyPress 2 key 0@ time 1@
if 0AA2: 2@ = load_library "User32.dll"
then
if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
then
0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
wait 1@
0AA5: call 2@ num_params 4 pop 0 0 0x02 0 0@
end
end
0AB2: ret 0
:FAKE_KEYPRESS
1@ = 0xB73458
005A: 1@ += 0@ // (int)
0A8C: write_memory 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0[code/]
{$CLEO .cs}
0000:
0@ = 0 // JUMP_COUNTER
WHILE TRUE
WAIT 0
IF
047A: actor $PLAYER_ACTOR driving_bike
THEN
03C0: 1@ = actor $PLAYER_ACTOR car
IF
01F3: car 1@ in_air
THEN
repeat
wait 0
until 81F3: 1@ in air
0@ += 1
END
IF
0@ == 2
THEN
repeat
wait 0
if
847A: actor $PLAYER_ACTOR driving_bike
THEN
break
end
0819: 14@ = actor $PLAYER_ACTOR distance_from_ground
0AB1: call @keyPress 2 key 17 time 10
until 14@ > 3.0
0@ = 0
END
END
END
:keyPress
// 0@ - key, 1@ - time
// Example: 0AB1: call @keyPress 2 key 0@ time 1@
if 0AA2: 2@ = load_library "User32.dll"
then
if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
then
0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
wait 1@
0AA5: call 2@ num_params 4 pop 0 0 0x02 0 0@
end
end
0AB2: ret 0