Hello everyone!
I have a simple request. How can I detect the random name of the person and send auto msg to chat? I mean, I know how to send msg auto on chat but don't know how to work with names.
Like:
"Opcode.eXe has logged in."
Now, the code will be this:
Now it will work only if Opcode is logged in but how I can detect random name has logged in? Like regular Expression. Please, help!
I have a simple request. How can I detect the random name of the person and send auto msg to chat? I mean, I know how to send msg auto on chat but don't know how to work with names.
Like:
"Opcode.eXe has logged in."
Now, the code will be this:
Code:
0B75: samp get_chat_string 99 text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
if
0C18: 5@ = strstr string1 1@ string2 "Opcode.eXe has logged in."
jf @chat
wait 100
say "Welcome back!"