MR:SADIQ Posted April 15, 2013 Share Posted April 15, 2013 انا عملت الكود كلام بنص الشاشة يتحرك ابي اسويه اثناء التحميل فقط Link to comment
PaiN^ Posted April 15, 2013 Share Posted April 15, 2013 خليه سيرفر https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions#Text_functions Link to comment
MR:SADIQ Posted April 15, 2013 Author Share Posted April 15, 2013 خليه سيرفرhttps://wiki.multitheftauto.com/wiki/Server_Scripting_Functions#Text_functions اي واحد منهم؟ Link to comment
iPrestege Posted April 15, 2013 Share Posted April 15, 2013 -- Server Side -- DownloadDisplay = textCreateDisplay() Text = textCreateTextItem("Please wait until the download Resource", 0.5, 0.5) textDisplayAddText(DownloadDisplay, Text) setTimer(function() textItemSetColor(Text, math.random(0, 255), math.random(0, 255), math.random(0, 255), 255 ) end,1000,0) addEventHandler("onPlayerJoin", root, function() textDisplayAddObserver(DownloadDisplay, source) showChat(source, false) fadeCamera(source, false) end) addEvent("onClientDownloadFinish", true) addEventHandler("onClientDownloadFinish", root, function() if textDisplayIsObserver(DownloadDisplay, source) then textDisplayRemoveObserver(DownloadDisplay, source) showChat(source, true) fadeCamera(source, true) 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) Link to comment
MR:SADIQ Posted April 15, 2013 Author Share Posted April 15, 2013 -- Server Side -- DownloadDisplay = textCreateDisplay() Text = textCreateTextItem("Please wait until the download Resource", 0.5, 0.5) textDisplayAddText(DownloadDisplay, Text) setTimer(function() textItemSetColor(Text, math.random(0, 255), math.random(0, 255), math.random(0, 255), 255 ) end,1000,0) addEventHandler("onPlayerJoin", root, function() textDisplayAddObserver(DownloadDisplay, source) showChat(source, false) fadeCamera(source, false) end) addEvent("onClientDownloadFinish", true) addEventHandler("onClientDownloadFinish", root, function() if textDisplayIsObserver(DownloadDisplay, source) then textDisplayRemoveObserver(DownloadDisplay, source) showChat(source, true) fadeCamera(source, true) 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) شكراً ^^ انت برستيج صح؟؟ 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