ZeyadGTX Posted June 8, 2014 Share Posted June 8, 2014 is there away To Change this Word (TEAM) like making it (CLAN) or chaning Color of (TEAM) Link to comment
Max+ Posted June 8, 2014 Share Posted June 8, 2014 well first show your code , the run this script , then i can help you with it , Link to comment
ZeyadGTX Posted June 8, 2014 Author Share Posted June 8, 2014 i don't have code i see this in some servers Link to comment
Et-win Posted June 8, 2014 Share 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. Link to comment
ZeyadGTX Posted June 8, 2014 Author Share Posted June 8, 2014 yes you are right ET-Win Link to comment
Max+ Posted June 8, 2014 Share 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 .. Link to comment
Et-win Posted June 8, 2014 Share 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. Link to comment
ma2med Posted June 12, 2014 Share Posted June 12, 2014 Maybe unbind the teamsay key and add the clan say? Link to comment
Twisted Posted June 12, 2014 Share 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 Link to comment
ZeyadGTX Posted June 12, 2014 Author Share Posted June 12, 2014 can you help me with script ? Link to comment
xTravax Posted June 12, 2014 Share 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 ) Link to comment
ZeyadGTX Posted June 13, 2014 Author Share 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 ) Link to comment
Twisted Posted June 13, 2014 Share 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. Link to comment
ZeyadGTX Posted June 13, 2014 Author Share Posted June 13, 2014 i know but it don't work i tried every thing Link to comment
Twisted Posted June 13, 2014 Share 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. Link to comment
Max+ Posted June 13, 2014 Share Posted June 13, 2014 of course every one will see the msg , becuase you used guiRoot - getRootElement ( for all players ) Change it to source , Link to comment
Twisted Posted June 13, 2014 Share 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). Link to comment
-.Paradox.- Posted June 13, 2014 Share Posted June 13, 2014 Do a loop to check players who have the same team then send the message. Link to comment
ZeyadGTX Posted June 13, 2014 Author Share Posted June 13, 2014 i removed guiRoot and i replaces Source still not working the message for all players not for team Link to comment
Et-win Posted June 13, 2014 Share Posted June 13, 2014 getPlayerTeam getPlayersInTeam Make a loop, and send it to all players who are in the same team as you. Link to comment
ZeyadGTX Posted June 13, 2014 Author Share Posted June 13, 2014 i need ready made please because i tried every thing 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