ViRuZGamiing Posted November 10, 2013 Share Posted November 10, 2013 Hi, How can I remove the chat color? I want everyone to write in White and the Name also in white. Thanks. Link to comment
ViRuZGamiing Posted November 10, 2013 Author Share Posted November 10, 2013 I'm now using this code i've made but it doesn't work; function chatPrefix( message, messageType ) if messageType == 0 then local playerTeam = aclGroupGetName("Admin") if playerTeam then local r, g, b = getTeamColor ( playerTeam ) local theName = getAccountName (getPlayerAccount (source)) outputChatBox( "[CR]".. theName ..": " .. message, getRootElement(), r, g, b, true ) outputServerLog("CHAT: "..theName..": "..message) cancelEvent() else local theName = getAccountName (getPlayerAccount (source)) outputChatBox( theName ..": " .. message, getRootElement(), 255, 255,255, true ) outputServerLog("CHAT: "..theName..": "..message) cancelEvent() end end end addEventHandler( "onPlayerChat", getRootElement(), chatPrefix ) function blockChatMessage() cancelEvent() end addEventHandler( "onPlayerChat", getRootElement(), blockChatMessage ) I outputs my message twice in chat in once in color and once in white.. No [CR] infront of my name also. Link to comment
Moderators IIYAMA Posted November 10, 2013 Moderators Share Posted November 10, 2013 freeroam running? Then freeroam also outputs. Link to comment
Price. Posted November 10, 2013 Share Posted November 10, 2013 you can try using this setPlayerNametagColor ( thePlayer,r,g,b ) Link to comment
ViRuZGamiing Posted November 10, 2013 Author Share Posted November 10, 2013 So just this is enough; function nametagColorChange ( thePlayer ) setPlayerNametagColor ( thePlayer, 255, 255, 255) end addEventHandler ( "onResourceStart", nametagColorChange) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now