Jump to content

[RP] Chatbox


Namorek

Recommended Posts

Posted

wtf? i don't get you really!

please explain us what do you really want.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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

Posted

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.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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 :D

Posted

it works, check the screenshot.

mtascreen20101222081625.png

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...