#kAsR Posted July 3, 2016 Posted July 3, 2016 سلام عليكم ورحمة الله وبركاته شباب انا ابغى مثلأ Hello World تطلع لي من اول شيء لـ اخر شيء يعني H e l l o W o r l d وكذا ماعليش كثرت مواضيعي
#kAsR Posted July 3, 2016 Author Posted July 3, 2016 اكيد راح استخدمها بس ماعندي طريقة عشان اسويها بالمتغيرات
|Mr|-Talal07-| Posted July 4, 2016 Posted July 4, 2016 local text = "Hello World" local num = 1 local all = string.len(text) local label = "" addEventHandler("onClientResourceStart",resourceRoot, function () time = setTimer(function () if num > all then killTimer(time) else label = string.sub(text,1,num) num = num + 1 end end,250,0) end ) addEventHandler("onClientRender",root, function () local x,y = guiGetScreenSize() dxDrawText(label,0,0,x,y,tocolor(255,255,255,255),2,"default-bold","center","center") end ) مجرب و شغال لكن اذا عندك خبره تقدر تعدل عليه و تضيفه في قيم في مود اي شي
#kAsR Posted July 4, 2016 Author Posted July 4, 2016 local text = "Hello World" local num = 1 local all = string.len(text) local label = "" addEventHandler("onClientResourceStart",resourceRoot, function () time = setTimer(function () if num > all then killTimer(time) else label = string.sub(text,1,num) num = num + 1 end end,250,0) end ) addEventHandler("onClientRender",root, function () local x,y = guiGetScreenSize() dxDrawText(label,0,0,x,y,tocolor(255,255,255,255),2,"default-bold","center","center") end ) مجرب و شغال لكن اذا عندك خبره تقدر تعدل عليه و تضيفه في قيم في مود اي شي يعطيك العافيه , ,
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