Ja[B]er[X]Pro Posted October 14, 2016 Share Posted October 14, 2016 السلام عليكم ورحمة الله وبركاته في فنكشن او طريقة لما الاعب يكتب كلام بالشات وبه اكواد اللوان ما يتلون الكلام ويظهر اكواد عادية؟ ولما في كود outputChatBox كيف اظهر كود اللون حقه بدون ما اعدل المود؟ Link to comment
Ja[B]er[X]Pro Posted October 16, 2016 Author Share Posted October 16, 2016 ممكن مثال عليه؟ Link to comment
</Mr.Tn6eL> Posted October 16, 2016 Share Posted October 16, 2016 onPlayerChat outputChatBox Link to comment
xw5R_3Ne Posted October 16, 2016 Share Posted October 16, 2016 (edited) addEventHandler("onPlayerChat",root, function(msg,msgT ) If msgT == 0 then cancelEvent() local Name = getPlayerName(source) local n_Msg = string.gsub('#%x%x%x%x%x%x', ' ' ) outputChatBox(Name..' : '..n_Msg,root,255,255,255,true) end end ) -- Untested لا تنسى تخلي If , if نسيت اخليها سمول : ) Line 6 : string.gsub(msg,'#%x%x%x%x%x%x', ' ' ) Edited October 16, 2016 by xw5R_3Ne Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now