baba Posted March 17, 2015 Share Posted March 17, 2015 سلام عليكم شباب انا عندي لوحه تفتح بي f2 صح اذا كبست ف2 تفتح الوحه على السريع بنص الشاشه؟ انا ابي الوحه تطلع لي من اليمين توضيح يعني الوحه حقت تسير تتحرك من اليسار لحد ما تسير بنص الشاشه بوضح اكثر اذا شخلت الوحه الوحه تطلع لي من اليسار الشاشه شويه شويه لحد ما تسير بنص الشاشه شي كذا ارجو التوضيح Link to comment
#DRAGON!FIRE Posted March 17, 2015 Share Posted March 17, 2015 ابحث راح تلقى زي طلبكـ كثير . Link to comment
baba Posted March 17, 2015 Author Share Posted March 17, 2015 ابحث راح تلقى زي طلبكـ كثير . طيب انا دورت وما لقيت اذا انت تعرف موجوع كذا حط الرابط Link to comment
#DRAGON!FIRE Posted March 17, 2015 Share Posted March 17, 2015 viewtopic.php?f=160&t=50111&p=684128 Link to comment
baba Posted March 17, 2015 Author Share Posted March 17, 2015 يا سفاح لو تكتب الكود هون احسن على الاقل انت بتعرف الكود انا ما بعرفو مو لقيه ارجو المساعده Link to comment
yazan Posted March 17, 2015 Share Posted March 17, 2015 TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end Link to comment
#DRAGON!FIRE Posted March 17, 2015 Share Posted March 17, 2015 يا سفاح لو تكتب الكود هون احسن على الاقل انت بتعرف الكودانا ما بعرفو مو لقيه ارجو المساعده مين سفاح .. شارح لك كل شي Booo ثاني شي الاخ Link to comment
baba Posted March 17, 2015 Author Share Posted March 17, 2015 TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end ممكن توضحو لي يعني وين اسم الوحه الي انا ابيها تطلع من اليسار لحد توصل لي نص الشاشه وكذا Link to comment
#DRAGON!FIRE Posted March 17, 2015 Share Posted March 17, 2015 guiMoveRightToCenter ( element name ) Link to comment
The Don Posted March 17, 2015 Share Posted March 17, 2015 زي كذا يالحبيب TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end addEventHandler('onClientResourceStart',resourceRoot, function () test = guiCreateWindow(200,200,100,100, "Test", false) showCursor(true) guiMoveRightToCenter ( test ) end) Link to comment
baba Posted March 17, 2015 Author Share Posted March 17, 2015 يا حب ذي الوحه بعد ما ركبت عليها الكود بس المشكله اني لما اشغل المود الوحه ما تطلع GUIEditor = { button = {}, window = {}, staticimage = {}, memo = {}, TimeGuiSetRightC = { } } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0, 0, 674, 411, "مود شراء الشخصيات I بواسطة علاء I سكايب AlaaTailakh", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF000BFE") GUIEditor.button[1] = guiCreateButton(20, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFEE300") GUIEditor.button[2] = guiCreateButton(154, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFEE300") GUIEditor.button[3] = guiCreateButton(285, 296, 101, 46, "شراء بـ7500$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFEE300") GUIEditor.button[4] = guiCreateButton(418, 295, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFEE300") GUIEditor.button[5] = guiCreateButton(549, 294, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFEE300") GUIEditor.button[6] = guiCreateButton(154, 351, 232, 46, "الـــغـــاء", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFE0000") GUIEditor.staticimage[1] = guiCreateStaticImage(10, 19, 121, 266, "Images/image2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(144, 19, 121, 266, "Images/image10.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(275, 19, 121, 266, "Images/image11.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(408, 19, 121, 266, "Images/image12.png", false, GUIEditor.window[1]) GUIEditor.staticimage[5] = guiCreateStaticImage(539, 19, 121, 265, "Images/image13.png", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(418, 350, 232, 46, "لن تحصل على شخصية عند قتلك ", false, GUIEditor.window[1]) end ) addEventHandler("onClientResourceStart", resourceRoot, function() guiSetVisible(GUIEditor.window[1],false) showCursor(false) end ) addEventHandler("onClientGUIClick",getRootElement(), function () if source == GUIEditor.button[6] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) bindKey("f2","down", function () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) else guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) TimeGuiSetRightC = { } function guiMoveRightToCenter(GUIEditor.window[1]) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end Link to comment
The Don Posted March 17, 2015 Share Posted March 17, 2015 TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end GUIEditor = { button = {}, window = {}, staticimage = {}, memo = {}, TimeGuiSetRightC = { } } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0, 0, 674, 411, "مود شراء الشخصيات I بواسطة علاء I سكايب AlaaTailakh", false) guiMoveRightToCenter( GUIEditor.window[1] ) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF000BFE") guiSetVisible(GUIEditor.window[1],true) showCursor(false) GUIEditor.button[1] = guiCreateButton(20, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFEE300") GUIEditor.button[2] = guiCreateButton(154, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFEE300") GUIEditor.button[3] = guiCreateButton(285, 296, 101, 46, "شراء بـ7500$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFEE300") GUIEditor.button[4] = guiCreateButton(418, 295, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFEE300") GUIEditor.button[5] = guiCreateButton(549, 294, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFEE300") GUIEditor.button[6] = guiCreateButton(154, 351, 232, 46, "الـــغـــاء", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFE0000") GUIEditor.staticimage[1] = guiCreateStaticImage(10, 19, 121, 266, "Images/image2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(144, 19, 121, 266, "Images/image10.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(275, 19, 121, 266, "Images/image11.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(408, 19, 121, 266, "Images/image12.png", false, GUIEditor.window[1]) GUIEditor.staticimage[5] = guiCreateStaticImage(539, 19, 121, 265, "Images/image13.png", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(418, 350, 232, 46, "لن تحصل على شخصية عند قتلك ", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[6] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) bindKey("f2","down", function () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiMoveRightToCenter( GUIEditor.window[1] ) -- يمكن ما تحتاجه اذا ما تبيه يظهر بـ موثرات لما يضغظ الزر else guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) Link to comment
baba Posted March 17, 2015 Author Share Posted March 17, 2015 مشكور يا حب الله يعطيك الف الف عافيه بس في طريقه اخلي المود يطلع من جها ثانيه؟ Link to comment
baba Posted March 17, 2015 Author Share Posted March 17, 2015 TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end GUIEditor = { button = {}, window = {}, staticimage = {}, memo = {}, TimeGuiSetRightC = { } } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0, 0, 674, 411, "مود شراء الشخصيات I بواسطة علاء I سكايب AlaaTailakh", false) guiMoveRightToCenter( GUIEditor.window[1] ) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF000BFE") guiSetVisible(GUIEditor.window[1],true) showCursor(false) GUIEditor.button[1] = guiCreateButton(20, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFEE300") GUIEditor.button[2] = guiCreateButton(154, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFEE300") GUIEditor.button[3] = guiCreateButton(285, 296, 101, 46, "شراء بـ7500$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFEE300") GUIEditor.button[4] = guiCreateButton(418, 295, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFEE300") GUIEditor.button[5] = guiCreateButton(549, 294, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFEE300") GUIEditor.button[6] = guiCreateButton(154, 351, 232, 46, "الـــغـــاء", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFE0000") GUIEditor.staticimage[1] = guiCreateStaticImage(10, 19, 121, 266, "Images/image2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(144, 19, 121, 266, "Images/image10.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(275, 19, 121, 266, "Images/image11.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(408, 19, 121, 266, "Images/image12.png", false, GUIEditor.window[1]) GUIEditor.staticimage[5] = guiCreateStaticImage(539, 19, 121, 265, "Images/image13.png", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(418, 350, 232, 46, "لن تحصل على شخصية عند قتلك ", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[6] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) bindKey("f2","down", function () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiMoveRightToCenter( GUIEditor.window[1] ) -- يمكن ما تحتاجه اذا ما تبيه يظهر بـ موثرات لما يضغظ الزر else guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) شف يا حبيب جربت انا الكود على لوحه غير بس ما زبط ليش؟ TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} TimeGuiSetRightC = { } } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateStaticImage(0.05, 0.2, 0.9, 0.40, "maz.png", true) guiWindowSetSizable(GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) guiSetAlpha(GUIEditor.window[1], 1) guiMoveRightToCenter( GUIEditor.window[1] ) function Jose () guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor( not isCursorShowing() ) end bindKey ("F3","down",Jose ) function panel() if source == GUIEditor.button[1] then triggerServerEvent( "fee" , getLocalPlayer() ) elseif source == GUIEditor.button[2] then triggerServerEvent( "fee1" , getLocalPlayer() ) elseif source == GUIEditor.button[3] then triggerServerEvent( "fee2" , getLocalPlayer() ) elseif source == GUIEditor.button[4] then triggerServerEvent( "fee3" , getLocalPlayer() ) elseif source == GUIEditor.button[5] then triggerServerEvent( "fee4" , getLocalPlayer() ) elseif source == GUIEditor.button[6] then triggerServerEvent( "fee5" , getLocalPlayer() ) end end addEventHandler("onClientGUIClick",root,panel ) Link to comment
yazan Posted March 17, 2015 Share Posted March 17, 2015 TimeGuiSetLeftC = { } function guiMoveLeftToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,(w1*4),(y),false) TimeGuiSetLeftC[gui] = setTimer(guiMoveLeftToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 <= x) then killTimer(TimeGuiSetLeftC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,(x1-10),y1,false) end end Link to comment
terreus Posted March 17, 2015 Share Posted March 17, 2015 TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} TimeGuiSetRightC = { } } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateStaticImage(0.05, 0.2, 0.9, 0.40, "maz.png", true) guiMoveRightToCenter( GUIEditor.window[1] ) guiWindowSetSizable(GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) guiSetAlpha(GUIEditor.window[1], 1) guiMoveRightToCenter( GUIEditor.window[1] ) function Jose () guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor( not isCursorShowing() ) end bindKey ("F3","down",Jose ) function panel() if source == GUIEditor.button[1] then triggerServerEvent( "fee" , getLocalPlayer() ) elseif source == GUIEditor.button[2] then triggerServerEvent( "fee1" , getLocalPlayer() ) elseif source == GUIEditor.button[3] then triggerServerEvent( "fee2" , getLocalPlayer() ) elseif source == GUIEditor.button[4] then triggerServerEvent( "fee3" , getLocalPlayer() ) elseif source == GUIEditor.button[5] then triggerServerEvent( "fee4" , getLocalPlayer() ) elseif source == GUIEditor.button[6] then triggerServerEvent( "fee5" , getLocalPlayer() ) end end addEventHandler("onClientGUIClick",root,panel ) جرب كذا يا أخ Link to comment
#DRAGON!FIRE Posted March 17, 2015 Share Posted March 17, 2015 @ iмя.єтι-кєт 亗 خطا جرب كذا : TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateStaticImage(0.05, 0.2, 0.9, 0.40, "maz.png", true) guiWindowSetSizable(GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) guiSetAlpha(GUIEditor.window[1], 1) function Jose ( ) guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) if ( guiGetVisible ( GUIEditor.window[1] ) ) then guiMoveRightToCenter( GUIEditor.window[1] ) end showCursor( not isCursorShowing() ) end bindKey ( "f2", "down", Jose ) end ) function panel ( ) if source == GUIEditor.button[1] then triggerServerEvent( "fee" , getLocalPlayer() ) elseif source == GUIEditor.button[2] then triggerServerEvent( "fee1" , getLocalPlayer() ) elseif source == GUIEditor.button[3] then triggerServerEvent( "fee2" , getLocalPlayer() ) elseif source == GUIEditor.button[4] then triggerServerEvent( "fee3" , getLocalPlayer() ) elseif source == GUIEditor.button[5] then triggerServerEvent( "fee4" , getLocalPlayer() ) elseif source == GUIEditor.button[6] then triggerServerEvent( "fee5" , getLocalPlayer() ) end end addEventHandler ( "onClientGUIClick", root, panel ) Link to comment
terreus Posted March 17, 2015 Share Posted March 17, 2015 @ iмя.єтι-кєт 亗 خطاجرب كذا : TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateStaticImage(0.05, 0.2, 0.9, 0.40, "maz.png", true) guiWindowSetSizable(GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) guiSetAlpha(GUIEditor.window[1], 1) function Jose ( ) guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) if ( guiGetVisible ( GUIEditor.window[1] ) ) then guiMoveRightToCenter( GUIEditor.window[1] ) end showCursor( not isCursorShowing() ) end bindKey ( "f2", "down", Jose ) end ) function panel ( ) if source == GUIEditor.button[1] then triggerServerEvent( "fee" , getLocalPlayer() ) elseif source == GUIEditor.button[2] then triggerServerEvent( "fee1" , getLocalPlayer() ) elseif source == GUIEditor.button[3] then triggerServerEvent( "fee2" , getLocalPlayer() ) elseif source == GUIEditor.button[4] then triggerServerEvent( "fee3" , getLocalPlayer() ) elseif source == GUIEditor.button[5] then triggerServerEvent( "fee4" , getLocalPlayer() ) elseif source == GUIEditor.button[6] then triggerServerEvent( "fee5" , getLocalPlayer() ) end end addEventHandler ( "onClientGUIClick", root, panel ) نسيت أعدل علي كود فتح لوحة Link to comment
baba Posted March 17, 2015 Author Share Posted March 17, 2015 @ iмя.єтι-кєт 亗 خطاجرب كذا : TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateStaticImage(0.05, 0.2, 0.9, 0.40, "maz.png", true) guiWindowSetSizable(GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) guiSetAlpha(GUIEditor.window[1], 1) function Jose ( ) guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) if ( guiGetVisible ( GUIEditor.window[1] ) ) then guiMoveRightToCenter( GUIEditor.window[1] ) end showCursor( not isCursorShowing() ) end bindKey ( "f2", "down", Jose ) end ) function panel ( ) if source == GUIEditor.button[1] then triggerServerEvent( "fee" , getLocalPlayer() ) elseif source == GUIEditor.button[2] then triggerServerEvent( "fee1" , getLocalPlayer() ) elseif source == GUIEditor.button[3] then triggerServerEvent( "fee2" , getLocalPlayer() ) elseif source == GUIEditor.button[4] then triggerServerEvent( "fee3" , getLocalPlayer() ) elseif source == GUIEditor.button[5] then triggerServerEvent( "fee4" , getLocalPlayer() ) elseif source == GUIEditor.button[6] then triggerServerEvent( "fee5" , getLocalPlayer() ) end end addEventHandler ( "onClientGUIClick", root, panel ) لسا نفس المشكله Link to comment
#DRAGON!FIRE Posted March 17, 2015 Share Posted March 17, 2015 الكود مو مجربه من قبل يمكن المشكلة من الفنكشن نفسه ولله اعلم في اي اخطاء بالديبوق ؟ وقولي اللي يصير بالضبط Link to comment
baba Posted March 17, 2015 Author Share Posted March 17, 2015 الكود مو مجربه من قبل يمكن المشكلة من الفنكشن نفسه ولله اعلمفي اي اخطاء بالديبوق ؟ وقولي اللي يصير بالضبط اسمع انا لما اشغل المود بعد ما اركب الكود صح الكود يشتغل f3 انا لما اكبس f3 الوحه ما تطلع Link to comment
#DRAGON!FIRE Posted March 17, 2015 Share Posted March 17, 2015 حطيت لك الزر f2 جرب اضغط اف 2 او خله اف 3 Link to comment
baba Posted March 17, 2015 Author Share Posted March 17, 2015 حطيت لك الزر f2جرب اضغط اف 2 او خله اف 3 جربت بس مو زابط Link to comment
Bassam*Syria Posted March 17, 2015 Share Posted March 17, 2015 end هلا اخوي انت ناسي المهم جرب لو ما اشتغل قلي TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} TimeGuiSetRightC = { } } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateStaticImage(0.05, 0.2, 0.9, 0.40, "maz.png", true) guiWindowSetSizable(GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) guiSetAlpha(GUIEditor.window[1], 1) guiMoveRightToCenter( GUIEditor.window[1] ) end ) function Jose () guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor( not isCursorShowing() ) end bindKey ("F3","down",Jose ) function panel() if source == GUIEditor.button[1] then triggerServerEvent( "fee" , getLocalPlayer() ) elseif source == GUIEditor.button[2] then triggerServerEvent( "fee1" , getLocalPlayer() ) elseif source == GUIEditor.button[3] then triggerServerEvent( "fee2" , getLocalPlayer() ) elseif source == GUIEditor.button[4] then triggerServerEvent( "fee3" , getLocalPlayer() ) elseif source == GUIEditor.button[5] then triggerServerEvent( "fee4" , getLocalPlayer() ) elseif source == GUIEditor.button[6] then triggerServerEvent( "fee5" , getLocalPlayer() ) end end addEventHandler("onClientGUIClick",root,panel ) 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