Jump to content

طلب حل المشكلة


Recommended Posts

GUIEditor = { 
  
    label = {}, 
  
    button = {}, 
  
    edit = {}, 
  
    window = {}, 
  
} 
  
  
  
GUIEditor.window[1] = guiCreateWindow(351, 179, 661, 423, "Login Panel By AlooyFTW", false) 
 guiWindowSetSizable(GUIEditor.window[1], false) 
 GUIEditor.edit[1] = guiCreateEdit(260, 65, 294, 51, "", false, GUIEditor.window[1]) 
 GUIEditor.edit[2] = guiCreateEdit(260, 154, 294, 51, "", false, GUIEditor.window[1]) 
 GUIEditor.button[1] = guiCreateButton(10, 291, 280, 76, "Login", false, GUIEditor.window[1]) 
 guiSetFont(GUIEditor.button[1], "sa-gothic") 
 guiSetProperty(GUIEditor.button[1], "NormalTextColour", "C8FFFFFF") 
 GUIEditor.label[1] = guiCreateLabel(16, 65, 189, 53, "UserName", false, GUIEditor.window[1]) 
 guiSetFont(GUIEditor.label[1], "sa-header") 
 guiLabelSetColor(GUIEditor.label[1], 16, 0, 193) 
 GUIEditor.label[2] = guiCreateLabel(19, 154, 176, 51, "Password", false, GUIEditor.window[1]) 
 guiSetFont(GUIEditor.label[2], "sa-header") 
 guiLabelSetColor(GUIEditor.label[2], 16, 0, 193) 
 GUIEditor.button[5] = guiCreateButton(342, 292, 280, 76, "Register", false, GUIEditor.window[1]) 
 guiSetFont(GUIEditor.button[5], "sa-gothic") 
 guiSetProperty(GUIEditor.button[5], "NormalTextColour", "C8FFFFFF") 
 guiSetVisible (GUIEditor.window[1], true) 
showCursor ( true ) 
  
  
  
addEventHandler ("onClientGUIClick", root, 
    function ( ) 
        if ( source ==  GUIEditor.button[1] ) then 
            triggerServerEvent("login", localPlayer, localPlayer, guiGetText ( GUIEditor.edit[1] ), guiGetText ( GUIEditor.edit[2] ) ) 
        elseif ( source == GUIEditor.button[5] ) then 
            triggerServerEvent("register", localPlayer, localPlayer, guiGetText ( GUIEditor.edit[1] ), guiGetText ( GUIEditor.edit[2] ) ) 
        end 
    end 
) 
  
  
  
addEvent ( "hideWindow", true ) 
addEventHandler ( "hideWindow", root, 
    function ( ) 
        guiSetVisible ( GUIEditor.window[1], false ) 
        fadeCamera ( true ) 
        showCursor ( false ) 
    end 
) 
  
  
addEventHandler( "onClientResourceStart",resourceRoot, 
 function() 
fadeCamera(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...