Jump to content

تم الأفادة << مشكلة اضافة اعدادات في الأدمنية


Recommended Posts

السلام عليكم

البل مايختفي وش الخطأ ؟

      
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 by Guest
Link to comment
-- 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
-- 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
-- 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
-- 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...