Author Topic: Err, this is going to be a little bit hard for me, but I'm sure you can help me.  (Read 516 times)

I am trying to make a script where I say "Test"(or something like that) in global chat and it responds back at me a message, I know about the responding bit, but I have no way on how to do the test part, so I was wondering if any of the scripter's out there can help me, this is probably the so far code
Code: [Select]
function testing()
{
//codehere
//codehere
//codehere
//codehere
//codehere
//codehere
//codehere
newChatHud_addLine("\c6The line of text here.");

asdf, forgot the } at end, sorry guys.


Seeing how you're using newChatHud_addLine, you want this client sided.
It's likely that you're using this for some form of chat bot, which I'm not very fond with at all.
Please clarify.

No, I'm making something where I say like "a word here or something" and it gives me infomation back (newChatHud_addLine("\c6The line of text here.");)


Server sided example:
Code: [Select]
function serverCmdtest(%client,%msg)
{
if(%msg $= "test")
servercmdmessagesent(%client,"Info.");
}
Idk about strictly client sided though.