concommand("say hello world")
Hi!
Are there a command in Expression 2 that could write a message in the chat?
concommand("say hello world")
but you also need to have concmd enabled, check wiki for the code to enable
thiers also print("hello World") but that only works in your chat box and nobody else's.
Yeah, but i need it to do when someone say "hi", the E2 says "hello" or something, i have get it to work but it doesnt check it all the time it only check it when i upload it again. Please help me.
[highlight=E2]runOnChat(1)
if(lastSaid() = "hi"){concommand("say hello")}[/highlight]
The Olympus Technologies drones, totally not SkyNet in Gmod form.
Cronus: The Ultimate Drone, definitely SkyNet in Gmod form.
The gBrain Project, the drone controls system that thinks it's better than you
In that code, the only thing activating is the chat checking, so runOnChat is the only thing needed. chatClk() is more for if you have more than one thing set to trigger the expression.
If you dont use chatClk() runOnChat() runs when ANYONE says something.
The chatclk equals one each timethe chat is updated... Like runOnChat()...
"If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
-- Niels Bohr
Bookmarks