кιηg-αвα∂у Posted December 24, 2012 Share Posted December 24, 2012 (edited) السلام عليكم البل مايختفي وش الخطأ ؟ meta '*time' friendlyname=' Time Destroy label' value='30000' /> Client setTimer( guiSetText, getElementData ( resourceRoot, 'times' ), 0, labelName, ' ') [lua]server g_Root = getRootElement() addEventHandler('onResourceStart', g_Root, function() local thetime = get ( 'time' ) setElementData ( resourceRoot, 'times', thetime ) end ) ) Edited December 24, 2012 by Guest Link to comment
3NAD Posted December 24, 2012 Share Posted December 24, 2012 -- Client Side setTimer ( function ( ) if getElementData ( resourceRoot, "thetime" ) then theData = getElementData ( resourceRoot, "thetime" ) end end , 500, 1 ) function setText ( ) guiSetText ( labelName, "" ) end setTimer ( setText, theData, 0 ) -- Server Side addEventHandler ( "onResourceStart", resourceRoot, function ( ) setElementData ( resourceRoot, "thetime", get ( "time" ) ) end ) لم يتم التجربة ذذ Link to comment
кιηg-αвα∂у Posted December 24, 2012 Author Share Posted December 24, 2012 -- Client Side setTimer ( function ( ) if getElementData ( resourceRoot, "thetime" ) then theData = getElementData ( resourceRoot, "thetime" ) end end , 500, 1 ) function setText ( ) guiSetText ( labelName, "" ) end setTimer ( setText, theData, 0 ) -- Server Side addEventHandler ( "onResourceStart", resourceRoot, function ( ) setElementData ( resourceRoot, "thetime", get ( "time" ) ) end ) لم يتم التجربة ذذ اخلي كلنت كذا ؟ addEventHandler('onClientPlayerJoin', g_Root, function() setTimer ( function ( ) if getElementData ( resourceRoot, "thetime" ) then theData = getElementData ( resourceRoot, "thetime" ) end end , 500, 1 ) function setText ( ) guiSetText ( join, "" ) end setTimer ( setText, theData, 0 ) end ) Link to comment
3NAD Posted December 24, 2012 Share Posted December 24, 2012 -- Client Side setTimer ( function ( ) if getElementData ( localPlayer, "thetime" ) then theData = getElementData ( localPlayer, "thetime" ) end end , 500, 1 ) function setText ( ) guiSetText ( labelName, "" ) end setTimer ( setText, theData, 0 ) -- Server Side Time = get ( "time" ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do setElementData ( v, "thetime", Time ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) setElementData ( source, "thetime", Time ) end ) Link to comment
кιηg-αвα∂у Posted December 24, 2012 Author Share Posted December 24, 2012 -- Client Side setTimer ( function ( ) if getElementData ( localPlayer, "thetime" ) then theData = getElementData ( localPlayer, "thetime" ) end end , 500, 1 ) function setText ( ) guiSetText ( labelName, "" ) end setTimer ( setText, theData, 0 ) -- Server Side Time = get ( "time" ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do setElementData ( v, "thetime", Time ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) setElementData ( source, "thetime", Time ) end ) انت مافهمت قصدي انا حاط افنت وابي لما يستوي الأفنت يبدأ العد واذا انتهى الوقت تصير ذي الوضيفة guiSetText ( labelName, "" ) Link to comment
кιηg-αвα∂у Posted December 24, 2012 Author Share Posted December 24, 2012 خلاص حليت المشكلة مشكور عناد 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