Author Topic: Forgot how to get client input? [Solved]  (Read 919 times)

A while back I made a mod that when a person clicked another it would ask the player to type Yes or No into chat, and would then do something.


I now, after months of not using TS, have forgotten how to do so.

I have a trigger being activated, then the client needs to input chat to continue, how do I retrieve the next thing the client says?

Figured out a way, anyone have the name of the function that is called when the server receives a chat message before posting it to every client?
« Last Edit: February 15, 2013, 06:09:45 PM by Yola² »

servercmdmessagesent(%user, %message)

servercmdmessagesent(%user, %message)
bloody hell thank you

and stuff again, I need to know how to find a brick given only it's name.



A while back I made a mod that when a person clicked another it would ask the player to type Yes or No into chat, and would then do something.


I now, after months of not using TS, have forgotten how to do so.

I have a trigger being activated, then the client needs to input chat to continue, how do I retrieve the next thing the client says?


Figured out a way, anyone have the name of the function that is called when the server receives a chat message before posting it to every client?
ok can you uncross your text in the OP?
because it's annoying

ok can you uncross your text in the OP?
because it's annoying
fixed

Figured out a way, anyone have the name of the function that is called when the server receives a chat message before posting it to every client?
Just use serverCmdMessageSent(%client, %msg). If you don't parent it then the message is not sent to anyone.

Just use serverCmdMessageSent(%client, %msg). If you don't parent it then the message is not sent to anyone.
Already got it, and I understand how parents work, but thanks!