elseif type == 0 then
cancelEvent ( )
local r, g, b = getPlayerNametagColor(source)
if getElementData(source,"download") == false then
outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true )
outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text )
else
outputChatBox("#ffffff* [ #ff0000Downloading #ffffff] #999999" .. getPlayerName(source) .. ": #ffffff" .. text,root,r,g,b,true)
end
end
end
addEventHandler("onPlayerChat", root, chatbox)
function s3d()
outputChatBox ( "~|#0000ffTAG#FFFF00|~ ADMIN #D4A017 BY #C38EC7 ~|#FF00FFMJ#000000NON#C38EC7|~", source, 0, 0, 0, true )
end
addEventHandler("onPlayerJoin", getRootElement(), s3d)
addEventHandler("onPlayerJoin",root,
function ()
setElementData(source,"download",true)
end
)
addEventHandler("onPlayerWasted",root,
function ()
setElementData(source,"download",false)
end
)