CLEO Help Wait command isn't working

CLEO related
Status
Not open for further replies.

Micic

Member
Joined
Jun 22, 2016
Messages
14
Reaction score
0
I need help with "wait 2000 ms" or just "wait 2000"
Code:
if and
        0@ == 1 
        0C18: 5@ = strstr string1 4@ string2 "You have 5 minutes to sign the check before it becomes invalid." 
    then 
        wait 2000 ms 
        say "/capturf"

when it is typed in chat [font=Monaco, Consolas, Courier, monospace]You have 5 minutes to sign the check before it becomes invalid.[/font]
[font=Monaco, Consolas, Courier, monospace]It doesn't wait 2000 ms it just types /capturf[/font]
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Activation auto.
Code:
{$CLEO .cs}
0000: NOP
REPEAT
WAIT 0
UNTIL 0AFA: is_samp_available
WHILE TRUE
WAIT 0

0AC8: 0@ = allocate_memory_size 260
0AB1: @TURF 1 id 99 to 0@     
IF
0C29: 2@ = stristr string1 0@ string2 "You have 5 minutes to sign the check before it becomes invalid." 
THEN
wait 2000
0AF9: samp say_msg "/capturf"
END    
0AC9: free_allocated_memory 0@
END

:TURF
0AF7: samp 1@ = get_base
1@ += 0x21A0E4
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 
005A: 1@ += 0@ 
1@ += 28
0AB2: 1 1@
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
[shcode=cpp]
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 0
UNTIL 0AFA:

WHILE TRUE
WAIT 0

if
0B61: samp is_local_player_spawned
then
0AC8: 1@ = allocate_memory_size 260
0AC8: 2@ = allocate_memory_size 260
0B75: samp get_chat_string 99 text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
if
0C18: 22@ = strstr string1 1@ string2 "You have 5 minutes to sign the check before it becomes invalid."
then
wait 2000
say "/capturf"
end
end

END
[/shcode]
 

Micic

Member
Joined
Jun 22, 2016
Messages
14
Reaction score
0
kazkaS said:
Activation auto.
Code:
{$CLEO .cs}
0000: NOP
REPEAT
WAIT 0
UNTIL 0AFA: is_samp_available
WHILE TRUE
WAIT 0

0AC8: 0@ = allocate_memory_size 260
0AB1: @TURF 1 id 99 to 0@     
IF
0C29: 2@ = stristr string1 0@ string2 "You have 5 minutes to sign the check before it becomes invalid." 
THEN
wait 2000
0AF9: samp say_msg "/capturf"
END    
0AC9: free_allocated_memory 0@
END

:TURF
0AF7: samp 1@ = get_base
1@ += 0x21A0E4
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 
005A: 1@ += 0@ 
1@ += 28
0AB2: 1 1@

Dude I was looking for this kinda without turn on/off button and it works perfectly u got rep from me. THank you very much :)
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Micic said:
kazkaS said:
Activation auto.
Code:
{$CLEO .cs}
0000: NOP
REPEAT
WAIT 0
UNTIL 0AFA: is_samp_available
WHILE TRUE
WAIT 0

0AC8: 0@ = allocate_memory_size 260
0AB1: @TURF 1 id 99 to 0@     
IF
0C29: 2@ = stristr string1 0@ string2 "You have 5 minutes to sign the check before it becomes invalid." 
THEN
wait 2000
0AF9: samp say_msg "/capturf"
END    
0AC9: free_allocated_memory 0@
END

:TURF
0AF7: samp 1@ = get_base
1@ += 0x21A0E4
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 
005A: 1@ += 0@ 
1@ += 28
0AB2: 1 1@

Dude I was looking for this kinda without turn on/off button and it works perfectly u got rep from me. THank you very much :)
Thanks x)
 
Status
Not open for further replies.
Top