Jump to content

ابي مساعده ب لوحه


Recommended Posts

اسلام عليكم ممكن لو سمحتو تسو لي الوحه ذي dx لاهنتو ابيها كذا ضروري ولله

  
---------------------------------- 
-----------| Settings |----------- 
---------------------------------- 
  
blackLoginScreen = true         -- Set to 'true' to display a black screen to the player untill they log in or choose to play as a guest. 
  
enableKickPlayer = true         -- Set whether to kick the player after they fail to login specified amount of times. 
  
disallowLogout = false          -- Set whether to show the userpanel to the players if they log out of their accounts. 
  
removeBlackScreenTime = 4       -- The time it takes for the black screen to dissapear - If you choose to display the black screen. [iN SECONDS] 
  
maxLoginAttempts = 5            -- Set the maximum incorrect login attempts before the player gets kicked - If player kicking is enabled. 
  
---------------------------------- 
  
  
  
  
  
  
  
-- Screen and GUI sizes, don't modify 
screenWidth,screenHeight = guiGetScreenSize() 
mainWidth,mainHeight = 269,272 
regWidth,regHeight =  469,372 
  
addEvent("onRequestIncreaseAttempts",true) 
addEvent("onRequestDisplayPanel",true) 
  
function loginPanel() 
        -- Check if autologin is enabled - If yes, then log the player in, else create and show the userpanel 
        local xmlFile = xmlLoadFile("user.xml") 
        if xmlFile then 
            status = xmlNodeGetAttribute(xmlFile,"autologin") 
            if (status == tostring(true)) then 
                local username = tostring(xmlNodeGetAttribute(xmlFile,"username")) 
                local password = tostring(xmlNodeGetAttribute(xmlFile,"password")) 
                if not (username == "") and not (password == "") then 
                    triggerServerEvent("onRequestAutologin",getLocalPlayer(),username,password) 
                end 
            else 
             
             
             
             
             
             
                if blackLoginScreen == true then 
                    fadeCamera(false,0,0,0,0) 
                end 
        mainWindow = guiCreateWindow(428,132,624,688,"Login-Panel",false) 
                guiWindowSetSizable(mainWindow,false) 
guiCreateMemo(23,294,579,364,"------ القوانين ------ \n\n* 1- يجب على كل ادمن او لاعب لديه ترقيه ب السيرفر وضع شعاره [C.O.D]\n* 2 - السب = ميوت يوم \n*No 3- النصب على لاعبين السيرفر = باند يومين\n* 4- النشر لسيرفرات اخرا = باند مؤبد \n\n*5 - التلميح لسيرفرات اخرا = باند 30 يوم\n\n\To Help Perss J ",false,mainWindow) 
                mInfo = guiCreateMemo(23,294,579,364,infoText,false,mainWindow) 
                guiMemoSetReadOnly(mInfo,true) 
                guiCreateButton(453,210,156,46,"help",false,mainWindow) 
  
                editUsername = guiCreateEdit(22,75,187,38,"",false,mainWindow) 
                guiEditSetMaxLength(editUsername,30) 
  
                editPassword = guiCreateEdit(22,146,187,38,"",false,mainWindow) 
                guiEditSetMaxLength(editPassword,30) 
                guiEditSetMasked(editPassword,true) 
  
                lblUsername = guiCreateLabel(30,52,152,18,"UserName:",false,mainWindow) 
                guiLabelSetVerticalAlign(lblUsername,"center") 
                guiLabelSetHorizontalAlign(lblUsername,"center",false) 
                guiSetFont(lblUsername,"default-bold-small") 
  
                lblPassword = guiCreateLabel(30,129,152,18,"Passowrd:",false,mainWindow) 
                guiLabelSetVerticalAlign(lblPassword,"center") 
                guiLabelSetHorizontalAlign(lblPassword,"center",false) 
                guiSetFont(lblPassword,"default-bold-small") 
                guiSetFont(btnPlayAsGuest,"default-bold-small") 
  
                btnLogin = guiCreateButton(19,210,189,46,"Login",false,mainWindow) 
  
                btnToggleRegister = guiCreateButton(244,210,189,46,"Register",false,mainWindow) 
                guiSetFont(btnToggleRegister,"default-bold-small") 
  
                registerWindow = guiCreateWindow(screenWidth/2-regWidth/2,screenHeight/2-regHeight/2,regWidth,regHeight,"register-Panel",false) 
                guiWindowSetSizable(registerWindow,false) 
  
                editRegistrationUsername = guiCreateEdit(98,138,242,25,"",false,registerWindow) 
  
                editRegistrationPassword = guiCreateEdit(98,195,242,25,"",false,registerWindow) 
                guiEditSetMasked(editRegistrationPassword,true) 
  
                editRegistrationRepeatPassword = guiCreateEdit(99,252,242,25,"",false,registerWindow) 
                guiEditSetMasked(editRegistrationRepeatPassword,true) 
  
                lblRUsername = guiCreateLabel(98,100,242,17,"username",false,registerWindow) 
                guiLabelSetVerticalAlign(lblRUsername,"center") 
                guiLabelSetHorizontalAlign(lblRUsername,"center",false) 
                guiSetFont(lblRUsername,"default-bold-small") 
                 
                lblRUsername = guiCreateLabel(98,413,242,17,"Passowrd",false,registerWindow) 
                guiLabelSetVerticalAlign(lblRUsername,"center") 
                guiLabelSetHorizontalAlign(lblRUsername,"center",false) 
                guiSetFont(lblRUsername,"default-bold-small") 
  
                lblRPassword = guiCreateLabel(98,171,242,17,"Passowrd",false,registerWindow) 
                guiLabelSetVerticalAlign(lblRPassword,"center") 
                guiLabelSetHorizontalAlign(lblRPassword,"center",false) 
                guiSetFont(lblRPassword,"default-bold-small") 
  
                lblRepeatPassword = guiCreateLabel(98,230,242,17,"Passowrd-2:",false,registerWindow) 
                guiLabelSetVerticalAlign(lblRepeatPassword,"center") 
                guiLabelSetHorizontalAlign(lblRepeatPassword,"center",false) 
                guiSetFont(lblRepeatPassword,"default-bold-small") 
  
                btnCancel = guiCreateButton(232,292,179,38,"Close",false,registerWindow) 
                guiSetFont(btnCancel,"default-bold-small") 
  
                btnConfirmRegistration = guiCreateButton(29,292,179,38,"Register",false,registerWindow) 
                guiSetFont(btnConfirmRegistration,"default-bold-small") 

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