Mennims
Active member
- Joined
- Mar 18, 2014
- Messages
- 41
- Reaction score
- 0
Hi. Hi need to read the chat, I would like to constantly check for a certain string to appear in the chat. Like "hello" for example. So if someone says "hello" it triggers something, I know how to do the loop and all. I just would like help with this
This is obviously the opcode I'll be using to check strings? If so, what are the arguments? How do I use them? How far back will it check in the chat for the word "Hello"? Can I set the amount of lines back it will check for the word? Because I wan't everytime the word "hello" is said to trigger something, then when it's said again it will trigger again. Not if it's said once in the entire chat it will constantly be looping because it will find "hello" way up in the chat. Thanks
Code:
0B75: samp get_chat_string 1@ text_to 2@ prefix_to 3@ color_to 4@ prefix_color_to 5@
This is obviously the opcode I'll be using to check strings? If so, what are the arguments? How do I use them? How far back will it check in the chat for the word "Hello"? Can I set the amount of lines back it will check for the word? Because I wan't everytime the word "hello" is said to trigger something, then when it's said again it will trigger again. Not if it's said once in the entire chat it will constantly be looping because it will find "hello" way up in the chat. Thanks