Castillo Posted December 21, 2010 Posted December 21, 2010 wtf? i don't get you really! please explain us what do you really want. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Namorek Posted December 21, 2010 Author 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??
Aibo Posted December 21, 2010 Posted December 21, 2010 again: eh what? PS: try using google translator. ?
Moderators Zango Posted December 21, 2010 Moderators 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
Castillo Posted December 22, 2010 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) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted December 22, 2010 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) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Namorek Posted December 22, 2010 Author 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
Castillo Posted December 22, 2010 Posted December 22, 2010 it works, check the screenshot. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts