CLEO Help BURNOUT

CLEO related
Status
Not open for further replies.

Dzey

Active member
Joined
Feb 1, 2018
Messages
30
Reaction score
1
How to make auto burnout, then i write /burnout it starts burnouting. But to my code it's only pressing w..

Code:
{$CLEO .cs}
0000: NOP
REPEAT
Wait 0
Until 0AFA: is_samp_structures_available
0B34: "burnout" @burnout
 While True
 wait 0
 
If
31@ == TRUE
then
    0AB1: call @keyPress 2 key 87 time 9999999999
    wait 100
    0AB1: call @keyPress 2 key 83 time 9999999999
end
end
:burnout
if
31@ == 0
then
    wait 500
    0ACD: show_text_highpriority "BURNOUT ~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 "BURNOUT ~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[code/]
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,161
Solutions
5
Reaction score
894
Location
Lithuania
PHP:
if
00DF:   actor $PLAYER_ACTOR driving
then
    0A8C: write_memory 0xB73478 size 1 value 255 virtual_protect 0 // press W
    0A8C: write_memory 0xB73474 size 1 value 255 virtual_protect 0 // press S
end
 
Status
Not open for further replies.
Top