saplingheros
Active member
- Joined
- Nov 5, 2013
- Messages
- 126
- Reaction score
- 0
It says something about conditions, can somebody fix it?
{$CLEO .cs}
//-------------MAIN---------------
thread 'BMXSPRINT'
0662: NOP "XZYTRO SAYS HI"
:MAIN
wait 0
if
047A: actor $PLAYER_ACTOR driving_bike
0AB0: key_pressed 87
0AB0: key_pressed 49
else_jump @MAIN
0ACD: show_text_highpriority "~B~BMXSPRINT ~G~ACTIVATED" time 1500
wait 500
:SEND_CMD_IF_NOT_DEACTIVATED
wait 0
if
047A: actor $PLAYER_ACTOR driving_bike
else_jump @NOT_IN_A_BIKE
if
0AB0: key_pressed 83
then
0ACD: show_text_highpriority "~B~BMXSPRINT ~R~DEACTIVATED" time 1500
wait 500
jump @MAIN
else
0AB1: call_scm_func @SENDKEY 2 key 87 time 10
wait 200
jump @SEND_CMD_IF_NOT_DEACTIVATED
end
:SENDKEY
if
0AA2: 2@ = load_library "User32.dll" // IF and SET
jf @RETURN
if
0AA4: 2@ = get_proc_address "keybd_event" library 2@ // IF and SET
jf @RETURN
0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
wait 1@
0AA5: call 2@ num_params 4 pop 0 0 2 0 0@
:RETURN
0AB2: ret 0
:NOT_IN_A_BIKE
wait 0
0ACD: show_text_highpriority "~R~YOU ARE NOT IN A BIKE" time 1500
wait 500
jump @main
{$CLEO .cs}
//-------------MAIN---------------
thread 'BMXSPRINT'
0662: NOP "XZYTRO SAYS HI"
:MAIN
wait 0
if
047A: actor $PLAYER_ACTOR driving_bike
0AB0: key_pressed 87
0AB0: key_pressed 49
else_jump @MAIN
0ACD: show_text_highpriority "~B~BMXSPRINT ~G~ACTIVATED" time 1500
wait 500
:SEND_CMD_IF_NOT_DEACTIVATED
wait 0
if
047A: actor $PLAYER_ACTOR driving_bike
else_jump @NOT_IN_A_BIKE
if
0AB0: key_pressed 83
then
0ACD: show_text_highpriority "~B~BMXSPRINT ~R~DEACTIVATED" time 1500
wait 500
jump @MAIN
else
0AB1: call_scm_func @SENDKEY 2 key 87 time 10
wait 200
jump @SEND_CMD_IF_NOT_DEACTIVATED
end
:SENDKEY
if
0AA2: 2@ = load_library "User32.dll" // IF and SET
jf @RETURN
if
0AA4: 2@ = get_proc_address "keybd_event" library 2@ // IF and SET
jf @RETURN
0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
wait 1@
0AA5: call 2@ num_params 4 pop 0 0 2 0 0@
:RETURN
0AB2: ret 0
:NOT_IN_A_BIKE
wait 0
0ACD: show_text_highpriority "~R~YOU ARE NOT IN A BIKE" time 1500
wait 500
jump @main