Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Chat Message from Script?

Asked by
OKRPLAY 25
8 years ago

Hello,

i try to script something that says somthing in the Chat. Like that:

function onChatted(message, player)
    if message == "/testadmin" and tableContains(admins, player.Name) then
        print("AdminScript working")
    --Here i want that it types in Chat: AdminScript Working.
    end
end

How can i do that?

1 answer

Log in to vote
0
Answered by
Pyrondon 2089 Game Jam Winner Moderation Voter Community Moderator
8 years ago

You're looking for ChatMakeSystemMessage under SetCore. You'd simply set the 'Text' of the system message to "AdminScript working.".

I urge you to read that entire page to avoid further confusion.

Ad

Answer this question