kolme2 Posted October 4, 2012 Posted October 4, 2012 السلام عليكم ممكن كود التسجيل والدخول لـ الشوب هذا شي الوحيد اللي باقي لي
MR.S3D Posted October 4, 2012 Posted October 4, 2012 السلام عليكمممكن كود التسجيل والدخول لـ الشوب هذا شي الوحيد اللي باقي لي client.lua onlogin اسم زر الددخول onre اسم زر التسجيل تأكد من guiGetText(user) و guiGetText(pass) --هذا الأيدت حق الأسم والباس function onGuiClick (button, state, absoluteX, absoluteY) if (source == onlogin) then triggerServerEvent ( "onlogin", getRootElement(), getLocalPlayer(), guiGetText(user), guiGetText(pass) ) elseif (source == onre) then triggerServerEvent ( "onreg", getRootElement(), getLocalPlayer(), guiGetText(user), guiGetText(pass) ) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) server.lua addEvent("onlogin", true) addEventHandler("onlogin",getRootElement(), function (player, user, pass) local account = getAccount ( user, pass ) if ( account ~= true ) then if (logIn ( player, account, pass ) == true) then outputChatBox ( "You Logged in Sucessfuly With User : #00FF00[ " .. user .. " ]!", player, 255, 255, 0 , true ) else outputChatBox ( "Login error!", player, 255, 255, 0 ) end else outputChatBox ( "Wrong username or password!", player, 255, 255, 0 ) end end ) addEvent("onreg", true) addEventHandler("onreg",getRootElement(), function ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then outputChatBox ( "You Registerd and Logged in Sucessfuly!", player, 255, 255, 0 ) else outputChatBox ( "You Are Already Logged in !", player, 255, 255, 0 ) end else account = addAccount ( user, pass ) if (logIn ( player, account, pass ) == true) then outputChatBox ( "You Registerd and Logged in Sucessfuly - Please Remember Your User/Password!", player, 255, 255, 0 ) outputChatBox ( "Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", player, 255, 255, 0 , true ) else outputChatBox ( "Register/Login error!", player, 255, 255, 0 ) end end end )
MR.S3D Posted October 4, 2012 Posted October 4, 2012 طيب وين اسم التاب ؟ التاب انت تكون مسويه وجاهز وكل شي مافيه اسم التاب بس اسم زر التسجيل واسم زر الدخول و edit الأيديت اللي تكتب فيه الأسم والباس
MR.S3D Posted October 4, 2012 Posted October 4, 2012 اطرح هنا كودك الكلنت للتسجيل والدخول وانا اعدله لك
kolme2 Posted October 4, 2012 Author Posted October 4, 2012 الكود اللي انت حاطه طيب ممكن تحطه لي يظهر على tab6
MR.S3D Posted October 4, 2012 Posted October 4, 2012 الكود اللي انت حاطهطيب ممكن تحطه لي يظهر على tab6 طيب يا اخوي نزل كودك tab6 هنا وانا شوفه
kolme2 Posted October 4, 2012 Author Posted October 4, 2012 انا باخذ كودك بس ابي اعرف مكان وظهوره على ويندز ولا تاب
POWR Posted October 4, 2012 Posted October 4, 2012 الكود اللي انت حاطهطيب ممكن تحطه لي يظهر على tab6 طيب يا اخوي نزل كودك tab6 هنا وانا شوفه باين ان الاخ ما يبي يتنتشر اللووحه حقه
kolme2 Posted October 4, 2012 Author Posted October 4, 2012 طيب خله يقولي مابي انشر لوحتي مو مايرد علي
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