Jump to content

Adham

Members
  • Posts

    2,259
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Adham

  1. Adham

    #تعديل

    addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[1] then isClear = guiGetText( GUIEditor.edit[1] ) if isClear == "clr" then triggerServerEvent("Send_",localPlayer) end end end ) ;
  2. Adham

    #تعديل

    debugscript: Your debug mode is already that
  3. Adham

    #تعديل

    debugscript: Your debug mode is already that
  4. الوحة اشتغلت معي تمام وفتحت وسجلت وعملت 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 )
  5. الوحة اشتغلت معي تمام وفتحت وسجلت وعملت 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 )
  6. 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 )
  7. 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 )
  8. 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 )
  9. 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 )
  10. شغل الدي بق وقول وش الخطاء جالك.
  11. شغل الدي بق وقول وش الخطاء جالك.
  12. Adham

    #تعديل

    GUIEditor.edit[1] = guiCreateEdit(14, 341, 386, 33, "", false, GUIEditor.tab[1]) GUIEditor.button[1] = guiCreateButton(406, 341, 144, 35, "Send", false, GUIEditor.tab[1])
  13. Adham

    #تعديل

    GUIEditor.edit[1] = guiCreateEdit(14, 341, 386, 33, "", false, GUIEditor.tab[1]) GUIEditor.button[1] = guiCreateButton(406, 341, 144, 35, "Send", false, GUIEditor.tab[1])
  14. Adham

    #تعديل

    ممكن تكون المشكله اني عامل الزر و الايديت في tab?
  15. Adham

    #تعديل

    ممكن تكون المشكله اني عامل الزر و الايديت في tab?
  16. جرب اعذرني لو فيه خطاء 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 )
  17. جرب اعذرني لو فيه خطاء 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 )
  18. Adham

    #تعديل

    بيقبي المشكله من هون aClear = "clr"
  19. Adham

    #تعديل

    بيقبي المشكله من هون aClear = "clr"
×
×
  • Create New...