CLEO Help infinite loop?

CLEO related
Status
Not open for further replies.

Crokit

Active member
Joined
Jun 20, 2014
Messages
37
Reaction score
0
I need some help with spammer... how do you make infinite loop?

Example:

say_msg 1
say_msg 2
say_msg 3
say_msg 4
:loop-repeat:

and with toggle key?

if key pressed 0
say_msg 1
say_msg 2
say_msg 3
say_msg 4
:loop-repeat:
until key pressed 0 again?

maybe with sampfuncs command?
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
:spam
wait 0
if
0AB0: key // this key starts the spam
jf @spam
wait 750
jump @loop

:loop
wait 0
if
8AB0: not key // this key stops the spam, if you don't press it, it's gonna continue the spam
jf @spam
0AF9: "spam"
0AF9: "spam"
0AF9: "spam"
0AF9: "spam"
jump @loop
 
Status
Not open for further replies.
Top