ناقص في أكثر من مكان end عندك
جرب :
addEventHandler( "onPlayerChat", root,
function( text,root )
local account = getAccountName( getPlayerAccount( source ) )
local name = getPlayerName( source )
local color1, color2, color3 = getPlayerNametagColor( source )
local playercolor = string.format ("#%02X%02X%02X", color1, color2, color3 )
if isObjectInACLGroup( "user." .. account, aclGetGroup( "Everyone" ) ) then
cancelEvent( )
outputChatBox( "[Everyone] " .. playercolor .. "" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true )
outputServerLog( "[Everyone] " .. name .. ": " .. text )
local team = getPlayerTeam( source )
for k,v in ipairs( getElementsByType( "player" ) ) do
local team2 = getPlayerTeam( v )
if team == team2 then
outputChatBox ( "#FFFFFF(TEAM) "..name.. ": #FFFFFF" .. text, v, 255,255,255, true )
end
end
end
end
)
* ياليت ترتب أكوادك, أسهلك و أسهلنا