^#Dream Posted July 16, 2014 Posted July 16, 2014 السلام عليكم ورحمة الله وبركاته انا ابي اذا كان اللاعب عندهه تحميل تجي dxText على الشاشة واذا خلص تحميله تروح
Max+ Posted July 16, 2014 Posted July 16, 2014 addEvent( "onClientSend",true ) local serverDisplay,serverText addEventHandler( "onClientSend",root, function( ) textDisplayRemoveObserver( serverDisplay, source ) end ) addEventHandler( "onPlayerJoin",root, function( ) serverDisplay = textCreateDisplay( ) textDisplayAddObserver ( serverDisplay, source ) serverText = textCreateTextItem ( "Downloading.Please wait!", 0.5, 0.5,1,255,0,0,255,2,"center","center",200 ) textDisplayAddText ( serverDisplay, serverText ) end ) ---Client local timer = setTimer( function( ) if not isTransferBoxActive( ) then triggerServerEvent( "onClientSend",localPlayer ) killTimer( timer ) end end, 1000, 2 )
TAPL Posted July 16, 2014 Posted July 16, 2014 ^ هريس كل ما يدخل لاعب السيرفر تسوي تكست جديد؟ هههه Server Side: DownloadDisplay = textCreateDisplay() Text = textCreateTextItem("Your text here ...", 0.5, 0.5) textDisplayAddText(DownloadDisplay, Text) addEventHandler("onPlayerJoin", root, function() textDisplayAddObserver(DownloadDisplay, source) end) addEvent("onClientDownloadFinish", true) addEventHandler("onClientDownloadFinish", root, function() if textDisplayIsObserver(DownloadDisplay, source) then textDisplayRemoveObserver(DownloadDisplay, source) end end) Client Side: Timer = setTimer(function() if not isTransferBoxActive() then triggerServerEvent("onClientDownloadFinish", localPlayer) if isTimer(Timer) then killTimer(Timer) end end end, 1000, 0) الكود مطروح من قبل لو بحثت كان لقيته
#DRAGON!FIRE Posted July 16, 2014 Posted July 16, 2014 كنت بقوله هريس بس نسيت الموضوع والتايمر مقفل لول
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