CLEO Help [HELP]Search text in chat and do something automatically?

CLEO related
Status
Not open for further replies.

Edd004

Active member
Joined
Mar 10, 2013
Messages
155
Reaction score
0
can someone give me a [glow=blue,2,300]snippet[/glow] of this :computer_guy: example someone pm or saying my name(or whatever the text it is .-.) on the chat, then the cleo will do something automatically.......... :watchout: sorry if my english is badass
 

Edd004

Active member
Joined
Mar 10, 2013
Messages
155
Reaction score
0
Doesn't work  :eek:hgodwhy: why? :bawww:

Script :-
{$CLEO}

0000: NOP

const
SAMP_CHAT_INFO_OFFSET = 0x212A6C //0.3z
end

:A
wait 0
if
cheat "KM"
jf @A
0AB1: call @getChatEntryText 1 id 99 to 1@
if
0AD4: $not_used = 1@ format "hello" $not_used2
jf @A
0AF9: samp say_msg "sup bij" //lel
goto @A

:getChatEntryText
wait 500
0AB1: call @GetSampBase 0 1@
1@ += SAMP_CHAT_INFO_OFFSET
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 // size of stChatEntry
005A: 1@ += 0@ // (int)
1@ += 28
0AB2: ret 1 1@

:GetSampBase
0AA2: 31@ = load_library "kernel32.dll" // IF and SET
0AA4: 30@ = get_proc_address "GetModuleHandleA" library 31@ // IF and SET
0AA7: call_function 30@ num_params 1 pop 0 "samp.dll" 0@
0ab2: ret 1 0@
 
Status
Not open for further replies.
Top