Jump to content

شرح كود


Recommended Posts

انا طلبت كود و واحد عطاني هذا بس مش فاهمو ممكن شرح

addEventHandler ( "onClientClick", root, 
    function ( button, state, _, _, _, _, _, plr ) 
        if button == "left" and state == "up" and  plr  then 
            if getElementType( plr ) == "player" then 
                if getPlayerName( plr ) == getPlayerName( localPlayer ) then 
                    guiSetVisible ( wnd, not guiGetVisible(wnd) ) 
                        showCursor( guiGetVisible(wnd)) 
                    else 
                        guiSetVisible ( secWnd, guiGetVisible(secWnd) ) 
                            showCursor( guiGetVisible(secWnd) ) 
                        end 
                    else 
                        outputChatBox( " ** Please click on the player !" ) 
                    end 
            end 
    end 
) 

Link to comment
addEventHandler ( "onClientClick", root, --- الحددث لما تضغط على الزر 
    function ( button, state, _, _, _, _, _, plr ) 
        if button == "left" and state == "up" and  plr  then 
            if getElementType( plr ) == "player" then ---  يجيب اللاعب 
                if getPlayerName( plr ) == getPlayerName( localPlayer ) then --- يجيب آسم اللاعب 
                    guiSetVisible ( wnd, not guiGetVisible(wnd) ) --- يظهر النافذه 
                        showCursor( guiGetVisible(wnd)) --- يظهر الماوس 
                    else 
                        guiSetVisible ( secWnd, guiGetVisible(secWnd) ) 
                            showCursor( guiGetVisible(secWnd) ) 
                        end 
                    else 
                        outputChatBox( " ** Please click on the player !" ) --- يظهر كلآم بآلشات 
                    end 
            end 
    end 
) --- لإغلاق آلحدث  
  

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...