Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chatsOpen = {};
- function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored)
- myID = ts3.getClientID(serverConnectionHandlerID)
- response = "ENTER YOUR TEXT HERE"
- if fromID ~= myID and toID == myID and not string.match(message, "Thanks for sending me a private message") then
- if not chatsOpen[fromID] then
- chatsOpen[fromID] = true
- ts3.requestSendPrivateTextMsg(serverConnectionHandlerID, response, fromID)
- end
- end
- end
- function onClientChatClosedEvent(server, clientID, clientUniqueIdentity)
- if chatsOpen[clientID] then
- chatsOpen[clientID] = nil
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement