CLEO Help [HELP] Christmas

CLEO related
Status
Not open for further replies.

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
Hi, I just wanna know how to get ""0ADC:  test_cheat "TEXT"" both into on and off. I'm working on an script which I don't want to post here. When I type "ON" the script is going on but when I type "ON" again script doesn't go off, it just stays on all the time.

I'm talking about something like this (my code is different):

Code:
{$CLEO}

0000: NOP

:A
wait 5
if and
Player.Defined($PLAYER_ACTOR)
   NOT Actor.Driving($PLAYER_ACTOR)
0ADC:   test_cheat "HELLO"
jf @A
goto @B

:B
wait 5000
0AF9: samp say_msg "Hello"
goto @REPT

:REPT
wait 0
goto @B

:D
wait 0
if
0ADC:   test_cheat "HELLO"
else_jump @D
goto @A
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
{$CLEO}

0000: NOP
0006: 31@ = 0

:A
wait 0
if and
0ADC:  test_cheat "HELLO"
not Actor.Driving($PLAYER_ACTOR)
jf @A                 
print "ON" 2000
goto @B

:B
wait 0
if
0039:  31@ == 125
jf @D
0AF9: samp say_msg "Hello"
0006: 31@ = 0

:C
if
0ADC:  test_cheat "HELLO"
jf @B
print "OFF" 2000
goto @A

:D
000A: 31@ += 1
goto @C
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Code:
if 
        0@ == 0
        then
            0@ = 1
-----your code here--------
else

0@ = 0
-----your code here--------
 
Status
Not open for further replies.
Top