~Mr.Hassan Posted August 16, 2015 Author Share Posted August 16, 2015 شباب انا لوحه سفاح جربتها بس اضغط عا البوتون لا لوحه تقفل ولا يقلي سجلت ودي بوق ما يقلي شيئ Link to comment
H25 Posted August 16, 2015 Share Posted August 16, 2015 الحين لما اضغط 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
Naif Posted August 16, 2015 Share Posted August 16, 2015 يسوي من السيرفر outputChatBox triggerClientEvent Link to comment
iMr.SFA7 Posted August 16, 2015 Share Posted August 16, 2015 (edited) شباب انا لوحه سفاح جربتها بس اضغط عا البوتون لا لوحه تقفل ولا يقلي سجلت ودي بوق ما يقلي شيئ هذا لآنك ما سويت شيء يقفل اللوحة المفروض تسوي ترايقر من السيرفر للكلنت وتخفيها !! -- 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 August 16, 2015 by Guest Link to comment
N3xT Posted August 16, 2015 Share Posted August 16, 2015 شباب انا لوحه سفاح جربتها بس اضغط عا البوتون لا لوحه تقفل ولا يقلي سجلت ودي بوق ما يقلي شيئ هذا لآنك ما سويت شيء يقفل اللوحة المفروض تسوي ترايقر من السيرفر للكلنت وتخفيها !! -- 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
iMr.SFA7 Posted August 16, 2015 Share Posted August 16, 2015 ! Password 1 حاط بتسجيل الدخول Password المفروض عدلته ! Link to comment
iMr.SFA7 Posted August 16, 2015 Share Posted August 16, 2015 -- 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
Naif Posted August 16, 2015 Share Posted August 16, 2015 صرأحة مبدع 30% وماتقدر تصلح كود الحمدلله .. Link to comment
LoOs Posted August 16, 2015 Share Posted August 16, 2015 صرأحة مبدع 30% وماتقدر تصلح كود الحمدلله .. Link to comment
N3xT Posted August 16, 2015 Share Posted August 16, 2015 صرأحة مبدع 30% وماتقدر تصلح كود الحمدلله .. في دستور السعادة ، سلك ولا تدقق Link to comment
~Mr.Hassan Posted August 16, 2015 Author Share Posted August 16, 2015 صرأحة مبدع 30% وماتقدر تصلح كود الحمدلله .. ذي 30 قصدي مو بس للوا وكمان ل c++ كذا Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now