Hey, I have made this code:
addCommandHandler("r", fbir)
function fbir( thePlayer,_,text )
local theTeam = getTeamFromName ( FBI )
local text = table.concat( {text}, " " )
local name = getPlayerName( thePlayer )
if ( theTeam ) then
local players = getPlayersInTeam ( FBI )
for players, players in ipairs ( players ) do
outputChatBox ("(FBI RADIO) "..tostring( name ).." says: "..tostring( text ), players, 0, 0, 205, true)
end
end
end
It's gonna be a alternate teamchat, with command to /r, only available for a team called "FBI", but for some reason, I cant make it show for only them. As it is now, it wont show for anyone.
Help please?