Robbert said:
Can you give me some mod that press auto W on a bike and auto press arrow on nrg, please help me.
Same shit request like last time...
[shcode=cpp]
{$CLEO .cs}
0000:
wait 10000
32@ = 0 // 32@ will increase by 1 per each millisecond (33@ works the same, 32@ and 33@ are special variables used for timing)
while true
wait 0
IF
0ADC: test_cheat "pedal"
THEN
IF
0@ == FALSE
THEN
0@ = TRUE
32@ = 0 //to prevent key press being at the moment of activation
32@ = 1 //to press key when you activate it
0AD1: show_formatted_text_highpriority "Auto Pedal: Enabled" time 1337
ELSE
0@ = FALSE
0AD1: show_formatted_text_highpriority "Auto Pedal: Enabled" time 1337
END
WAIT 1500
END
IF AND
0@ == TRUE
32@ > 1 // only if 1 mili seconds have passed
THEN
IF AND
Player.Defined($PLAYER_ACTOR)
047A: actor $PLAYER_ACTOR driving_bike
8B21: NOT_CHAT_OPENED
THEN
IF OR
8AB0: 65 {A}
8AB0: 68 {D}
THEN
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
wait 10
IF
8B21: NOT_CHAT_OPENED
THEN
0AB1: @FAKE_KEYPRESS 1 key 87
END
32@ = 0 // reset the timer
END
END
END
END
/// Snippet
:FAKE_KEYPRESS
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
/*1@ = 0xB73458
005A: 1@ += 0@ // (int)
0A8C: write_memory 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0 */
[/shcode]