nikolassx Posted February 25, 2013 Share Posted February 25, 2013 Buenos días, quiero me ayuden a ponerle color a este script, antes tenia pero al actualizar el race dejo de funcionar los códigos de colores! client addEvent("onWins", true) function drawNexMapString(player) local x, y = guiGetScreenSize() winner = dxText:create( getPlayerNametagText(player).." #777777Winner", x/2, y/2, false, "bankgothic", 1, "center" ) nextmap = dxText:create( " ", x/2, y/2 - 10 + 40, false, "bankgothic", 1, "center" ) winner:type('stroke', 1, 0, 0, 0) nextmap:type('stroke', 1, 0, 0, 0, 255) local timerTime = 5 timer = dxText:create( tostring(timerTime), x/2, y/2 - 10 + 40 + 40, false, "bankgothic", 1, "center" ) timer:type('stroke', 1, 0, 0, 0, 255) setTimer(function()timerTime = timerTime - 1 timer:text(tostring(timerTime)) end, 1000, 4) setTimer(function()winner:visible(false) nextmap:visible(false) timer:visible(false)end, 5500, 1) end addEventHandler("onWins", getRootElement(), drawNexMapString) Link to comment
Alexs Posted February 25, 2013 Share Posted February 25, 2013 Por lo que veo, vas a tener que editar la función 'dxText:create' para que utilice los Códigos de colores. Link to comment
nikolassx Posted February 25, 2013 Author Share Posted February 25, 2013 winner = dxText:create( getPlayerNametagText(player).." #777777Winner", x/2, y/2, false, "bankgothic", 1, "center" ) ese? Link to comment
Alexs Posted February 25, 2013 Share Posted February 25, 2013 No, la función, debe estar en un archivo aparte. Link to comment
Recommended Posts