bomb6767 Posted February 12, 2016 Share Posted February 12, 2016 (edited) السسسلآم عليكككم ورحمةة الله وبركآآتهه ممكنن طلب ؟؟؟ ابي كودد لوحةة التسجججيل لآهنتمم أنا صممت اللوحة بس باقي البرمجه مثل زر Login , زر Guest , زر Register فقططط # وشكرآآ Edited February 12, 2016 by Guest Link to comment
#StrOnG_,) Posted February 12, 2016 Share Posted February 12, 2016 السسسلآم عليكككم ورحمةة الله وبركآآتههممكنن طلب ؟؟؟ ابي كودد لوحةة التسجججيل لآهنتمم أنا صممت اللوحة بس باقي البرمجه مثل زر Login , زر Guest , زر Register فقططط # وشكرآآ عليكم السلام 'onClientGUIClick' guiSetVisible -- تستخدمه بعد ما يسجل يخفي النافذة getAccount -- عشان يجيب الحسسآب logIn addAccount outputChatBox if ( #getAccountsBySerial ( getPlayerSerial ( player ) ) > 1 ) then -- اذا تبي ما يقدر يسجل اكثر من حساب triggerServerEvent Link to comment
bomb6767 Posted February 12, 2016 Author Share Posted February 12, 2016 ممكن تضيفني بسكايب اعطيك التصميم وتضيف عليه الكود ذا لاني ما اعرف ابرمج بس اصم Link to comment
bomb6767 Posted February 12, 2016 Author Share Posted February 12, 2016 سكايب : bomb6767 Link to comment
#StrOnG_,) Posted February 12, 2016 Share Posted February 12, 2016 ادخل لصفحة الويكي وحاول تسويه وبساعدك Link to comment
bomb6767 Posted February 12, 2016 Author Share Posted February 12, 2016 --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { button = {}, staticimage = {}, edit = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.staticimage[1] = guiCreateStaticImage(155, 64, 453, 444, ":guieditor/images/Kara.png", false) GUIEditor.button[1] = guiCreateButton(68, 313, 130, 39, "Login", false, GUIEditor.staticimage[1]) GUIEditor.button[2] = guiCreateButton(247, 313, 130, 39, "Register", false, GUIEditor.staticimage[1]) GUIEditor.button[3] = guiCreateButton(156, 362, 130, 39, "Guest", false, GUIEditor.staticimage[1]) GUIEditor.label[1] = guiCreateLabel(48, 188, 98, 15, "Account :", false, GUIEditor.staticimage[1]) GUIEditor.label[2] = guiCreateLabel(48, 223, 98, 15, "Password :", false, GUIEditor.staticimage[1]) GUIEditor.edit[1] = guiCreateEdit(166, 180, 167, 29, "", false, GUIEditor.staticimage[1]) GUIEditor.edit[2] = guiCreateEdit(166, 219, 167, 29, "", false, GUIEditor.staticimage[1]) guiEditSetMasked(GUIEditor.edit[2], true) GUIEditor.label[3] = guiCreateLabel(58, 68, 325, 41, "Welcome To Server", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") end ) Link to comment
' A F . Posted February 12, 2016 Share Posted February 12, 2016 تفضل Client Side : GUIEditor = { button = {}, staticimage = {}, edit = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.staticimage[1] = guiCreateStaticImage(155, 64, 453, 444, ":guieditor/images/Kara.png", false) GUIEditor.button[1] = guiCreateButton(68, 313, 130, 39, "Login", false, GUIEditor.staticimage[1]) GUIEditor.button[2] = guiCreateButton(247, 313, 130, 39, "Register", false, GUIEditor.staticimage[1]) GUIEditor.button[3] = guiCreateButton(156, 362, 130, 39, "Guest", false, GUIEditor.staticimage[1]) GUIEditor.label[1] = guiCreateLabel(48, 188, 98, 15, "Account :", false, GUIEditor.staticimage[1]) GUIEditor.label[2] = guiCreateLabel(48, 223, 98, 15, "Password :", false, GUIEditor.staticimage[1]) GUIEditor.edit[1] = guiCreateEdit(166, 180, 167, 29, "", false, GUIEditor.staticimage[1]) GUIEditor.edit[2] = guiCreateEdit(166, 219, 167, 29, "", false, GUIEditor.staticimage[1]) guiEditSetMasked(GUIEditor.edit[2], true) GUIEditor.label[3] = guiCreateLabel(58, 68, 325, 41, "Welcome To Server", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") showCursor ( true ) end ) addEventHandler('onClientGUIClick',resourceRoot, function ( ) if ( source == GUIEditor.button [ 1 ] ) then if ( guiGetText ( GUIEditor.edit [ 1 ] ) == '' and guiGetText ( GUIEditor.edit [ 2 ] ) == '' ) then return outputChatBox('* الرجاء كتابة المعلومات',0,120,100,true) end triggerServerEvent('onLogin',localPlayer, guiGetText( GUIEditor.edit [ 1 ] ) , guiGetText ( GUIEditor.edit [ 2 ] ) ) elseif ( source == GUIEditor.button [ 2 ] ) then if ( guiGetText ( GUIEditor.edit [ 1 ] ) == '' and guiGetText ( GUIEditor.edit [ 2 ] ) == '' ) then return outputChatBox('* الرجاء كتابة المعلومات',0,120,100,true) end triggerServerEvent('onRegister',localPlayer, guiGetText( GUIEditor.edit [ 1 ] ) , guiGetText ( GUIEditor.edit [ 2 ] ) ) elseif ( source == GUIEditor.button [ 3 ] ) then guiSetVisible ( GUIEditor.staticimage [ 1 ] , false ) showCursor ( false ) end end) addEvent('loginPlayer',true) addEventHandler('loginPlayer',root, function ( ) guiSetVisible ( GUIEditor.staticimage [ 1 ] , false ) showCursor ( false ) end) Server Side : addEvent('onLogin',true) addEventHandler('onLogin',root, function ( username , password ) local acc = getAccount ( username , password ) if ( acc ~= false ) then logIn ( client , acc , password ) outputChatBox('* تـم تسجيل الدخول بناج',client,255,255,0,true) triggerClientEvent ( client , 'loginPlayer' , client ) else outputChatBox('* خطأ في اسم المستخدم او كلمة المرور',client,255,0,0,true) end end ) addEvent('onRegister',true) addEventHandler('onRegister',root,function ( username , password ) local setAccount = addAccount ( username , password ) if ( setAccount ) then outputChatBox('* تـم التسجيل , الرجاء تسجيل الدخول',client,255,255,0,true) else outputChatBox('* خطأ : يوجد حساب بـ الفعل',client,255,0,0,true) end end ) 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