#1Topro Posted June 18, 2016 Posted June 18, 2016 كيف اخلي الكود هذا يا يظهر كود الالوان الي بأول عاجل ^ ياليت رد
فاّرس Posted June 18, 2016 Posted June 18, 2016 bool dxDrawText ( string text, float left, float top [, float right=left, float bottom=top, int color=white, float scale=1, mixed font="default", string alignX="left", string alignY="top", bool clip=false, bool wordBreak=false, bool postGUI=false, bool colorCoded=false, bool subPixelPositioning=false, float fRotation=0, float fRotationCenterX=0, float fRotationCenterY=0 ] ) true خله colorCoded ذا
#1Topro Posted June 18, 2016 Author Posted June 18, 2016 function start(msg) message = msg end addEvent("M3nFsK2", true ) addEventHandler("M3nFsK2", getRootElement(), start) function as() local Name = getPlayerName(localPlayer) dxDrawFramedText("Admin ["..Name.."]: ",14, 235, 783, 264,tocolor(255, 0, 0, 255),1.0,"default-bold","left","top",false,false,false) dxDrawFramedText(" "..message.."", 119, 236, 887, 270,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), as)
#1Topro Posted June 18, 2016 Author Posted June 18, 2016 بدون الي انت عططيوتهولي يوم سويته خرب المود شف يمكن انت تعجله أسف ع الازعاج ^
فاّرس Posted June 18, 2016 Posted June 18, 2016 اذا كان البارامترز نفس الفنكشن الاصلي جرب كذا والثاني عدل مثله . ` dxDrawFramedText(" "..message.."", 119, 236, 887, 270,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,false,false,true)
#1Topro Posted June 18, 2016 Author Posted June 18, 2016 function as() local Name = getPlayerName(localPlayer) dxDrawFramedText("Admin ["..Name.."]: ",14, 235, 783, 264,tocolor(255, 0, 0, 255),1.0,"default-bold","left","top",false,true,false) dxDrawFramedText(" "..message.."", 119, 236, 887, 270,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,true,false) end addEventHandler("onClientRender", getRootElement(), as) سويته وما صار شيء ^رد علي الخاص
#1Topro Posted June 18, 2016 Author Posted June 18, 2016 أبي الغي الاكواد خالص يعني يوم احد يكتكلم يكون العاجل كله احمر بالاسم اقدر ؟
فاّرس Posted June 18, 2016 Posted June 18, 2016 تقصد تبي تمسح كل شي اسم الادمن والكلام؟ سوي متغيرات كـ مثال كذا : message = '' admin = '''
#1Topro Posted June 18, 2016 Author Posted June 18, 2016 أبي مثل Admin [6ArH#00DD00M3nFsK]: انا ما أبي الوان الاكوداد تبان ولا الاكواد بس أبي الاسم احمر كله هل اقدر ؟
فاّرس Posted June 18, 2016 Posted June 18, 2016 string.gsub شيل اكواد الهكيس بإستخدام getPlayerName يوم تستخدم فنكشن
Adham Posted June 18, 2016 Posted June 18, 2016 Test . dxDrawFramedText("Admin ["..Name.."]::gsub("#%x%x%x%x%x%x", "") ",14, 235, 783, 264,tocolor(255, 0, 0, 255),1.0,"default-bold","left","top",false,false,false)
Abdul KariM Posted June 18, 2016 Posted June 18, 2016 Test . dxDrawFramedText("Admin ["..Name.."]::gsub("#%x%x%x%x%x%x", "") ",14, 235, 783, 264,tocolor(255, 0, 0, 255),1.0,"default-bold","left","top",false,false,false) dxDrawFramedText("Admin ["..Name:gsub("#%x%x%x%x%x%x", "").."]: "..,14, 235, 783, 264,tocolor(255, 0, 0, 255),1.0,"default-bold","left","top",false,false,false)
N3xT Posted June 19, 2016 Posted June 19, 2016 function start(msg) message = msg end addEvent("M3nFsK2", true ) addEventHandler("M3nFsK2", getRootElement(), start) function as() local Name = getPlayerName(localPlayer) dxDrawFramedText("Admin ["..Name:gsub('#%x%x%x%x%x%x', '').."]: ",14, 235, 783, 264,tocolor(255, 0, 0, 255),1.0,"default-bold","left","top",false,false,false) dxDrawFramedText(" "..message.."", 119, 236, 887, 270,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), as)
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