CLEO Help Find & Write

CLEO related
Status
Not open for further replies.

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
How to make cleo script as send command/message when is find text message in the chat?  :sweet_jesus:
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
There are 10 topics at least on how to read from sa-mp chat w/o SFUNCS, in SF you use opcode 0B75.
Once you get the chat line, either use SF opcode 0C29 or make your own function to search substrings in string.
Code:
allocMem 2@ 3@
0B75: samp get_chat_string 99 text_to 2@ prefix_to 3@ color_to 4@ prefix_color_to 5@
IF 0C29: 6@ = stristr string1 2@ string2 "i like cocks"
THEN 0AF9: "/imgay"
END
freeMem 2@ 3@
 
Status
Not open for further replies.
Top