Jump to content

Chatbox expenditure for me


Recommended Posts


I have a problem. if I enter /test in the Chatbox then I want in chatbox " test" stands however only for me.

in this example (server side) it gives for all " test" out

function test(client)  
outputChatBox ("test",client) 

as I can make it, which he spends it only on me



Link to comment
ok thx i will test it :)

which is differentiates between client and SOURCE



I'm not sure if I got you there, but in case you meant "what is the difference", it's nothing: it's just a name. In lua, as with most programming/scripting languages, the names are not important for a function's prototype, but the order is. The addCommandHandler assumes a certain layout for handling functions, like so:

function thisIsAHandlerFunction(source,command,argument1,argument2, ...) 

if you wanted to write

function thisIsAHandlerFunction(thef_ckerwhoenteredthecommand,command,argument1,argument2, ...) 

instead, you could.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...