Help! Put function on and off in running mode infinitely

faiat

Новичок
Автор темы
2
0
Код:
// This file was decompiled using SASCM.ini published on 2021-01-30
{$CLEO .cs}
 
script_name 'RUN_SYLAR'
 
:RUN_SYLAR_19
wait 0
if
   Player.Defined($PLAYER_CHAR)
jf @RUN_SYLAR_19
Player.InfiniteRun($PLAYER_CHAR, True)
jump @RUN_SYLAR_19

What I did was like this, I tried putting the G key to activate and J to deactivate, but it doesn't work

Код:
// This file was decompiled using SASCM.ini published on 2021-01-30
{$CLEO .cs}
 
script_name 'RUN_SYLAR' 
  
:RUN_SYLAR_19
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
jf @RUN_SYLAR_19 
Player.InfiniteRun($PLAYER_CHAR, True)
is_key_pressed 71
jump @RUN_SYLAR_1

:RUN_SYLAR_20
wait 0
if
    Player.Defined($PLAYER_CHAR)
Player.InfiniteRun($PLAYER_CHAR, False) // false
is_key_pressed 74
jump @RUN_SYLAR_19