Jump to content

mahmod3

Members
  • Posts

    397
  • Joined

  • Last visited

Everything posted by mahmod3

  1. والله مش قصدي نحطمك لاكن مازال بكري هادا كله اني حاولت نديره بس مفيش فائده مازال بشوي بشوي تتعلم لن تولي خبير ونشوفوك من كبار المبرمجين
  2. والله درتها بروحي وحتى كنت بنقول تمت الافاده لاكن قلت فوتها ض
  3. حياك الله وبراحتك
  4. على اعتقادي مافي سلاح الايدي الخاص فيه 48
  5. اسف بس اطرح كودك حبيت نعلمك انك كل مرة تطلب تعديل ع لوحة تطرح فيها كودك الكود تحطه وين ما تبي لوطه فوق في الوسط وين ما تبي اهم شئ كان تبي الترتيب بنسبه ليك وتاني شي المشكلة مش من الكود هادا المشكلة من الكود متعك اكيد فيه اخطاء
  6. اطرح كودك تعرف انك عبيط كيف بنساعدوك وانت متطرحش في كودك
  7. طلب اخير يعني ابي لو اللاعب سجل دخوله يعني كان اسم الحساب صح والباس صح تغلق اللوحة اما لو كان الامس خطأ والباس خطأ ماتغلق لوحة التسجيل كيف ؟
  8. اهاا مشكورين تعبتكم
  9. يعني ابيه لمما احدد الشيك بوكس مو يطلع الحساب فجئة فهمت قصدي ؟
  10. شف انا اول م دخلت جبلي اسم حسابي + الباس اول شي ابيه لما احدد ع التشك بوكس يحفظ الحساب ولما يزيل الصح من التشيك بوكس يحدف الحساب تاني شي الرمز يطلع ** ايه يطلع متل كدا ***** شف انا اول م دخلت جبلي اسم حسابي + الباس اول شي ابيه لما احدد ع التشك بوكس يحفظ الحساب ولما يزيل الصح من التشيك بوكس يحدف الحساب تاني شي الرمز يطلع ** ايه يطلع متل كدا *****
  11. طبعا الحين اكيد اقدر امسح التسجيلات يعني شخص سجل ابي امسح حسابه ومايرجع لما يدخل كيف ؟ وين الاقيه
  12. مشكور بس وش الي غيرته ؟
  13. sx_, sy_ = guiGetScreenSize ( ) sx, sy = sx_ / 1280, sy_ / 720 staticimage1 = guiCreateStaticImage(sx*5,sy*0,sx*1275,sy*764, "log.png", false) staticimage2 = guiCreateStaticImage(sx*476,sy*268, sx*358, sy*362, "dot_white.png", false, staticimage1) edit1 = guiCreateEdit(sx*85,sy*140,sx*204,sy*28, "", false, staticimage2) edit2 = guiCreateEdit(sx*85,sy*217,sx*204,sy*28, "", false, staticimage2) label2 = guiCreateLabel(sx*10,sy*141,sx*65,sy*33, "user name", false, staticimage2) label3 = guiCreateLabel(sx*10,sy*222,sx*65,sy*33, "password", false, staticimage2) close = guiCreateButton(sx*254,sy*307,sx*85,sy*39, "Gust", false, staticimage2) btn = guiCreateButton(sx*139,sy*272,sx*85,sy*39, "register", false, staticimage2) btn2 = guiCreateButton(sx*20,sy*306,sx*85,sy*39, "login", false, staticimage2) label1 = guiCreateLabel(sx*60,sy*64,sx*259,sy*67, "", false, staticimage2) remember = guiCreateCheckBox(sx*96,sy*254,sx*19,sy*18, "", false, false, staticimage2) label4 = guiCreateLabel(sx*115,sy*253,sx*66,sy*24, "remember", false, staticimage2) staticimage3 = guiCreateStaticImage(486, 53, 347, 242, "plus.png", false, staticimage1) triggerServerEvent("onGetSave",localPlayer) showCursor ( true ) addEvent("onPutSave",true) addEventHandler("onPutSave",root, function (puser,ppass) guiSetText(user,puser) guiSetText(pass,ppass) end ) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(edit1) local pass = guiGetText(edit2) if ( source == btn2 ) then if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLoginWith",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == btn ) then if user ~= "" and pass ~= "" then triggerServerEvent("onReg",localPlayer,user,pass) else outputChatBox("* You Must Write Username Or Password",255,0,0) end end end ) ---------------------------------------------------------------------------- addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == close ) then guiSetVisible ( staticimage1, false ) guiSetVisible ( staticimage2, false ) guiSetVisible ( staticimage3, false ) showCursor ( false ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn2 ) then guiSetVisible ( staticimage1, false ) guiSetVisible ( staticimage2, false ) guiSetVisible ( staticimage3, false ) showCursor ( false ) end end ) addEventHandler ( "onClientGUIClick",root, function (name) if source == btn then guiSetText( label1,"تم تسجيل قم ب الضغط على login?"..name.."") setTimer(guiSetVisible,3000,1, label1,false) end end )
  14. ضفته بس ما يحفظ الحسابات
  15. executeSQLQuery("CREATE TABLE IF NOT EXISTS players_save( serial TEXT, user TEXT, pass TEXT)") function AddPlayer(serial,user,pass) executeSQLQuery("INSERT INTO players_save(serial,user,pass) VALUES(?,?,?)",serial,user,pass) end function isPlayerSave(serial) local sel = executeSQLQuery("SELECT serial FROM players_save WHERE serial=?",serial) if sel == 0 then return false else return true end end function getUserAndPass(serial) local user,pass = "","" if isPlayerSave(serial) then local sel = executeSQLQuery("SELECT * FROM players_save WHERE serial=?",serial) for i,player in ipairs(sel) do if i == 1 then user = player.user pass = player.pass end end return user,pass end return false end addEvent("onGetSave",true) addEventHandler("onGetSave",root, function () local serial = getPlayerSerial(source) if isPlayerSave(serial) then local user,pass = getUserAndPass(serial) triggerClientEvent(source,"onPutSave",source,user,pass) end end ) addEvent("onLoginWith",true) addEventHandler("onLoginWith",root, function (user,pass) local acc = getAccount(user,pass) local serial = getPlayerSerial(source) if acc then logIn(source,acc,pass) outputChatBox("* تم بنجاح تسجيل دخول",source,0,255,0) AddPlayer(serial,user,pass) triggerClientEvent(source,"onCl",source) else outputChatBox("* الحساب او كلمة المرور خطأ",source,255,0,0) end end ) addEvent("onLogin",true) addEventHandler("onLogin",root, function (user,pass) local acc = getAccount(user,pass) if acc then logIn(source,acc,pass) outputChatBox("* تم بنجاح تسجيل دخول",source,0,255,0) triggerClientEvent(source,"onCl",source) else outputChatBox("* الحساب او كلمة مرور خطأ",source,255,0,0) end end ) addEvent("onReg",true) addEventHandler("onReg",root, function (user,pass) local acc = getAccount(user,pass) if acc then outputChatBox("* هذا الحساب مستخدم من قبل",source,255,0,0) else addAccount(user,pass) outputChatBox("* Username = " .. user .. "",source,0,255,0) outputChatBox("* Password = " .. pass .. "",source,0,255,0) end end ) addEventHandler("onPlayerLogin",root, function () name = getPlayerName(source) triggerClientEvent(root,"mahmod",root,name) end ) اكواد اللوحة سيرفر ماشتغل كود sql شخص عمله لي وما شتغل عموما شوفه وادا عرفت تصلحه بكون ممنون
  16. انا شفت كل الشروحات على sql بس مافهمتها ما اعرف ليش
  17. انا ما اعرف sql انا داخل البرمجه من 4 او 5 اشهر بس راح اشوف اكواس سكيل وجيبهم واطرح معاهم اكواد لوحتي وانت ساعدني اول انت اعملي اكواد sql للوحة تسجيل لحفظ الحسابات اكواد جاهزه امامها شرح مبسط
  18. يعني حقيقة ماعرفت اسويها
  19. مشكور وانا الحين جالس اعمل user.xml
  20. تواني بجرب ضبط مشكور بس ممكن انك تضع كل شئ سويته امامه شرح
  21. addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(448, 223, 471, 414, "", false) guiWindowSetSizable(wnd, false) guiSetVisible(wnd,false) end ) function Open ( ) guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end bindKey("F5","down", Open) function mahmod1() setCursorAlpha(100) local x,y = guiGetScreenSize() local screenx, screeny, worldx, worldy, worldz = getCursorPosition() dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'mahmod.png', angle, 0, -120 ) end addEventHandler("onClientRender",getRootElement(),mahmod1) سويت كدا وما ضبط
×
×
  • Create New...