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/]