Omg, i dont know create dxDrawText....I´m only beginner in scripting...and your script is in heavier shape...
addEvent('g_Add',true)
addEventHandler('g_Add',root,
function ( g_Name )
if isElement ( g_Image ) then destroyElement ( g_Image ) g_Image = nil end;
if isElement ( g_Label ) then destroyElement ( g_Label ) g_Label = nil end;
g_Image = guiCreateStaticImage ( 0.8, 0.0, 0.3, 0.03, "bg.png",true );
g_Label = dxDrawText("Player"...getPlayerName" has joined the game.", 20, 247, 792, 329, tocolor(15, 217, 0, 255), 5.00, "default-bold", "left", "top", false, false, true, false, false)
end
);