Namorek Posted December 21, 2010 Share Posted December 21, 2010 Sorry my bad speak english Help me Link to comment
Castillo Posted December 21, 2010 Share Posted December 21, 2010 wtf? i don't get you really! please explain us what do you really want. Link to comment
Namorek Posted December 21, 2010 Author Share Posted December 21, 2010 i want chatbox wrote is OFF but say, short, ooc is allowed write, how other write is OFF, you look nick color is off write all player a white nick is say priv how RP you know?? Link to comment
Aibo Posted December 21, 2010 Share Posted December 21, 2010 again: eh what? PS: try using google translator. Link to comment
Discord Moderators Zango Posted December 21, 2010 Discord Moderators Share Posted December 21, 2010 Are you polish or something? Try asking in your native language, if applicable, in one of the forums here: viewforum.php?f=117 Link to comment
Castillo Posted December 22, 2010 Share Posted December 22, 2010 i think i get it! addEventHandler("onPlayerChat",getRootElement(), function(msg, msgtype) if (msgtype == 1) then outputChatBox("#00FF00* " .. string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") .. " " .. string.gsub(msg, "#%x%x%x%x%x%x", ""), getRootElement(), 255, 255, 255, true) else outputChatBox(getPlayerName(source) .. " says ".. msg, getRootElement(), 255, 255, 255, true) end cancelEvent() end) Link to comment
Castillo Posted December 22, 2010 Share Posted December 22, 2010 addEventHandler("onPlayerChat",getRootElement(), function(msg, msgtype) if (msgtype == 1) then cancelEvent() outputChatBox("#00FF00* " .. string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") .. " " .. string.gsub(msg, "#%x%x%x%x%x%x", ""), getRootElement(), 255, 255, 255, true) else cancelEvent() outputChatBox(getPlayerName(source) .. " says ".. msg, getRootElement(), 255, 255, 255, true) end end) try that (i'm not sure what i'm doing, didn't sleep yet) Link to comment
Namorek Posted December 22, 2010 Author Share Posted December 22, 2010 Also doesn't work. Link to comment
Namorek Posted December 22, 2010 Author Share Posted December 22, 2010 addEventHandler("onPlayerChat",getRootElement(), function(msg, msgtype) if (msgtype == 1) then cancelEvent() outputChatBox("#00FF00* " .. string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") .. " " .. string.gsub(msg, "#%x%x%x%x%x%x", ""), getRootElement(), 255, 255, 255, true) else cancelEvent() outputChatBox(getPlayerName(source) .. " says ".. msg, getRootElement(), 255, 255, 255, true) end end) try that (i'm not sure what i'm doing, didn't sleep yet) Thanks you i remove freeroam is work say Link to comment
Castillo Posted December 22, 2010 Share Posted December 22, 2010 it works, check the screenshot. Link to comment
Namorek Posted December 22, 2010 Author Share Posted December 22, 2010 yes, thanks you! Close Topic Link to comment
Recommended Posts