+Source|> Posted June 4, 2017 Share Posted June 4, 2017 انا سويت dxDrawText على الشاشه كيف اخليها فولس ما تظهر Link to comment
Master_MTA Posted June 4, 2017 Share Posted June 4, 2017 Just now, A7MEDENO said: انا سويت dxDrawText على الشاشه كيف اخليها فولس ما تظهر addEventHandler removeEventHandler وععرف الفنكشن اهم شي اطرح اكوادك لو تبي وبصلحها لك لانها تافهه مش محتاجه اكواد جاهز ومب جاهز Link to comment
+Source|> Posted June 4, 2017 Author Share Posted June 4, 2017 Just now, Master_MTA said: addEventHandler removeEventHandler وععرف الفنكشن اهم شي اطرح اكوادك لو تبي وبصلحها لك لانها تافهه مش محتاجه اكواد جاهز ومب جاهز dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) وين اكتب guiSetVisible ول ما في Link to comment
Master_MTA Posted June 4, 2017 Share Posted June 4, 2017 function master() dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end addEventHandler('onClientRender',root,master) --------------------------- ------------نبي نشيلها نسوي كذا removeEventHandler('onClientRender',root,master) Link to comment
+Source|> Posted June 4, 2017 Author Share Posted June 4, 2017 4 minutes ago, Master_MTA said: function master() dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end addEventHandler('onClientRender',root,master) --------------------------- ------------نبي نشيلها نسوي كذا removeEventHandler('onClientRender',root,master) كيف اسويلها setTimer يعني لما اللاعب يخش يجيه الرسالة تقعد شوي وتروح Link to comment
Master_MTA Posted June 4, 2017 Share Posted June 4, 2017 function master() dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end addEventHandler('onClientRender',root,master) --------------------------- ------------نبي نشيلها نسوي كذا setTimer(removeEventHandler,1000*30,1,'onClientRender',root,master)----------------------بعد نص دقيقه بتروح 6 minutes ago, A7MEDENO said: كيف اسويلها setTimer يعني لما اللاعب يخش يجيه الرسالة تقعد شوي وتروح Link to comment
+Source|> Posted June 4, 2017 Author Share Posted June 4, 2017 (edited) بجرب 3 minutes ago, Master_MTA said: function master() dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end addEventHandler('onClientRender',root,master) --------------------------- ------------نبي نشيلها نسوي كذا setTimer(removeEventHandler,1000*30,1,'onClientRender',root,master)----------------------بعد نص دقيقه بتروح addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local gft = guiGetText (GUIEditor.edit[1]) if gft == "" then return end playSoundFrontEnd ( 30 ) dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end end ) الحين كيف اخلي لما الرسالة تنرسل تقعد شوي وتروح Edited June 4, 2017 by A7MEDENO Link to comment
Master_MTA Posted June 4, 2017 Share Posted June 4, 2017 3 minutes ago, A7MEDENO said: بجرب addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local gft = guiGetText (GUIEditor.edit[1]) if gft == "" then return end playSoundFrontEnd ( 30 ) dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end end ) الحين كيف اخلي لما الرسالة تنرسل تقعد شوي وتروح حاول بنفسك انا اعطيتك حسب طلبك الاول المفروض فنكشنات لككنه سهل لذلك ساعدتك حاول بنفسك ويشهد الله اني مسوي على مصلحتك لاني اشوفك جالس تطور حرام اخرب تطورك باكواد جاهزه الحين حاول Link to comment
+Source|> Posted June 5, 2017 Author Share Posted June 5, 2017 45 minutes ago, Master_MTA said: حاول بنفسك انا اعطيتك حسب طلبك الاول المفروض فنكشنات لككنه سهل لذلك ساعدتك حاول بنفسك ويشهد الله اني مسوي على مصلحتك لاني اشوفك جالس تطور حرام اخرب تطورك باكواد جاهزه الحين حاول والله حاولت كثير وصلت لهاذي وهي خطأ addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local gft = guiGetText (GUIEditor.edit[1]) if gft == "" then return end triggerEvent("dx2", localPlayer) setTimer( function() removeEventHandler("onClientRender", root, dx2) end,2000,1) end end ) addEvent("dx2", true) addEventHandler("dx2", root, function() playSoundFrontEnd ( 30 ) dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end ) Link to comment
w7sH Posted June 5, 2017 Share Posted June 5, 2017 4 hours ago, A7MEDENO said: والله حاولت كثير وصلت لهاذي وهي خطأ addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local gft = guiGetText (GUIEditor.edit[1]) if gft == "" then return end triggerEvent("dx2", localPlayer) setTimer( function() removeEventHandler("onClientRender", root, dx2) end,2000,1) end end ) addEvent("dx2", true) addEventHandler("dx2", root, function() playSoundFrontEnd ( 30 ) dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end ) تعلم من الكود هذا ولاحظ متى يسحب التكست time = {} dis = {} r,g,b = 230,255,27 function sendMessage(player,msg) if isTimer(time[player]) then killTimer(time[player]) textDestroyDisplay(dis[player]) end dis[player] = textCreateDisplay() local text = textCreateTextItem(msg,0.01,0.283,"medium",r,g,b,255,1) textDisplayAddText(dis[player],text) textDisplayAddObserver(dis[player],player) time[player] = setTimer(textDestroyDisplay,60000,1,dis[player]) -- بعد هذي المدة يسحب التكست end Link to comment
Master_MTA Posted June 5, 2017 Share Posted June 5, 2017 (edited) 7 hours ago, A7MEDENO said: والله حاولت كثير وصلت لهاذي وهي خطأ addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local gft = guiGetText (GUIEditor.edit[1]) if gft == "" then return end triggerEvent("dx2", localPlayer) setTimer( function() removeEventHandler("onClientRender", root, dx2) end,2000,1) end end ) addEvent("dx2", true) addEventHandler("dx2", root, function() playSoundFrontEnd ( 30 ) dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end ) كودك قريب للصحه شف الكود الصحيح وقارن بينهم function dx2() playSoundFrontEnd ( 30 ) dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end addEventHandler("onClientRender", root, dx2) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local gft = guiGetText (GUIEditor.edit[1]) if gft == "" then return end triggerEvent("dx2", localPlayer) setTimer( function() removeEventHandler("onClientRender", root, dx2) end,2000,1) end end ) Edited June 5, 2017 by Master_MTA 1 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