Mbtdaa Posted August 13, 2012 Share Posted August 13, 2012 (edited) السلام عليكم لو سمحتم بغيت كودييين بسييييييطين انا سويت لوحة تسجيل ودخول واشتغلت تمام بس ابيها لما الواحد يخش السيرفر تييجي في وجهه هع ولما يسجل ولا يدخل لحسابه تروح bindKey("F2", "down", function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end) , Edited August 13, 2012 by Guest Link to comment
UAEpro Posted August 13, 2012 Share Posted August 13, 2012 https://wiki.multitheftauto.com/wiki/GuiSetVisible Link to comment
Mbtdaa Posted August 13, 2012 Author Share Posted August 13, 2012 يعطيكم العافيه ياشابب على الرد وتم اضافت الكود + ياليت يابرو تشرحلي اذا ماعليك امر , Link to comment
3NAD Posted August 13, 2012 Share Posted August 13, 2012 تححتاج إلى هذي الأكواد guiSetVisible showCursor guiSetInputEnabled Link to comment
Mbtdaa Posted August 13, 2012 Author Share Posted August 13, 2012 وش دخل المود الله يهديك؟! مشكور عناد لاكن ياليت لو تحطو الكود لي كل ماجرب مايتشغل معي >< Link to comment
3NAD Posted August 13, 2012 Share Posted August 13, 2012 وكل مرة تبي الكود جاهز ؟؟ سو اللي تقدر و نصحح لكـ بإذن الله Link to comment
Mbtdaa Posted August 13, 2012 Author Share Posted August 13, 2012 يالغلا انا ماقلت عطوني اياه جاهزي الى لاني جربت وماشتغل Link to comment
hassan.k.s.a Posted August 13, 2012 Share Posted August 13, 2012 (edited) جرب هذا تحت النافذه مباشره guiSetVisible (اسم النافذه, true) showCursor (false ) guiSetInputEnabled(true) وأذا ضغط زر تسجيل دخول تختفي جرب هذا addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == اسم الزر ) then guiSetVisible (اسم النافذه, false) showCursor (false ) guiSetInputEnabled(false) end end) واذا مانفع اطرح اكوادك Edited August 13, 2012 by Guest Link to comment
Mbtdaa Posted August 14, 2012 Author Share Posted August 14, 2012 الكود الي لما يسجل تختف النافذه ظبط اما الي اول ماتخش السيرفر ماظبط .! وبنسبه للكود هاذا هو GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") guiSetVisible (GUIEditor_Window[1], true) showCursor (false ) guiSetInputEnabled(true function mrsl6an() guiSetVisible (GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) playSound("mrsl6an.wav", false) end bindKey ("f6", "down", mrsl6an) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[1] ) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false ) guiSetInputEnabled(false) end end) guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000") outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true) outputChatBox ("#007fff[Open]: #007fffPress #007fff'F6' #007fffto open #007fffThe #007ffflogin/registerPanel.!", 255, 0, 0, true) addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == GUIEditor_Button[1] ) then triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[2]), guiGetText(GUIEditor_Edit[1])) end end) Link to comment
hassan.k.s.a Posted August 14, 2012 Share Posted August 14, 2012 الكود الي لما يسجل تختف النافذه ظبط اما الي اول ماتخش السيرفر ماظبط .!وبنسبه للكود هاذا هو GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") guiSetVisible (GUIEditor_Window[1], true) showCursor (false ) guiSetInputEnabled(true function mrsl6an() guiSetVisible (GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) playSound("mrsl6an.wav", false) end bindKey ("f6", "down", mrsl6an) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[1] ) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false ) guiSetInputEnabled(false) end end) guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000") outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true) outputChatBox ("#007fff[Open]: #007fffPress #007fff'F6' #007fffto open #007fffThe #007ffflogin/registerPanel.!", 255, 0, 0, true) addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == GUIEditor_Button[1] ) then triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[2]), guiGetText(GUIEditor_Edit[1])) end end) جرب هذا GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) guiSetVisible(GUIEditor_Window[1],true) showCursor (true) GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") bindKey ( "F6" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) playSound("mrsl6an.wav", false) end end) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[1] ) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false ) guiSetInputEnabled(false) end end) guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000") outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true) outputChatBox ("#007fff[Open]: #007fffPress #007fff'F6' #007fffto open #007fffThe #007ffflogin/registerPanel.!", 255, 0, 0, true) addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == GUIEditor_Button[1] ) then triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[2]), guiGetText(GUIEditor_Edit[1])) end end) Link to comment
Mbtdaa Posted August 14, 2012 Author Share Posted August 14, 2012 ماظبط صار يفتح باف 6 بس Link to comment
3NAD Posted August 14, 2012 Share Posted August 14, 2012 ججرب ذا GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000") addEventHandler("onClientResourceStart",resourceRoot, function() guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) guiSetInputEnabled( true ) outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true) end ) addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor_Button[1] ) then username = guiGetText ( GUIEditor_Edit[1] ) password = guiGetText ( GUIEditor_Edit[2] ) triggerServerEvent("onLoginAndRegister",localPlayer,username,password) guiSetVisible ( GUIEditor_Window[1], false) showCursor ( false ) guiSetInputEnabled ( false ) end end ) Link to comment
hassan.k.s.a Posted August 14, 2012 Share Posted August 14, 2012 ماظبط صار يفتح باف 6 بس انا جربته شغال اول مايدخل الاعب ! Link to comment
Mbtdaa Posted August 14, 2012 Author Share Posted August 14, 2012 يالغلا انت مافهمتني هو يفتح بس بس كمان يسير يفتح باف 6 انا بس ابيه لما يخش بدون زر واسف يمكن ماوضحت من البدايه Link to comment
hassan.k.s.a Posted August 14, 2012 Share Posted August 14, 2012 خخخخ قول كيذا من قبل تفضل GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) guiSetVisible(GUIEditor_Window[1],true) showCursor (true) GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") -- addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[1] ) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false ) guiSetInputEnabled(false) end end) guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000") outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true) outputChatBox ("#007fff[Open]: #007fffPress #007fff'F6' #007fffto open #007fffThe #007ffflogin/registerPanel.!", 255, 0, 0, true) addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == GUIEditor_Button[1] ) then triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[2]), guiGetText(GUIEditor_Edit[1])) end end) Link to comment
3NAD Posted August 14, 2012 Share Posted August 14, 2012 يالغلا انت مافهمتني هو يفتح بس بس كمان يسير يفتح باف 6 انا بس ابيه لما يخش بدون زر واسف يمكن ماوضحت من البدايه ججرب ذا GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000") addEventHandler("onClientResourceStart",resourceRoot, function() guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) guiSetInputEnabled( true ) outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true) end ) addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor_Button[1] ) then username = guiGetText ( GUIEditor_Edit[1] ) password = guiGetText ( GUIEditor_Edit[2] ) triggerServerEvent("onLoginAndRegister",localPlayer,username,password) guiSetVisible ( GUIEditor_Window[1], false) showCursor ( false ) guiSetInputEnabled ( false ) end end ) WTF Link to comment
Mbtdaa Posted August 14, 2012 Author Share Posted August 14, 2012 الله يعطيك العافيه ياحسن ظبط معي الله يوفقك وجزاكم الله خير جميعن 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