Jump to content

تصحيح كودات اظهار لوحة عند دخول اللاعب


Recommended Posts

السلام عليكم

مبارك عليكم الشهر .. وكل سنة وانتم بألف خير

الكود

  
GUIEditor = { 
   
  window = {}, 
   
 staticimage = {} 
  
  
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
     
function() 
         
GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false) 
         
guiWindowSetSizable(GUIEditor.window[1], false) 
  
         
  
GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1])     
   
  end 
) 
  
GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1])     
   
  end 
) 
  
  
  
  
addEventHandler("onClientPlayerJoin", getRootElement(),  
function () 
     
                guiSetVisible ( GUIEditor.window[1], true ) 
                 showCursor (true ) 
end 
) 
  
  
  
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == GUIEditor.button[1] then 
                guiSetVisible ( GUIEditor.window[1], false ) 
                 showCursor (false ) 
     
            end 
            end) 

وتحياتي :fadein:

Link to comment
GUIEditor = { 
  window = {},  
 staticimage = {} 
  
  
}    
function LoadGUI (  )      
    GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false)         
    guiWindowSetSizable(GUIEditor.window[1], false) 
    GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1])     
    GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1])     
    addEventHandler('onClientGUIClick',GUIEditor.button[1],HideGUI,false) 
end 
  
addEventHandler('onClientResourceStart',resourceRoot, function ( ) LoadGUI ( ) end ) 
  
function HideGUI (  ) 
    if isElement ( GUIEditor.window[1] ) then 
        guiSetVisible ( GUIEditor.window[1],false ) 
        showCursor ( false ) 
    end 
end 

Link to comment

GUIEditor = {  
  window = {}, 
 staticimage = {} 
} 
  
GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false)        
guiWindowSetSizable(GUIEditor.window[1], false) 
GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1])     
GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1])     
  
  
addEventHandler( "onClientResourceStart", resourceRoot, 
 function( ) 
     guiSetVisible (GUIEditor.window[1],true) 
     showCursor(true) 
 end 
) 
  
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == GUIEditor.button[1] then 
                guiSetVisible (GUIEditor.window[1],false) 
                 showCursor (false)   
            end 
end) 
Link to comment
GUIEditor = { 
  window = {},  
 staticimage = {} 
  
  
}    
function LoadGUI (  )      
    GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false)         
    guiWindowSetSizable(GUIEditor.window[1], false) 
    GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1])     
    GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1])     
    addEventHandler('onClientGUIClick',GUIEditor.button[1],HideGUI,false) 
end 
  
addEventHandler('onClientResourceStart',resourceRoot, function ( ) LoadGUI ( ) end ) 
  
function HideGUI (  ) 
    if isElement ( GUIEditor.window[1] ) then 
        guiSetVisible ( GUIEditor.window[1],false ) 
        showCursor ( false ) 
    end 
end 

Link to comment
GUIEditor = { 
  window = {},  
 staticimage = {} 
  
  
}    
function LoadGUI (  )      
    GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false)         
    guiWindowSetSizable(GUIEditor.window[1], false) 
    GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1])     
    GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1])     
    addEventHandler('onClientGUIClick',GUIEditor.button[1],HideGUI,false) 
end 
  
addEventHandler('onClientResourceStart',resourceRoot, function ( ) LoadGUI ( ) end ) 
  
function HideGUI (  ) 
    if isElement ( GUIEditor.window[1] ) then 
        guiSetVisible ( GUIEditor.window[1],false ) 
        showCursor ( false ) 
    end 
end 

تظهر اللوحة اول ما اشغل المود .......... وما تختفي من الزر .. :(

Link to comment
GUIEditor_Window = {} 
 GUIEditor.staticimage = {} 
 GUIEditor.button = {} 
   
GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false)         
 guiWindowSetSizable(GUIEditor.window[1], false) 
 GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1])     
 GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1])     
  
addEventHandler( "onClientGUIClick", root, 
function ( ) 
            if ( source ==  GUIEditor.button[1] ) then 
            guiSetVisible(GUIEditor_Window[1],false) 
            showCursor (false) 
  
            end 
            end) 

Link to comment

^ مدري ليه معقدينها ._."

-- Client Side # 
GUIEditor = { 
    window = {}, 
    staticimage = {} 
} 
   
GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false)         
guiWindowSetSizable(GUIEditor.window[1], false) 
GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1])     
GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1])     
addEventHandler ( "onClientGUIClick", GUIEditor.button[1], HideGUI, false ) 
  
function HideGUI ( ) 
    guiSetVisible ( GUIEditor.window[1], false ) 
    showCursor ( false ) 
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...