taha201100 Posted April 8, 2016 Share Posted April 8, 2016 السلام عليكم كيفكم اليوم احب اقدم لكم هريستي المتواضعه :] كلنت GUIEditor = { checkbox = {}, button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 218) / 2, (screenH - 240) / 2, 218, 240, "لوحة التسجيل", false) guiWindowSetSizable(GUIEditor.window[1], false) username = guiCreateEdit(9, 57, 105, 23, "", false, GUIEditor.window[1]) password = guiCreateEdit(9, 103, 105, 23, "", false, GUIEditor.window[1]) guiEditSetMasked(password, true) GUIEditor.label[1] = guiCreateLabel(11, 42, 103, 15, "أسم الحساب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(11, 88, 103, 15, "كلمة المرور", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") login = guiCreateButton(19, 136, 95, 22, "دخول", false, GUIEditor.window[1]) register = guiCreateButton(19, 168, 95, 22, "تسجيل", false, GUIEditor.window[1]) closee = guiCreateButton(19, 200, 95, 22, "أغلاق", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(118, 107, 17, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(138, 104, 70, 18, "أظهار الكلمة", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") end ) addEventHandler("onClientGUIClick", root, function() if (source == login ) then username = guiGetText (username) password = guiGetText (password) if username ~= "" and password ~= "" then triggerServerEvent ("11",localPlayer,username,password) end elseif source == register then username = guiGetText (username) password = guiGetText (password) if username ~= "" and password ~= "" then triggerServerEvent ("22",localPlayer,username,password) end end end ) addEventHandler("onClientGUIClick", root, function() if (source == GUIEditor.checkbox[1])then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1]== true))then guiEditSetMasked(GUIEditor.edit[2], false) end end end) addEventHandler("onClientGUIClick", root, function() if (source == GUIEditor.checkbox[1])then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1],false))then guiEditSetMasked(GUIEditor.edit[2], true) end end end) سيرفر addEvent ("11",true) addEventHandler ("11",root, function (username,password) gg = getAccount (username,password) if gg then logIn (source,gg,password) outputChatBox("#FF8000[server]#FAFAFAتم تسجيل الدخول بنجاح", source, 142, 96 ,62, true ) end end ) addEvent ("22",true) addEventHandler ("22",root, function (username,password) if not getAccount (username,password) then addAccount (username,password) outputChatBox("#FF8000[server]#FAFAFA تم تسجيل حساب جديد", source, 142, 96 ,62, true ) else outputChatBox("#FF8000[server]#FAFAFA الحساب موجود بالفعل", source, 142, 96 ,62, true ) end end ) الكود فيه مليون غلط وش اسوي ؟؟ يا ريت لا تعطوني جاهز بس وش اعدل وكذا Link to comment
taha201100 Posted April 8, 2016 Author Share Posted April 8, 2016 السلام عليكم كيفكم اليوم احب اقدم لكم هريستي المتواضعه :] كلنت GUIEditor = { checkbox = {}, button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 218) / 2, (screenH - 240) / 2, 218, 240, "لوحة التسجيل", false) guiWindowSetSizable(GUIEditor.window[1], false) username = guiCreateEdit(9, 57, 105, 23, "", false, GUIEditor.window[1]) password = guiCreateEdit(9, 103, 105, 23, "", false, GUIEditor.window[1]) guiEditSetMasked(password, true) GUIEditor.label[1] = guiCreateLabel(11, 42, 103, 15, "أسم الحساب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(11, 88, 103, 15, "كلمة المرور", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") login = guiCreateButton(19, 136, 95, 22, "دخول", false, GUIEditor.window[1]) register = guiCreateButton(19, 168, 95, 22, "تسجيل", false, GUIEditor.window[1]) closee = guiCreateButton(19, 200, 95, 22, "أغلاق", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(118, 107, 17, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(138, 104, 70, 18, "أظهار الكلمة", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") end ) addEventHandler("onClientGUIClick", root, function() if (source == login ) then username = guiGetText (username) password = guiGetText (password) if username ~= "" and password ~= "" then triggerServerEvent ("11",localPlayer,username,password) end elseif source == register then username = guiGetText (username) password = guiGetText (password) if username ~= "" and password ~= "" then triggerServerEvent ("22",localPlayer,username,password) end end end ) addEventHandler("onClientGUIClick", root, function() if (source == GUIEditor.checkbox[1])then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1]== true))then guiEditSetMasked(GUIEditor.edit[2], false) end end end) addEventHandler("onClientGUIClick", root, function() if (source == GUIEditor.checkbox[1])then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1],false))then guiEditSetMasked(GUIEditor.edit[2], true) end end end) سيرفر addEvent ("11",true) addEventHandler ("11",root, function (username,password) gg = getAccount (username,password) if gg then logIn (source,gg,password) outputChatBox("#FF8000[server]#FAFAFAتم تسجيل الدخول بنجاح", source, 142, 96 ,62, true ) end end ) addEvent ("22",true) addEventHandler ("22",root, function (username,password) if not getAccount (username,password) then addAccount (username,password) outputChatBox("#FF8000[server]#FAFAFA تم تسجيل حساب جديد", source, 142, 96 ,62, true ) else outputChatBox("#FF8000[server]#FAFAFA الحساب موجود بالفعل", source, 142, 96 ,62, true ) end end ) الكود فيه مليون غلط وش اسوي ؟؟ يا ريت لا تعطوني جاهز بس وش اعدل وكذا Link to comment
taha201100 Posted April 8, 2016 Author Share Posted April 8, 2016 والله يخوي اخطاء كثيره يا ريت تجرب الاكواد وتشوف بنفسك مثلن لما يجي يسجل بأمكانه يسجل اكثر من 5 مرات على نفس اسم الاكونت +ما يقدر يسجل دخول وكذا لهيك جرب الاكواد افضل لك اخي :] Link to comment
taha201100 Posted April 8, 2016 Author Share Posted April 8, 2016 والله يخوي اخطاء كثيره يا ريت تجرب الاكواد وتشوف بنفسك مثلن لما يجي يسجل بأمكانه يسجل اكثر من 5 مرات على نفس اسم الاكونت +ما يقدر يسجل دخول وكذا لهيك جرب الاكواد افضل لك اخي :] Link to comment
Adham Posted April 8, 2016 Share Posted April 8, 2016 (edited) جرب اعذرني لو فيه خطاء local sx, sy = guiGetScreenSize() function centerTheGUI( guiElement ) local width, height = guiGetSize( guiElement, false ) local x, y = sx / 2 - width / 2, sy / 2 - height / 2 guiSetPosition( guiElement, x, y, false ) end GUIEditor = { checkbox = {}, button = {}, window = {}, label = {}, edit = {} } GUIEditor.window[1] = guiCreateWindow((screenW - 218) / 2, (screenH - 240) / 2, 218, 240, "لوحة التسجيل", false) guiWindowSetSizable(GUIEditor.window[1], false) username = guiCreateEdit(9, 57, 105, 23, "", false, GUIEditor.window[1]) password = guiCreateEdit(9, 103, 105, 23, "", false, GUIEditor.window[1]) guiEditSetMasked(password, true) GUIEditor.label[1] = guiCreateLabel(11, 42, 103, 15, "أسم الحساب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(11, 88, 103, 15, "كلمة المرور", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") login = guiCreateButton(19, 136, 95, 22, "دخول", false, GUIEditor.window[1]) register = guiCreateButton(19, 168, 95, 22, "تسجيل", false, GUIEditor.window[1]) closee = guiCreateButton(19, 200, 95, 22, "أغلاق", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(118, 107, 17, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(138, 104, 70, 18, "أظهار الكلمة", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") addEventHandler("onClientGUIClick",root, function () if source == login then local uss,passs = guiGetText(username),guiGetText(password) triggerServerEvent("onLogin",localPlayer,uss,passs) elseif source == register then local uss,passs = guiGetText(username),guiGetText(password) triggerServerEvent("onReg",localPlayer,uss,passs) end end ) addEvent("Hidewindow",true) addEventHandler("Hidewindow",root, function () guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) setCameraTarget (localPlayer) end ) addEvent("show",true) addEventHandler("show",root, function () guiSetVisible(GUIEditor.window[1],true) showCursor(true) showChat(true) end ) addEvent("onLogin", true) addEventHandler("onLogin",root, function (user, pass) local account = getAccount ( user, pass ) if ( account ~= true ) then local log = logIn (source,account,pass) if log then outputChatBox ( "You Logged in Sucessfuly!", source, 255, 255, 0 , true ) triggerClientEvent (source, "Hidewindow", source) else outputChatBox ( "Login Error!", source, 255, 0, 0 ) end else outputChatBox ( "Wrong username or password!", source, 255, 0, 0 ) end end ) -- addEvent("onReg", true) addEventHandler("onReg",root, function (user, pass) if not getAccount (user,pass) then local acc = addAccount (user,pass) if acc then local account = getAccount ( user, pass ) outputChatBox ("You've registered successfully!",source,0,255,0) else outputChatBox ("Error creating account !",source,255,0,0) end else outputChatBox ("This account is already exists !",source,255,0,0) end end ) addEventHandler ("onPlayerJoin",root, function () l = source repeat until setTimer(function() triggerClientEvent (l,"show",l) end,2000,1) end ) Edited April 8, 2016 by Guest Link to comment
Adham Posted April 8, 2016 Share Posted April 8, 2016 (edited) جرب اعذرني لو فيه خطاء local sx, sy = guiGetScreenSize() function centerTheGUI( guiElement ) local width, height = guiGetSize( guiElement, false ) local x, y = sx / 2 - width / 2, sy / 2 - height / 2 guiSetPosition( guiElement, x, y, false ) end GUIEditor = { checkbox = {}, button = {}, window = {}, label = {}, edit = {} } GUIEditor.window[1] = guiCreateWindow((screenW - 218) / 2, (screenH - 240) / 2, 218, 240, "لوحة التسجيل", false) guiWindowSetSizable(GUIEditor.window[1], false) username = guiCreateEdit(9, 57, 105, 23, "", false, GUIEditor.window[1]) password = guiCreateEdit(9, 103, 105, 23, "", false, GUIEditor.window[1]) guiEditSetMasked(password, true) GUIEditor.label[1] = guiCreateLabel(11, 42, 103, 15, "أسم الحساب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(11, 88, 103, 15, "كلمة المرور", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") login = guiCreateButton(19, 136, 95, 22, "دخول", false, GUIEditor.window[1]) register = guiCreateButton(19, 168, 95, 22, "تسجيل", false, GUIEditor.window[1]) closee = guiCreateButton(19, 200, 95, 22, "أغلاق", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(118, 107, 17, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(138, 104, 70, 18, "أظهار الكلمة", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") addEventHandler("onClientGUIClick",root, function () if source == login then local uss,passs = guiGetText(username),guiGetText(password) triggerServerEvent("onLogin",localPlayer,uss,passs) elseif source == register then local uss,passs = guiGetText(username),guiGetText(password) triggerServerEvent("onReg",localPlayer,uss,passs) end end ) addEvent("Hidewindow",true) addEventHandler("Hidewindow",root, function () guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) setCameraTarget (localPlayer) end ) addEvent("show",true) addEventHandler("show",root, function () guiSetVisible(GUIEditor.window[1],true) showCursor(true) showChat(true) end ) addEvent("onLogin", true) addEventHandler("onLogin",root, function (user, pass) local account = getAccount ( user, pass ) if ( account ~= true ) then local log = logIn (source,account,pass) if log then outputChatBox ( "You Logged in Sucessfuly!", source, 255, 255, 0 , true ) triggerClientEvent (source, "Hidewindow", source) else outputChatBox ( "Login Error!", source, 255, 0, 0 ) end else outputChatBox ( "Wrong username or password!", source, 255, 0, 0 ) end end ) -- addEvent("onReg", true) addEventHandler("onReg",root, function (user, pass) if not getAccount (user,pass) then local acc = addAccount (user,pass) if acc then local account = getAccount ( user, pass ) outputChatBox ("You've registered successfully!",source,0,255,0) else outputChatBox ("Error creating account !",source,255,0,0) end else outputChatBox ("This account is already exists !",source,255,0,0) end end ) addEventHandler ("onPlayerJoin",root, function () l = source repeat until setTimer(function() triggerClientEvent (l,"show",l) end,2000,1) end ) Edited April 8, 2016 by Guest Link to comment
#Soking Posted April 8, 2016 Share Posted April 8, 2016 بعد لما تسجل دخول بيختفي الوحه ولا لا Link to comment
#Soking Posted April 8, 2016 Share Posted April 8, 2016 بعد لما تسجل دخول بيختفي الوحه ولا لا Link to comment
taha201100 Posted April 8, 2016 Author Share Posted April 8, 2016 (edited) مو شغال +اللوحة ما تختفي الحين ذي سهله بس المشكله ما يسجل ابدا Edited April 8, 2016 by Guest Link to comment
taha201100 Posted April 8, 2016 Author Share Posted April 8, 2016 (edited) مو شغال +اللوحة ما تختفي الحين ذي سهله بس المشكله ما يسجل ابدا Edited April 8, 2016 by Guest Link to comment
Adham Posted April 8, 2016 Share Posted April 8, 2016 شغل الدي بق وقول وش الخطاء جالك. Link to comment
Adham Posted April 8, 2016 Share Posted April 8, 2016 شغل الدي بق وقول وش الخطاء جالك. Link to comment
taha201100 Posted April 8, 2016 Author Share Posted April 8, 2016 access denied @ addAccount Link to comment
taha201100 Posted April 8, 2016 Author Share Posted April 8, 2016 access denied @ addAccount Link to comment
Adham Posted April 8, 2016 Share Posted April 8, 2016 addEvent("onReg", true) addEventHandler("onReg",root, function (user, pass) if not getAccount (user,pass) then if acc then local account = getAccount ( user, pass ) outputChatBox ("You've registered successfully!",source,0,255,0) else outputChatBox ("Error creating account !",source,255,0,0) end else outputChatBox ("This account is already exists !",source,255,0,0) end end ) Link to comment
Adham Posted April 8, 2016 Share Posted April 8, 2016 addEvent("onReg", true) addEventHandler("onReg",root, function (user, pass) if not getAccount (user,pass) then if acc then local account = getAccount ( user, pass ) outputChatBox ("You've registered successfully!",source,0,255,0) else outputChatBox ("Error creating account !",source,255,0,0) end else outputChatBox ("This account is already exists !",source,255,0,0) end end ) Link to comment
Adham Posted April 8, 2016 Share Posted April 8, 2016 GUIEditor = { checkbox = {}, window = {}, label = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 218) / 2, (screenH - 240) / 2, 218, 240, "لوحة التسجيل", false) guiWindowSetSizable(GUIEditor.window[1], false) username = guiCreateEdit(9, 57, 105, 23, "", false, GUIEditor.window[1]) password = guiCreateEdit(9, 103, 105, 23, "", false, GUIEditor.window[1]) guiEditSetMasked(password, true) GUIEditor.label[1] = guiCreateLabel(11, 42, 103, 15, "أسم الحساب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(11, 88, 103, 15, "كلمة المرور", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") login = guiCreateButton(19, 136, 95, 22, "دخول", false, GUIEditor.window[1]) register = guiCreateButton(19, 168, 95, 22, "تسجيل", false, GUIEditor.window[1]) closee = guiCreateButton(19, 200, 95, 22, "أغلاق", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(118, 107, 17, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(138, 104, 70, 18, "أظهار الكلمة", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") addEventHandler("onClientGUIClick",root, function () if source == login then local uss,passs = guiGetText(username),guiGetText(password) triggerServerEvent("onLogin",localPlayer,uss,passs) elseif source == register then local uss,passs = guiGetText(username),guiGetText(password) triggerServerEvent("onReg",localPlayer,uss,passs) end end ) addEvent("Hidewindow",true) addEventHandler("Hidewindow",root, function () guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) setCameraTarget (localPlayer) end ) addEvent("show",true) addEventHandler("show",root, function () guiSetVisible(GUIEditor.window[1],true) showCursor(true) showChat(true) end ) Link to comment
Adham Posted April 8, 2016 Share Posted April 8, 2016 GUIEditor = { checkbox = {}, window = {}, label = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 218) / 2, (screenH - 240) / 2, 218, 240, "لوحة التسجيل", false) guiWindowSetSizable(GUIEditor.window[1], false) username = guiCreateEdit(9, 57, 105, 23, "", false, GUIEditor.window[1]) password = guiCreateEdit(9, 103, 105, 23, "", false, GUIEditor.window[1]) guiEditSetMasked(password, true) GUIEditor.label[1] = guiCreateLabel(11, 42, 103, 15, "أسم الحساب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(11, 88, 103, 15, "كلمة المرور", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") login = guiCreateButton(19, 136, 95, 22, "دخول", false, GUIEditor.window[1]) register = guiCreateButton(19, 168, 95, 22, "تسجيل", false, GUIEditor.window[1]) closee = guiCreateButton(19, 200, 95, 22, "أغلاق", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(118, 107, 17, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(138, 104, 70, 18, "أظهار الكلمة", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") addEventHandler("onClientGUIClick",root, function () if source == login then local uss,passs = guiGetText(username),guiGetText(password) triggerServerEvent("onLogin",localPlayer,uss,passs) elseif source == register then local uss,passs = guiGetText(username),guiGetText(password) triggerServerEvent("onReg",localPlayer,uss,passs) end end ) addEvent("Hidewindow",true) addEventHandler("Hidewindow",root, function () guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) setCameraTarget (localPlayer) end ) addEvent("show",true) addEventHandler("show",root, function () guiSetVisible(GUIEditor.window[1],true) showCursor(true) showChat(true) end ) Link to comment
taha201100 Posted April 8, 2016 Author Share Posted April 8, 2016 الموضوع ماله فايدة انسى خلاص بحاول اشوف مودات واتعلم منها افضل لانه ما في نتيجة واضحة للحين Link to comment
taha201100 Posted April 8, 2016 Author Share Posted April 8, 2016 الموضوع ماله فايدة انسى خلاص بحاول اشوف مودات واتعلم منها افضل لانه ما في نتيجة واضحة للحين Link to comment
Adham Posted April 8, 2016 Share Posted April 8, 2016 الوحة اشتغلت معي تمام وفتحت وسجلت وعملت login وكل شي صوره. http://www.m5zn.com/d/?16267336 http://www.m5zn.com/d/?16267332 كلينت GUIEditor = { checkbox = {}, window = {}, label = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 218) / 2, (screenH - 240) / 2, 218, 240, "لوحة التسجيل", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) username = guiCreateEdit(9, 57, 105, 23, "", false, GUIEditor.window[1]) password = guiCreateEdit(9, 103, 105, 23, "", false, GUIEditor.window[1]) guiEditSetMasked(password, true) GUIEditor.label[1] = guiCreateLabel(11, 42, 103, 15, "أسم الحساب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(11, 88, 103, 15, "كلمة المرور", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") login = guiCreateButton(19, 136, 95, 22, "دخول", false, GUIEditor.window[1]) register = guiCreateButton(19, 168, 95, 22, "تسجيل", false, GUIEditor.window[1]) closee = guiCreateButton(19, 200, 95, 22, "أغلاق", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(118, 107, 17, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(138, 104, 70, 18, "أظهار الكلمة", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") addEventHandler("onClientGUIClick",root, function () if source == login then local uss,passs = guiGetText(username),guiGetText(password) triggerServerEvent("onLogin",localPlayer,uss,passs) elseif source == register then local uss,passs = guiGetText(username),guiGetText(password) triggerServerEvent("onReg",localPlayer,uss,passs) end end ) addEvent("Hidewindow",true) addEventHandler("Hidewindow",root, function () guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) setCameraTarget (localPlayer) end ) addEvent("show",true) addEventHandler("show",root, function () guiSetVisible(GUIEditor.window[1],true) showCursor(true) showChat(true) end ) سرفر addEvent("onLogin", true) addEventHandler("onLogin",root, function (user, pass) local account = getAccount ( user, pass ) if ( account ~= true ) then local log = logIn (source,account,pass) if log then outputChatBox ( "You Logged in Sucessfuly!", source, 255, 255, 0 , true ) triggerClientEvent (source, "Hidewindow", source) else outputChatBox ( "Login Error!", source, 255, 0, 0 ) end else outputChatBox ( "Wrong username or password!", source, 255, 0, 0 ) end end ) -- addEvent("onReg", true) addEventHandler("onReg",root, function (user, pass) if not getAccount (user,pass) then local acc = addAccount (user,pass) if acc then local account = getAccount ( user, pass ) outputChatBox ("You've registered successfully!",source,0,255,0) else outputChatBox ("Error creating account !",source,255,0,0) end else outputChatBox ("This account is already exists !",source,255,0,0) end end ) addEventHandler ("onPlayerJoin",root, function () l = source repeat until setTimer(function() triggerClientEvent (l,"show",l) end,2000,1) 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