CLEO Help help scan string

CLEO related
Status
Not open for further replies.

davidel

Well-known member
Joined
Jan 17, 2020
Messages
207
Reaction score
7
Location
Germania
Code:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 0
UNTIL 0AFA:


WHILE TRUE
wait 0
if
    0C5D: samp textdraw 6 is_exists
THEN
wait 10000     
      0AF8: samp add_message_to_chat "sss" color 0xFFFFFF
END
end

i want to make when it will add "sss" message to chat to say "aaa". how? i tried with this but it's not detecting 0AF8: samp add_message_to_cha
i need with 0AF8: samp add_message_to_chat or chatmsg..
Code:
{$CLEO}
{$INCLUDE SF}
0000:
thread "TaxiCMD"

repeat
wait 0
until SAMP.Available()

chatmsg "cv" -1

0BE3: raknet setup_incoming_rpc_hook @loading

WHILE TRUE
WAIT 0

    IF 1@ == 1
    THEN
        wait 100
      say "aaa"
 1@ = 0
    END
        
END

:loading
0BE5: raknet 31@ = get_hook_param PARAM_PACKETID
IF 31@ == RPC_ScrClientMessage
THEN 
    alloc 28@ 129
    0C11: memset destination 28@ value 0 size 129
    0BE5: raknet 30@ = get_hook_param PARAM_BITSTREAM
    0BE7: raknet 27@ = bit_stream_read 30@ type BS_TYPE_INT //color
    0BE7: raknet 29@ = bit_stream_read 30@ type BS_TYPE_INT //lenght
    0BE8: raknet bit_stream 30@ read_array 28@ size 29@ //string
    0C0D: struct 28@ offset 29@ size 1 = 0
    
    IF 0C18: $NOT_STRING = strstr string1 28@ string2 "sss"
    THEN
        //NOP
        1@ = 1
    END
    
    free 28@
END
0BE0: raknet hook_ret true
 
Status
Not open for further replies.
Top