CLEO Help repeat until

CLEO related

curraco

Active member
Joined
Aug 3, 2020
Messages
39
Reaction score
3
Location
colombia
How to make this repeat until hello appears in chat?



Code:
{$CLEO .cs}
0000:

wait 10000 // wait 10second samp is ready

while true
wait 0



        if
        player.Defined(0)
        then
        repeat
        wait 0
        0AB1: @CAMERA_AT_POS 3 XYZ: -31.418301 -185.653595 1007.729980
        until 
        0AC8: 0@ = allocate_memory_size 260
        0AC8: 1@ = allocate_memory_size 260
        0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
        if
        0C29: $not_USED = stristr string1 0@ string2 "hola"
        then
        wait 100
        say "/d helouaaa"
        end
    end   
        
end
 

⪻Chucky⪼

Member
Joined
Jun 10, 2020
Messages
11
Reaction score
1
Location
argentina
Code:
{$CLEO .cs}

0000:

repeat
    wait 0
until 0AFA:

0AC8: 0@ = allocate_memory_size 260

while true
    wait 0
    if 0B61:  samp is_local_player_spawned
    then
        while true
            wait 0
            0AB1: @CAMERA_AT_POS 3 XYZ: -31.418301 -185.653595 1007.729980
            0B75: samp get_chat_string 99 text_to 0@ prefix_to $NOT_USED color_to $NOT_USED prefix_color_to $NOT_USED
            if 0C29: $NOT_USED = stristr string1 0@ string2 "Hola"
            then
                say "Adios"
                wait 1000
                break
            end
        end
    end
end
 
Top