{$CLEO .cs}
0000:
repeat
wait 0
until 0afa:
while true
wait 0
FOR 6@ = 98 TO 99
0AC8: 0@ = allocate_memory_size 260 // ALLOCATE MEMORY FOR THE CHAT STRING
0AB1: @GETCHATENTRYTEXT 1 id 6@ to 0@ // THIS IS A FUNCTION THAT STORES THE LAST CHAT STRING INTO 0@
if
0AD4: $NOT_USED = scan_string 0@ format "Tasteaza /accept repair pentru a accepta." $NOT_USED 5@
then
say "/accept repair" 5@
end
END
end
:getChatEntryText
0AF7: samp 1@ = get_base
1@ += 0x21A0E4
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 // size of stChatEntry
005A: 1@ += 0@ // (int)
1@ += 28
0AB2: 1 1@
0000:
repeat
wait 0
until 0afa:
while true
wait 0
FOR 6@ = 98 TO 99
0AC8: 0@ = allocate_memory_size 260 // ALLOCATE MEMORY FOR THE CHAT STRING
0AB1: @GETCHATENTRYTEXT 1 id 6@ to 0@ // THIS IS A FUNCTION THAT STORES THE LAST CHAT STRING INTO 0@
if
0AD4: $NOT_USED = scan_string 0@ format "Tasteaza /accept repair pentru a accepta." $NOT_USED 5@
then
say "/accept repair" 5@
end
END
end
:getChatEntryText
0AF7: samp 1@ = get_base
1@ += 0x21A0E4
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 // size of stChatEntry
005A: 1@ += 0@ // (int)
1@ += 28
0AB2: 1 1@
davidel offered you repair (ID:46) for 1$. Type /accept repair to accept.
i need to detect the last part of the phrase "Type /accept repair to accept."
when it detects to automatically type /accept repair
why it doesnt work? nothing happens.. no error etc