Jump to content

[HELP] Logs


1LoL1

Recommended Posts

Hi anyone can help me with this code?

addEventHandler("onPlayerChat", root, 
    function (msg,msgt) 
        if (msgt == 0) then 
        msg = string.gsub(msg, "#%x%x%x%x%x%x", "") 
            output(getPlayerName(source):..": "..msg.."", "LocalChat") 
        elseif (cmd == idk) then 
        msg = string.gsub(msg, "#%x%x%x%x%x%x", "") 
            output(getPlayerName(source).." "..msg.."", "RadioChat") 
        elseif (cmd == idk) then 
        msg = string.gsub(msg, "#%x%x%x%x%x%x", "") 
            output(getPlayerName(source)..": "..msg.."", "GlobalChat") 
        end 
    end 
) 

LocalChat = Work

RadioChat = Not Work

GlobalChat = Not Work

My command is /GlobalChat and /RadioChat and this i have on bindKey

GlobalChat = X

RadioChat = Z

Can anyone fixed this? :( please

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...