XPro Posted June 15, 2015 Posted June 15, 2015 اول شي النافذة ما تختفي بعد التسجيل ثاني شي السهم ما يظهر Client GUIEditor_Label = {} wnd = guiCreateWindow(394,130,505,303,"Login Panel v0.1 By XPro",false) name = guiCreateLabel(59,84,79,19,"UserName : ",false,wnd) guiLabelSetColor(name,0,0,255) guiSetFont(name,"clear-normal") pass = guiCreateLabel(108,147,81,23,"Password : ",false,wnd) guiLabelSetColor(pass,0,0,255) guiSetFont(pass,"clear-normal") edit1 = guiCreateEdit(147,79,245,31,"",false,wnd) edit2 = guiCreateEdit(196,140,245,31,"",false,wnd) check = guiCreateCheckBox(387,196,21,20,"",false,false,wnd) guiCheckBoxSetSelected(check,true) GUIEditor_Label[1] = guiCreateLabel(293,196,88,25,"Remamber Me",false,wnd) guiLabelSetColor(GUIEditor_Label[1],255,0,0) login = guiCreateButton(47,232,99,61,"Login",false,wnd) register = guiCreateButton(369,232,99,61,"Register",false,wnd) guiSetAlpha(register,1) guste = guiCreateButton(210,256,89,38,"Guste",false,wnd) GUIEditor_Label[2] = guiCreateLabel(405,19,93,15,"Login Panel v0.1 By XPro",false,wnd) addEventHandler ("onClientGUIClick" ,root, function () if ( source == login ) then UserName = guiGetText ( edit1 ) PassWord = guiGetText ( edit2 ) triggerServerEvent ( "Loginin",localPlayer,UserName,PassWord ) guiSetVisible (wnd, true) showCursor ( true ) end end ) addEvent ( "CloseWindow", true ) addEventHandler ( "CloseWindow", root, function ( Logined ) if ( Logined ) then guiSetVisible ( Wnd, false ) showCursor ( false ) end end ) Server addEvent ( "Loginin", true ) addEventHandler ( "Loginin", root, function ( Username, Password ) local Account = getAccount ( Username, Password ) local Logined = logIn ( source, Account, Password ) if ( Logined ) then triggerClientEvent ("CloseWindow", source, Logined ) outputChatBox ("You Are Login in" ,source,255,0,0) else outputChatBox ("UserName Or Password False" ,source,255,0,0) end end ) ما تختفي اللوحة بعد تسجيل الدخول+ السهم ما يظهر +شكر على المساعدة الاخ Mr.R
#Plair07 Posted June 15, 2015 Posted June 15, 2015 عجزت احدد المشكله + خبرتي بالنوافذ قليله جرب الدي بق وشف وش يطلع لك ..
#Plair07 Posted June 15, 2015 Posted June 15, 2015 شكرا على المحاولة + وش هو الد بق هذا تكتبه ب اف8 ويطلع لك الاخطاء , بس م اعرف كيف يستعمل ولا قد استخدمته اصلاً
#DRAGON!FIRE Posted June 15, 2015 Posted June 15, 2015 ما فهمت وش تبي تسوي عندك اخطاء مسوي لوحة تسجيل يوم يخش اللاعب ومسوي يوم يضغط زر لوغ ان تجيه اللوحة ومو مسوي ريجستر .. ماني فاهم شي قولي وش بتسوي بالضبط To Contact Me at Skype : [email protected]
iMr.Dawix~# Posted June 15, 2015 Posted June 15, 2015 client: GUIEditor_Label = {} wnd = guiCreateWindow(394,130,505,303,"Login Panel v0.1 By XPro",false) showCursor (true) name = guiCreateLabel(59,84,79,19,"UserName : ",false,wnd) guiLabelSetColor(name,0,0,255) guiSetFont(name,"clear-normal") pass = guiCreateLabel(108,147,81,23,"Password : ",false,wnd) guiLabelSetColor(pass,0,0,255) guiSetFont(pass,"clear-normal") edit1 = guiCreateEdit(147,79,245,31,"",false,wnd) edit2 = guiCreateEdit(196,140,245,31,"",false,wnd) check = guiCreateCheckBox(387,196,21,20,"",false,false,wnd) guiCheckBoxSetSelected(check,true) GUIEditor_Label[1] = guiCreateLabel(293,196,88,25,"Remamber Me",false,wnd) guiLabelSetColor(GUIEditor_Label[1],255,0,0) login = guiCreateButton(47,232,99,61,"Login",false,wnd) register = guiCreateButton(369,232,99,61,"Register",false,wnd) guiSetAlpha(register,1) guste = guiCreateButton(210,256,89,38,"Guste",false,wnd) GUIEditor_Label[2] = guiCreateLabel(405,19,93,15,"Login Panel v0.1 By XPro",false,wnd) addEventHandler ("onClientGUIClick" ,root, function () if ( source == login ) then UserName = guiGetText ( edit1 ) PassWord = guiGetText ( edit2 ) triggerServerEvent ( "Loginin",localPlayer,UserName,PassWord ) guiSetVisible (wnd,false) showCursor (false) end end ) server: addEvent ( "Loginin", true ) addEventHandler ( "Loginin", root, function ( Username, Password ) local Account = getAccount ( Username, Password ) local Logined = logIn ( source, Account, Password ) if ( Logined ) then outputChatBox ("You Are Logged in" ,source,255,0,0) else outputChatBox ("UserName Or Password False" ,source,255,0,0) end end ) My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
XPro Posted June 15, 2015 Author Posted June 15, 2015 الزاحف ذي مو لوحة تسجيل ذي لوحة دخول بس لسا ما برمجت التسجيل الحين شغالة اكتب الاسم و كلمت السر يدخل الحساب بس ما تختفي اللوحة و ما يجيني السهم
XPro Posted June 15, 2015 Author Posted June 15, 2015 مشكور يا الاخ iMr.Dawix بس قولي على حسب كودك كيف عرفت الحدث يوم تغلق اللوحة الي هو تسجيل الدخول؟؟
terreus Posted June 15, 2015 Posted June 15, 2015 يوم يضغط تسجيل او تسيجيل دخول onClientGUIClick يخفي لوحة + موس showCursor (false) guiSetVisible (wnd,false)
Maksoud Posted June 15, 2015 Posted June 15, 2015 معلش بس ابي اضيفلك معلومة برو الدي بق تكتب بي اف 8 debugscript 3 يظهرلك الاخطاء بالشاشة في الاسفل الاخطأ بتكون لونها احمر علي حسب الخطأ تصحح كوداتك #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
Ac[T]ioN Posted June 15, 2015 Posted June 15, 2015 يوم يضغط تسجيل او تسيجيل دخول onClientGUIClick يخفي لوحة + موس showCursor (false) guiSetVisible (wnd,false) بس أظن إنه كمان لازم يتحقق إذا كان الاعب كتب بياناته صح لان ممكن إذا احد ضغط علي تسجيل الدخول وهو ماكتب البيانات تختفي اللوحة - There is no God but [ Allah ] , Mohammad is the messenger of Allah ♥ # action.live2 :لططلباتت البرممجةة بممقاببل مماادي تتواصصل ممعي سسكايب
Mr.R Posted June 15, 2015 Posted June 15, 2015 (edited) المشكله من ملف سيرفر جرب كذا , ويظبط 100% والكود مجرب addEvent ( "Loginin", true ) addEventHandler ( "Loginin", root, function ( UserName, PassWord ) local Account = getAccount ( UserName, PassWord ) local Logined = logIn ( source, Account, PassWord ) if ( Logined ) then triggerClientEvent ( source, "CloseWindow", source, Logined ) outputChatBox ( "You Are Login in" , source, 255, 0, 0, true ) else outputChatBox ( "UserName Or Password False", source, 255, 0, 0, true ) end end ) وملف كلنت استبدل كودكـ بـ هذا addEventHandler ("onClientGUIClick", resourceRoot, function ( ) if ( source == login ) then UserName = guiGetText ( edit1 ) PassWord = guiGetText ( edit2 ) triggerServerEvent ( "Loginin", localPlayer, UserName, PassWord ) end end ) وعشان تتسكر اللوحه تلقائياً بعد مايسجل الاعب ضيف هذا الكود في كلنت وانا ادري ان الكود عندك بس حطيته هنا مره ثانيه مافيه مشكله ^^ addEvent ("CloseWindow", true ) addEventHandler ( "CloseWindow", root, function ( Logined ) if ( Logined ) then guiSetVisible ( wnd, false ) showCursor ( false ) end ) واذا منت بفاهم شيء , تعال سكايب Edited June 15, 2015 by Guest * There is no God but Allah, Mohammed is the Messenger Of Allah
' A F . Posted June 15, 2015 Posted June 15, 2015 ^ triggerClientEvent مو فيه ب السيرفر addEvent("CloseWindow",true) addEventHandler("CloseWindow",root, function ( ) guiSetVisible(wnd,false) showCursor(false) end) Dis ; AF.#0941
Mr.R Posted June 15, 2015 Posted June 15, 2015 ^triggerClientEvent مو فيه ب السيرفر addEvent("CloseWindow",true) addEventHandler("CloseWindow",root, function ( ) guiSetVisible(wnd,false) showCursor(false) end) هو سوى ترايقر ليه ؟ عشان يسكر اللوحه تلقائياً بعد مايسجل الاعب ولأن فنكشن guiSetVisible من جانب كلنت وكودك يابرو قيمر يصير كذا addEvent ("CloseWindow", true ) addEventHandler ( "CloseWindow", root, function ( Logined ) if ( Logined ) then guiSetVisible ( wnd, false ) showCursor ( false ) end ) لانه ارسل الترايقر كذا triggerClientEvent ( source, "CloseWindow", source, Logined ) اتمنى استفدت وهو وراني الكود في السكايب وصلحته له بس علمته فوق وش يسوي عشان يظبط مودهـ ^^ * There is no God but Allah, Mohammed is the Messenger Of Allah
XPro Posted June 15, 2015 Author Posted June 15, 2015 يب معاه كل حق هو دعمني كتير على السكايب مشكور تعلم كم من شي منك تسلم
Mr.R Posted June 15, 2015 Posted June 15, 2015 يب معاه كل حق هو دعمني كتير على السكايب مشكور تعلم كم من شي منك تسلم .. حياك الله * There is no God but Allah, Mohammed is the Messenger Of Allah
iMr.Dawix~# Posted June 16, 2015 Posted June 16, 2015 مشكور يا الاخ iMr.Dawix العفو My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
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