CLEO Help KeyBinder with timer

CLEO related
Status
Not open for further replies.

drshow

Member
Joined
Jul 12, 2014
Messages
6
Reaction score
0
Helo i try create my first .cs ! Keybinder "say /status" in 120 seconds.

I press f4 and dont work.

Code:
{$CLEO .cs}

thread 'TESTCLEO'

TESTCLEO_01
wait 0
if and
0AB0:   key_pressed 115
0AFA:   is_samp_structures_available
else_jump @TESTCLEO_01
0AF9: samp say_msg "/status"
wait 5000
jump @TESTCLEO_01
 

drshow

Member
Joined
Jul 12, 2014
Messages
6
Reaction score
0
UP bro

Now crash my game:

Code:
{$CLEO .cs}

thread 'TESTCLEO'

:TESTCLEO_01
wait 0
if and
0AB0:   key_pressed 115
0AFA:   is_samp_structures_available
else_jump @TESTCLEO_01
0AF9: samp say_msg "/status"
wait 5000
jump @TESTCLEO_01
 

drshow

Member
Joined
Jul 12, 2014
Messages
6
Reaction score
0
How fix it?
I do not understand where this folder is: "SB DATA"
move all the files from "SB data" to \Sanny Builder 3\data\sa

@EDIT
Solve problem with
https://www.youtube.com/watch?v=doX_J0qHKC8

Thx all
 

drshow

Member
Joined
Jul 12, 2014
Messages
6
Reaction score
0
@Kenshiro
Dont work
Code:
{$CLEO .cs}

thread 'TESTCLEO'

REPEAT
WAIT 0
UNTIL 0AFA:

WHILE TRUE
WAIT 0
END

:TESTCLEO_01
wait 0
if and
0AB0:   key_pressed 115
0AFA:   is_samp_structures_available
else_jump @TESTCLEO_01
0AF9: samp say_msg "/status"
wait 5000
jump @TESTCLEO_01
 

Kenshiro

Active member
Joined
Aug 20, 2017
Messages
43
Reaction score
0
Location
Oblivion
Code:
{$CLEO .cs}
0000:

REPEAT
WAIT 0
UNTIL 0AFA:

WHILE TRUE
WAIT 0
   IF
     0AB0:   key_pressed 115
   THEN
      say "/status"
   END                                      
END
 

drshow

Member
Joined
Jul 12, 2014
Messages
6
Reaction score
0
Work, u can help me again? I need repeat function: say /status wait 5 seconds say /status2 wait more 15 minutes say again...Now I press f4 say /status and /status2 but after script break.

Code:
{$CLEO .cs}
0000:

REPEAT
WAIT 0
UNTIL 0AFA:

WHILE TRUE
WAIT 0
  IF
    0AB0:   key_pressed 115
  THEN
     say "/status"
     wait 5000
     say "/status2"
     wait 5000
  END                                      
END
 

Kenshiro

Active member
Joined
Aug 20, 2017
Messages
43
Reaction score
0
Location
Oblivion
Code:
{$CLEO .cs}
0000:

REPEAT
WAIT 0
UNTIL 0AFA:

WHILE TRUE
WAIT 0
   IF
     0AB0:   key_pressed 115
   THEN
       WHILE TRUE
       WAIT 0
            say "/status"
              WAIT 5000
            say "/status2"
              WAIT 15000
       END            
    END                                      
END
 
Status
Not open for further replies.
Top