function globalMessage ( thePlayer, cmd, ... )
if isPlayerMuted ( thePlayer ) then
outputChatBox ( "You are muted!", thePlayer, 255, 0, 0 )
return
end
local message = table.concat ( { ... }, " " )
local name = getPlayerName ( thePlayer )
outputChatBox ( "#009BFFGlobalChat: #FFFFFF".. name ..": #99FF00".. message, getRootElement(), 255, 255, 255, true )
end
addCommandHandler ( "global", globalMessage )