Jump to content

Tag Team


TorNix~|nR

Recommended Posts

hello everyone

I need a Chat for teams, can help me?

for example I go to team Military in scoreboard

I need to have for exp the tag [MILITAR]

please anyone can help?

and thanks

You mean that you want if the player was in police team if he talks in the chat show like

[Police] PlayerName : XXXXXXXXDDDDDD

if like that then make your own script :D

Link to comment
  • 1 month later...
addEventHandler("onPlayerChat", getRootElement(), 
 function(msg, type) 
  if type == 0 then 
   cancelEvent() 
  local name = getPlayerName(source) 
  local r, g, b = getPlayerNametagColor(source) 
  local players = getPlayerTeam(source) 
  local team = getTeamName(players) 
  local hex = string.format("#%.2X%.2X%.2X", r, g, b) 
  outputChatBox(""..team.." "..hex.." "..name..": #FFFFFF"..msg.."", getRootElement(), 255, 255, 255, true) 
 end 
end 
) 
  

Link to comment
addEventHandler("onPlayerChat", getRootElement(), 
function(msg, type) 
if type == 0 then 
cancelEvent() 
local name = getPlayerName(source) 
local r, g, b = getPlayerNametagColor(source) 
local players = getPlayerTeam(source) 
local team = getTeamName(players) 
local hex = string.format("#%.2X%.2X%.2X", r, g, b) 
outputChatBox(""..team.." "..hex..name..": #FFFFFF"..msg.."", getRootElement(), 255, 255, 255, true) 
end 
end 
) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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