ZeyadGTX Posted June 8, 2014 Posted June 8, 2014 is there away To Change this Word (TEAM) like making it (CLAN) or chaning Color of (TEAM)
Max+ Posted June 8, 2014 Posted June 8, 2014 well first show your code , the run this script , then i can help you with it ,
Et-win Posted June 8, 2014 Posted June 8, 2014 He asks how to change the (TEAM) text to (CLAN) text. If I'm correct, it has to be in teammanager, otherwise, you can maybe filter it with a script.
Max+ Posted June 8, 2014 Posted June 8, 2014 it's come with the some gameMode , or with admin Panel , if you press y you can type for team only , it's simple to make it as an script ..
Et-win Posted June 8, 2014 Posted June 8, 2014 onPlayerChat For examples you can check this script: https://community.multitheftauto.com/index.php?p= ... ls&id=3167 Not sure or you can filter "(TEAM)" though.
Twisted Posted June 12, 2014 Posted June 12, 2014 onPlayerChat For examples you can check this script: https://community.multitheftauto.com/index.php?p= ... ls&id=3167 Not sure or you can filter "(TEAM)" though. It is possible as I've overrided it with a staff chat and it never says (TEAM) for me. Even when making a team chat it's possible
xTravax Posted June 12, 2014 Posted June 12, 2014 g_Root = getRootElement() addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 2 then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox(getPlayerName(source) .. '(CLAN)' .. msg:gsub('#%x%x%x%x%x%x', ''), g_Root, r, g, b, true) end end )
ZeyadGTX Posted June 13, 2014 Author Posted June 13, 2014 when i press Y all can see the message g_Root = getRootElement() addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 2 then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox(getPlayerName(source) .. '(CLAN)' .. msg:gsub('#%x%x%x%x%x%x', ''), g_Root, r, g, b, true) end end )
Twisted Posted June 13, 2014 Posted June 13, 2014 Ain't you supposed to have created all that other stuff? I'm sure you can figure how to make to what you need man. You gotta give it a try, can't expect everyone to do it for you.
ZeyadGTX Posted June 13, 2014 Author Posted June 13, 2014 i know but it don't work i tried every thing
Twisted Posted June 13, 2014 Posted June 13, 2014 i know but it don't work i tried every thing Can't help if you don't show us how you did it.
Max+ Posted June 13, 2014 Posted June 13, 2014 of course every one will see the msg , becuase you used guiRoot - getRootElement ( for all players ) Change it to source ,
Twisted Posted June 13, 2014 Posted June 13, 2014 of course every one will see the msg , becuase you used guiRoot - getRootElement ( for all players )Change it to source , That still wont fix the problem, he'll need to check if the players are in a team and if they're in the same team(This is what he wants).
-.Paradox.- Posted June 13, 2014 Posted June 13, 2014 Do a loop to check players who have the same team then send the message.
ZeyadGTX Posted June 13, 2014 Author Posted June 13, 2014 i removed guiRoot and i replaces Source still not working the message for all players not for team
Et-win Posted June 13, 2014 Posted June 13, 2014 getPlayerTeam getPlayersInTeam Make a loop, and send it to all players who are in the same team as you.
ZeyadGTX Posted June 13, 2014 Author Posted June 13, 2014 i need ready made please because i tried every thing
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