yazan Posted February 15, 2013 Share Posted February 15, 2013 سلام عليكم ودي لوحة تسجيل دخول تسعدوني بي اكود انا عملت النافذه+ازرار لكني ما اعرف وش اومرها GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(-7,480,799,599,"لوحة تسجيل دخول",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Label[1] = guiCreateLabel(438,524,359,68,"برمجة يـز ـن",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Memo[1] = guiCreateMemo(84,181,614,43,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(516,361,124,47,"login",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(192,369,122,49,"register",false,GUIEditor_Window[1]) GUIEditor_Memo[2] = guiCreateMemo(86,255,612,41,"",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(8,181,71,41,"NaIm",false,GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(8,267,62,30,"pass",false,GUIEditor_Window[1]) GUIEditor_Label[4] = guiCreateLabel(717,191,63,26,"اسمك",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(714,262,59,30,"كلمة سر",false,GUIEditor_Window[1]) GUIEditor_Label[6] = guiCreateLabel(19,527,161,65,"By yaZan",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(10,26,776,154,"images/yazan.png",false,GUIEditor_Window[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F2","down",open) Link to comment
iPrestege Posted February 15, 2013 Share Posted February 15, 2013 guiGetText triggerServerEvent getAccount logIn addAccount وهنا تحصل كل شيء كامل جاهز :: https://forum.multitheftauto.com/viewtopic.php?f=160&t=52765 انسخ كود كلنت من اخر صفحة وسيرفر من اول صفحة وعدل على الكلنت Link to comment
yazan Posted February 15, 2013 Author Share Posted February 15, 2013 ممكن تصحيح GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(-7,480,799,599,"لوحة تسجيل دخول",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Label[1] = guiCreateLabel(438,524,359,68,"برمجة يـز ـن",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Memo[1] = guiCreateMemo(84,181,614,43,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(516,361,124,47,"login",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(192,369,122,49,"register",false,GUIEditor_Window[1]) GUIEditor_Memo[2] = guiCreateMemo(86,255,612,41,"",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(8,181,71,41,"NaIm",false,GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(8,267,62,30,"pass",false,GUIEditor_Window[1]) GUIEditor_Label[4] = guiCreateLabel(717,191,63,26,"اسمك",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(714,262,59,30,"كلمة سر",false,GUIEditor_Window[1]) GUIEditor_Label[6] = guiCreateLabel(19,527,161,65,"By yaZan",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(10,26,776,154,"images/mtalogo.png",false,GUIEditor_Window[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F3","down",open) elseif ( source == GUIEditor_Button[1] ) then setElementPosition ( thePlayer, command, username, password ) local account = getAccount ( username, password ) if ( account ~= false ) then logIn ( thePlayer, account, password ) elseif ( source == GUIEditor_Button[2] ) then registerPlayer ( source, commandName, password ) if ( password ~= "" and password ~= nil ) then local accountAdded = addAccount( getPlayerName(source), password ) if ( accountAdded ) then setElementPosition, registerPlayer ) Link to comment
iPrestege Posted February 15, 2013 Share Posted February 15, 2013 ممكن تصحيح GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(-7,480,799,599,"لوحة تسجيل دخول",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Label[1] = guiCreateLabel(438,524,359,68,"برمجة يـز ـن",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Memo[1] = guiCreateMemo(84,181,614,43,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(516,361,124,47,"login",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(192,369,122,49,"register",false,GUIEditor_Window[1]) GUIEditor_Memo[2] = guiCreateMemo(86,255,612,41,"",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(8,181,71,41,"NaIm",false,GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(8,267,62,30,"pass",false,GUIEditor_Window[1]) GUIEditor_Label[4] = guiCreateLabel(717,191,63,26,"اسمك",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(714,262,59,30,"كلمة سر",false,GUIEditor_Window[1]) GUIEditor_Label[6] = guiCreateLabel(19,527,161,65,"By yaZan",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(10,26,776,154,"images/mtalogo.png",false,GUIEditor_Window[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F3","down",open) elseif ( source == GUIEditor_Button[1] ) then setElementPosition ( thePlayer, command, username, password ) local account = getAccount ( username, password ) if ( account ~= false ) then logIn ( thePlayer, account, password ) elseif ( source == GUIEditor_Button[2] ) then registerPlayer ( source, commandName, password ) if ( password ~= "" and password ~= nil ) then local accountAdded = addAccount( getPlayerName(source), password ) if ( accountAdded ) then setElementPosition, registerPlayer ) خرابيط كله شوف الموضوع حطيتة لك فوق كل شيء جاهز ذذ بس عددل الكلنت خذ الفنكشن onClientGUIClick . كامل وعدلة لـ كودك Link to comment
yazan Posted February 15, 2013 Author Share Posted February 15, 2013 قصم ما فهمت منه شي موضع كله ملخبط حقهم Link to comment
iPrestege Posted February 15, 2013 Share Posted February 15, 2013 -- Client GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(-7,480,799,599,"لوحة تسجيل دخول",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Label[1] = guiCreateLabel(438,524,359,68,"برمجة يـز ـن",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Memo[1] = guiCreateMemo(84,181,614,43,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(516,361,124,47,"login",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(192,369,122,49,"register",false,GUIEditor_Window[1]) GUIEditor_Memo[2] = guiCreateMemo(86,255,612,41,"",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(8,181,71,41,"NaIm",false,GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(8,267,62,30,"pass",false,GUIEditor_Window[1]) GUIEditor_Label[4] = guiCreateLabel(717,191,63,26,"اسمك",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(714,262,59,30,"كلمة سر",false,GUIEditor_Window[1]) GUIEditor_Label[6] = guiCreateLabel(19,527,161,65,"By yaZan",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(10,26,776,154,"images/yazan.png",false,GUIEditor_Window[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F2","down",open) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(GUIEditor_Memo[1]) local pass = guiGetText(GUIEditor_Memo[2]) if ( source == GUIEditor_Button[1] ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onLogin",localPlayer,user,pass) end elseif ( source == GUIEditor_Button[2] ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onRegister",localPlayer,user,pass) end end end ) -- Server addEvent("onLogin",true) addEventHandler("onLogin",root, function (user,pass) local acc = getAccount(user,pass) if ( acc ) then logIn(source,acc,pass) else outputChatBox("* Worng Username Or Password",source,255,0,0) end end ) addEvent("onRegister",true) addEventHandler("onRegister",root, function (user,pass) local acc = getAccount(user,pass) if ( acc ) then outputChatBox("* This Account is Already Exist",source,255,0,0) else addAccount(user,pass) outputChatBox("* You,re User : " .. user,source,255,255,255) outputChatBox("* You,re Pass : " .. pass,source,255,255,255) end end ) وانت مسوي ميمو ماسويت ايديت ممكن يحصل مشاكل ما اعتقد بس عادهـ ايديت يحتاج ادمنية السكربت resource.Name Link to comment
yazan Posted February 15, 2013 Author Share Posted February 15, 2013 مو شغال اعطيطها صلحيه ادمن و حطيط كلنت +سيرفر و ميتا شغال و بس نفس لوحه امور رز غلط Link to comment
iPrestege Posted February 15, 2013 Share Posted February 15, 2013 مو شغال اعطيطها صلحيه ادمن و حطيط كلنت +سيرفر و ميتا شغال و بس نفس لوحه امور رز غلط اللوحة لحسة شوي ماتقدر تسويها على نفس لوحتك لانة سهله -_-" ! ؟ Link to comment
yazan Posted February 15, 2013 Author Share Posted February 15, 2013 كيف اغير لوحة كمله ؟ Link to comment
TD[M]ER Posted February 15, 2013 Share Posted February 15, 2013 مو شغال اعطيطها صلحيه ادمن و حطيط كلنت +سيرفر و ميتا شغال و بس نفس لوحه امور رز غلط اللوحة لحسة شوي ماتقدر تسويها على نفس لوحتك لانة سهله -_-" ! ؟ انت كذا معطيه اكواد مود كامل من لوحة شخص اخر كذا عليهه هو اللوحة بس @@" Link to comment
yazan Posted February 15, 2013 Author Share Posted February 15, 2013 تدمير ليه تقط نفسك ماني فاهم وش دخلك يا اخي Link to comment
iPrestege Posted February 15, 2013 Share Posted February 15, 2013 يا يزن عطيتك الاكواد غير لوحتك وغير الميمو بدال الميمو ايديت وبس . Link to comment
yazan Posted February 15, 2013 Author Share Posted February 15, 2013 ما شتغل لوحه كمله + ما في امر خفاء عند تسجيل 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