Bc# Posted July 30, 2013 Posted July 30, 2013 ¿Cual es la funcion para remover los códigos de colores a getPlayerName()?
Danii Posted July 30, 2013 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))
Sasu Posted July 30, 2013 Posted July 30, 2013 O simplemente usa: getPlayerName(source):gsub("#%x%x%x%x%x%x", "")
Bc# Posted July 30, 2013 Author Posted July 30, 2013 O simplemente usa: getPlayerName(source):gsub("#%x%x%x%x%x%x", "") Había olvidado eso, gracias por recordarmelo
Recommended Posts