TD[M]ER Posted December 7, 2012 Share Posted December 7, 2012 السلام عليكم ورحمةة الله وبركاتهه انا اشوف فـ بعض السيرفرات مود يكتب على الشاشهه لمن يكون عندكـ تحميل يكتب لكـ مثلا : مرحبا بكـ في السيرفر ---- انتظر تحميل السيرفر ------ ولمن يخلص التحميل يروح الككلام كيف يسوونه ؟ :] وهل المود منشور ؟؟ اذا كان منشور عطوني رابط وشكرا للجميع =) Link to comment
iPrestege Posted December 7, 2012 Share Posted December 7, 2012 جرب كذآ احسن client: addEventHandler ("onClientPlayerJoin", localPlayer, function() showChat( false ) end ) addEventHandler("onClientResourceStart", resourceRoot, function() showChat( true ) triggerServerEvent("removeText", resourceRoot, localPlayer ) end ) Server: addEventHandler('onPlayerJoin', root, function( thePlayer ) playerJoinWelcomeDisplay = textCreateDisplay ( ) r, g, b = math.random( 0, 255 ), math.random( 0, 255 ), math.random( 0, 255 ) playerJoinWelcomeDisplayText = textCreateTextItem ( "Please wait until the download Resource", 0.5, 0.5, "high", r, g, b, 255, 3, "center", "top") textDisplayAddText ( playerJoinWelcomeDisplay, playerJoinWelcomeDisplayText ) fadeCamera( thePlayer, false ) end ) addEvent("removeText", true) addEventHandler("removeText", resourceRoot, function( thePlayer ) setTimer( function() setTimer( textDisplayRemoveObserver, 50, 1, playerJoinWelcomeDisplay, thePlayer ) fadeCamera( thePlayer, true ) end , 2000, 1 ) end ) Link to comment
TD[M]ER Posted December 7, 2012 Author Share Posted December 7, 2012 جرب كذآ احسن client: addEventHandler ("onClientPlayerJoin", localPlayer, function() showChat( false ) end ) addEventHandler("onClientResourceStart", resourceRoot, function() showChat( true ) triggerServerEvent("removeText", resourceRoot, localPlayer ) end ) Server: addEventHandler('onPlayerJoin', root, function( thePlayer ) playerJoinWelcomeDisplay = textCreateDisplay ( ) r, g, b = math.random( 0, 255 ), math.random( 0, 255 ), math.random( 0, 255 ) playerJoinWelcomeDisplayText = textCreateTextItem ( "Please wait until the download Resource", 0.5, 0.5, "high", r, g, b, 255, 3, "center", "top") textDisplayAddText ( playerJoinWelcomeDisplay, playerJoinWelcomeDisplayText ) fadeCamera( thePlayer, false ) end ) addEvent("removeText", true) addEventHandler("removeText", resourceRoot, function( thePlayer ) setTimer( function() setTimer( textDisplayRemoveObserver, 50, 1, playerJoinWelcomeDisplay, thePlayer ) fadeCamera( thePlayer, true ) end , 2000, 1 ) end ) مشكور ماقصرت يعطيكـ العافيه :] جاري التجربهه Link to comment
iPrestege Posted December 7, 2012 Share Posted December 7, 2012 ^ اذا ماضبط انا جربت حق طلال وضبط 100 % تفضل : جرب ذا addEventHandler ("onClientPlayerJoin", getRootElement(), function() fadeCamera(false) showChat(false) end ) addEvent("onStart",true) addEventHandler("onStart",root, function () aa = guiCreateLabel(252,389,531,44,"Please wait until the download Resource",false) guiSetFont(aa,"sa-header") end ) function changeLabelColor ( ) guiLabelSetColor ( aa, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) --- اللون end setTimer ( changeLabelColor, 1000, 0 ) addEventHandler("onClientResourceStart", getRootElement(), function() fadeCamera(true) showChat(true) guiSetText(aa,"") end ) -- server side -- addEventHandler("onResourcePreStart",resourceRoot, function () triggerClientEvent(source,"onStart",source) end ) Link to comment
TD[M]ER Posted December 7, 2012 Author Share Posted December 7, 2012 ^ اذا ماضبط انا جربت حق طلال وضبط 100 % تفضل :جرب ذا addEventHandler ("onClientPlayerJoin", getRootElement(), function() fadeCamera(false) showChat(false) end ) addEvent("onStart",true) addEventHandler("onStart",root, function () aa = guiCreateLabel(252,389,531,44,"Please wait until the download Resource",false) guiSetFont(aa,"sa-header") end ) function changeLabelColor ( ) guiLabelSetColor ( aa, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) --- اللون end setTimer ( changeLabelColor, 1000, 0 ) addEventHandler("onClientResourceStart", getRootElement(), function() fadeCamera(true) showChat(true) guiSetText(aa,"") end ) -- server side -- addEventHandler("onResourcePreStart",resourceRoot, function () triggerClientEvent(source,"onStart",source) end ) مشكوؤؤر الله يعطيكـ العافيهه ي رب =) ماقصرت يالغلا .. بس اذا اذا تقدر تعطيني طريقةة ازود فيها الكلالام X_X تعبتكـ معي يالغلا Link to comment
TD[M]ER Posted December 7, 2012 Author Share Posted December 7, 2012 اوكك يعطيكـ الف عافيهه =] Link to comment
iPrestege Posted December 7, 2012 Share Posted December 7, 2012 اوكك يعطيكـ الف عافيهه =] اهلا وسهلا Copy Right @ |Mr|-Talal07-| & @ ӠƁƲ̴̲̲ƊЧ.. ֆ Link to comment
TAPL Posted December 7, 2012 Share Posted December 7, 2012 https://forum.multitheftauto.com/viewtopic.php?f=119&t=51138&start=15#p499135 اوكك يعطيكـ الف عافيهه =] اهلا وسهلا Copy Right @ |Mr|-Talal07-| & @ ӠƁƲ̴̲̲ƊЧ.. ֆ LoL Link to comment
nony Posted December 8, 2012 Share Posted December 8, 2012 LoL? كل الردود الي بالموضوع مو دارين وين الله حاطهم -- 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
iPrestege Posted December 8, 2012 Share Posted December 8, 2012 https://forum.multitheftauto.com/viewtopic.php?f=119&t=51138&start=15#p499135 اوكك يعطيكـ الف عافيهه =] اهلا وسهلا Copy Right @ |Mr|-Talal07-| & @ ӠƁƲ̴̲̲ƊЧ.. ֆ LoL تابل هو ماقال يبية تظلم الشاشة : | Link to comment
TAPL Posted December 11, 2012 Share Posted December 11, 2012 تابل هو ماقال يبية تظلم الشاشة : | شوف كودك أول fadeCamera( thePlayer, false ) + من وين جاي thePlayer + أنت تسوي التكست كل ما يخش لاعب؟ + عشان تضيف لاعب للتكست textDisplayAddObserver أنت ما أستخدمت الفنكشن !عشان تحذفه؟ textDisplayRemoveObserver مع أنك تستخدم !و كود طلال خارج الموضوع نهائياً Copy Right @ |Mr|-Talal07-| & @ ӠƁƲ̴̲̲ƊЧ.. ֆ 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