Bc# Posted July 30, 2013 Share Posted July 30, 2013 ¿Cual es la funcion para remover los códigos de colores a getPlayerName()? Link to comment
Danii Posted July 30, 2013 Share Posted July 30, 2013 function removeColorCoding(name) return type(name)=='string' and string.gsub ( name, '#%x%x%x%x%x%x', '' ) or name end Un ejemplo para usarlo: removeColorCoding(getPlayerName(source)) Link to comment
Sasu Posted July 30, 2013 Share Posted July 30, 2013 O simplemente usa: getPlayerName(source):gsub("#%x%x%x%x%x%x", "") Link to comment
Bc# Posted July 30, 2013 Author Share Posted July 30, 2013 O simplemente usa: getPlayerName(source):gsub("#%x%x%x%x%x%x", "") Había olvidado eso, gracias por recordarmelo Link to comment
Recommended Posts