chat.register_command("test", function(src,args)-- This message is showing in the server console.print("Command 'test' has been called by " ..src.." with args "..args)end)
chat.register_command("test", function(src,args)-- This message is showing on the client chatbox. chat.send_message(src, "Command 'test' has been sent back to src player !")end)
broadcast_message
Send a message to all connected players.
chat.broadcast_message(msg --[[ string ]])
Example:
chat.register_command("test", function(src,args)-- This message is showing on all the clients chatbox. chat.broadcast_message("Command 'test' has been sent to all connected players !")end)