Jump to content

يا شباب محتاج حد يعلمني


Recommended Posts

الحين لما اضغط login

لا يقلي سجلت

ولا يقفل الوحه ذذ

addEventHandler ( "onClientGUIClick", root, function (    ) 
    if ( source == GUIEditor.button[1] ) then 
    UserName1 = guiGetText (  GUIEditor.edit[1] ) 
    PassWord1 = guiGetText (  GUIEditor.edit[2] ) 
    if ( UserName1 ~= "" and PassWord1 ~= "" ) then 
    triggerServerEvent ( "Register", localPlayer, Username1, Password1 ) 
    guiSetVisible(Window,false) -- Window = اسم اللوحة 
    showCursor(false) 
    outputChatbOX("# تم التسجيل  !",0,255,0,true) 
        elseif ( source == GUIEditor.button[2] ) then 
    UserName = guiGetText (  GUIEditor.edit[3] ) -- اسم الأيدت الاول 
    PassWord = guiGetText ( GUIEditor.edit[4] ) -- اسم الأيدت الثاني 
      if ( UserName ~= "" and PassWord ~= "" ) then 
    triggerServerEvent ( "Login", localPlayer, Username, Password ) 
    guiSetVisible(Window,false) -- Window = اسم اللوحة 
    showCursor(false) 
    outputChatbOX("# تم تسجيل الدخول !",0,255,0,true) 
    end 
end 
end 
end 
) 

ليش حاط "تم تسجيل الدخول" و "تم التسجيل" ؟

يعني لو كانت المعلومات خطأ بقوله تم تسجيل الدخول وبتختفي اللوحة !

Link to comment
شباب انا لوحه سفاح جربتها بس اضغط عا البوتون لا لوحه تقفل ولا يقلي سجلت ودي بوق ما يقلي شيئ

هذا لآنك ما سويت شيء يقفل اللوحة المفروض تسوي ترايقر من السيرفر للكلنت وتخفيها !!

-- Client Side 
  
  
GUIEditor = { 
    edit = {}, 
    button = {}, 
    window = {}, 
    label = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(186, 86, 456, 374, "Server Zombie [H.S] سيرفر قوات الزومبي", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.label[1] = guiCreateLabel(0, -121, 146, 37, "", false, GUIEditor.window[1]) 
        GUIEditor.label[2] = guiCreateLabel(17, 32, 158, 34, "UserName :", false, GUIEditor.window[1]) 
        GUIEditor.label[3] = guiCreateLabel(17, 99, 130, 33, "PassWord :", false, GUIEditor.window[1]) 
        GUIEditor.edit[1] = guiCreateEdit(84, 32, 125, 18, "", false, GUIEditor.window[1]) 
        GUIEditor.label[4] = guiCreateLabel(-232, 154, 170, 75, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[2] = guiCreateEdit(79, 99, 120, 18, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(19, 142, 118, 57, "Login", false, GUIEditor.window[1]) 
        GUIEditor.label[5] = guiCreateLabel(11, 240, 96, 30, "Name :", false, GUIEditor.window[1]) 
        GUIEditor.label[6] = guiCreateLabel(13, 287, 94, 38, "Password :", false, GUIEditor.window[1]) 
        GUIEditor.edit[3] = guiCreateEdit(52, 240, 127, 20, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[4] = guiCreateEdit(72, 288, 126, 20, "", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(78, 318, 116, 46, "Register", false, GUIEditor.window[1]) 
        GUIEditor.memo[1] = guiCreateMemo(340, 20, 106, 344, "Wellcome To Server Professionals Zombie ...\n\n\nProngram :\n\n1- Hassan\n\n2 - soon\n\n3 - soon\n\n4 - soon\n=======", false, GUIEditor.window[1])     
    end 
) 
---------------------- 
addEventHandler ( "onClientGUIClick", root, function (    ) 
    if ( source == GUIEditor.button[1] ) then 
   local UserName1 = guiGetText (  GUIEditor.edit[1] ) 
    local PassWord1 = guiGetText (  GUIEditor.edit[2] ) 
    if ( UserName1 ~= "" and PassWord1 ~= "" ) then 
    triggerServerEvent ( "Register", localPlayer, Username1, Password1 ) 
        elseif ( source == GUIEditor.button[2] ) then 
    local UserName = guiGetText (  GUIEditor.edit[3] ) 
    local PassWord = guiGetText ( GUIEditor.edit[4] ) 
      if ( UserName ~= "" and PassWord ~= "" ) then 
    triggerServerEvent ( "Login", localPlayer, Username, Password ) 
           end 
        end 
    end 
end 
) 
  
addEvent("show",true) 
addEventHandler("show",root, 
    function () 
        guiSetVisible(GUIEditor.window[1],false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
    end 
) 

-- Server Side 
  
 addEvent("Login",true) 
addEventHandler("Login",getRootElement(), 
    function (Username,Password) 
        local account = getAccount(Username,Password) 
        if ( account ) then 
            logIn(source,account,Password) 
            triggerClientEvent(source,"show",source) 
        else 
            outputChatBox("* Worng Username Or Password",source,255,0,0) 
        end 
    end 
) 
  
addEvent("Register",true) 
addEventHandler("Register",getRootElement(), 
    function (Username1,Password1) 
        local account = getAccount(Username1,Password1) 
        if ( account ) then 
            outputChatBox("* This Account is Already Used",source,255,0,0) 
        else 
            addAccount(Username1,Password1) 
            outputChatBox("UserName: " .. Username1 .. " PassWord : " .. Password1,source,0,150,255) 
        end 
    end 
) 
Edited by Guest
Link to comment
شباب انا لوحه سفاح جربتها بس اضغط عا البوتون لا لوحه تقفل ولا يقلي سجلت ودي بوق ما يقلي شيئ

هذا لآنك ما سويت شيء يقفل اللوحة المفروض تسوي ترايقر من السيرفر للكلنت وتخفيها !!

-- Client Side 
  
  
GUIEditor = { 
    edit = {}, 
    button = {}, 
    window = {}, 
    label = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(186, 86, 456, 374, "Server Zombie [H.S] سيرفر قوات الزومبي", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.label[1] = guiCreateLabel(0, -121, 146, 37, "", false, GUIEditor.window[1]) 
        GUIEditor.label[2] = guiCreateLabel(17, 32, 158, 34, "UserName :", false, GUIEditor.window[1]) 
        GUIEditor.label[3] = guiCreateLabel(17, 99, 130, 33, "PassWord :", false, GUIEditor.window[1]) 
        GUIEditor.edit[1] = guiCreateEdit(84, 32, 125, 18, "", false, GUIEditor.window[1]) 
        GUIEditor.label[4] = guiCreateLabel(-232, 154, 170, 75, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[2] = guiCreateEdit(79, 99, 120, 18, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(19, 142, 118, 57, "Login", false, GUIEditor.window[1]) 
        GUIEditor.label[5] = guiCreateLabel(11, 240, 96, 30, "Name :", false, GUIEditor.window[1]) 
        GUIEditor.label[6] = guiCreateLabel(13, 287, 94, 38, "Password :", false, GUIEditor.window[1]) 
        GUIEditor.edit[3] = guiCreateEdit(52, 240, 127, 20, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[4] = guiCreateEdit(72, 288, 126, 20, "", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(78, 318, 116, 46, "Register", false, GUIEditor.window[1]) 
        GUIEditor.memo[1] = guiCreateMemo(340, 20, 106, 344, "Wellcome To Server Professionals Zombie ...\n\n\nProngram :\n\n1- Hassan\n\n2 - soon\n\n3 - soon\n\n4 - soon\n=======", false, GUIEditor.window[1])     
    end 
) 
---------------------- 
addEventHandler ( "onClientGUIClick", root, function (    ) 
    if ( source == GUIEditor.button[1] ) then 
   local UserName1 = guiGetText (  GUIEditor.edit[1] ) 
    local PassWord1 = guiGetText (  GUIEditor.edit[2] ) 
    if ( UserName1 ~= "" and PassWord1 ~= "" ) then 
    triggerServerEvent ( "Register", localPlayer, Username1, Password1 ) 
        elseif ( source == GUIEditor.button[2] ) then 
    local UserName = guiGetText (  GUIEditor.edit[3] ) 
    local PassWord = guiGetText ( GUIEditor.edit[4] ) 
      if ( UserName ~= "" and PassWord ~= "" ) then 
    triggerServerEvent ( "Login", localPlayer, Username, Password ) 
           end 
        end 
    end 
end 
) 
  
addEvent("show",true) 
addEventHandler("show",root, 
    function () 
        guiSetVisible(GUIEditor.window[1],false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
    end 
) 

-- Server Side 
  
 addEvent("Login",true) 
addEventHandler("Login",getRootElement(), 
    function (Username,Password) 
        local account = getAccount(Username,Password) 
        if ( account ) then 
            logIn(source,account,Password1) 
            triggerClientEvent(source,"show",source) 
        else 
            outputChatBox("* Worng Username Or Password",source,255,0,0) 
        end 
    end 
) 
  
addEvent("Register",true) 
addEventHandler("Register",getRootElement(), 
    function (Username1,Password1) 
        local account = getAccount(Username1,Password1) 
        if ( account ) then 
            outputChatBox("* This Account is Already Used",source,255,0,0) 
        else 
            addAccount(Username1,Password1) 
            outputChatBox("UserName: " .. Username1 .. " PassWord : " .. Password1,source,0,150,255) 
        end 
    end 
) 
addEvent("Login",true) 
addEventHandler("Login",getRootElement(), 
    function (Username,Password) 
        local account = getAccount(Username,Password) 
        if ( account ) then 
            logIn(source,account,Password) 
            triggerClientEvent(source,"show",source) 
        else 
            outputChatBox("* Worng Username Or Password",source,255,0,0) 
        end 
    end 
) 
) 

! Password 1 حاط بتسجيل الدخول

Password المفروض

Link to comment

-- Server Side 
  
 addEvent("Login",true) 
addEventHandler("Login",getRootElement(), 
    function (Username,Password) 
        local account = getAccount(Username,Password) 
        if ( account ) then 
            logIn(source,account,Password) 
            triggerClientEvent(source,"show",source) 
        else 
            outputChatBox("* Worng Username Or Password",source,255,0,0) 
        end 
    end 
) 
  
addEvent("Register",true) 
addEventHandler("Register",getRootElement(), 
    function (Username1,Password1) 
        local account = getAccount(Username1,Password1) 
        if ( account ) then 
            outputChatBox("* This Account is Already Used",source,255,0,0) 
        else 
            addAccount(Username1,Password1) 
        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...