baba Posted March 17, 2015 Author 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
#DRAGON!FIRE Posted March 17, 2015 Share Posted March 17, 2015 كودي صحيح لكن ما ادري صراحة ما قد جربت استخدم هذا الفنكشن تقدر تسويها بنفسكـ مو صعبة x كل شغلك ع 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 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() ) guiMoveRightToCenter( GUIEditor.window[1] ) 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 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 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() ) guiMoveRightToCenter( GUIEditor.window[1] ) 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
Bassam*Syria 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 = {} } addEventHandler("onClientResourceStart", resourceRoot, function ( ) guiSetPosition(GUIEditor.window[1],x,y,false) x = 364 y = -277 GUIEditor.window[1] = guiCreateWindow(x,y,659, 472, "maz.png", false) 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
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 GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function ( ) guiSetPosition(GUIEditor.window[1],x,y,false) x = 364 y = -277 GUIEditor.window[1] = guiCreateWindow(x,y,659, 472, "maz.png", false) 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 ) بس انا غيرت الوحه عشان لوحتك ما تطلع الشاشه شكلها صغيره او مكان خارج الشاشه عملت مود كامل جديد و مشتغلت معي هههههههه قسم غيرت كل شي 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 = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(-3, 183, 674, 411, "مود شراء الشخصيات I بواسطة علاء I سكايب AlaaTailakh", 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.memo[1] = guiCreateMemo(418, 350, 232, 46, "لن تحصل على شخصية عند قتلك ", false, GUIEditor.window[1]) function panel2 () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) guiMoveRightToCenter( GUIEditor.window[1] ) end bindKey("F2","down", panel2) addEventHandler ( "onClientGUIClick", GUIEditor.button[1], function () triggerServerEvent( "fee" , getLocalPlayer() ) end) addEventHandler ( "onClientGUIClick", GUIEditor.button[2], function () triggerServerEvent( "fee1" , getLocalPlayer() ) end) addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function () triggerServerEvent( "fee2" , getLocalPlayer() ) end) addEventHandler ( "onClientGUIClick", GUIEditor.button[4], function () triggerServerEvent( "fee3" , getLocalPlayer() ) end) addEventHandler ( "onClientGUIClick", GUIEditor.button[5], function () triggerServerEvent( "fee4" , getLocalPlayer() ) end) addEventHandler ( "onClientGUIClick", GUIEditor.button[6], function () triggerServerEvent( "fee5" , getLocalPlayer() ) end) Link to comment
Bassam*Syria Posted March 17, 2015 Share Posted March 17, 2015 قصدك كودي؟ ترا انا جربته الحين و اشتغل Link to comment
yazan Posted March 17, 2015 Share Posted March 17, 2015 لا مو كودك كل الاكواد النطرحت بسم الله طلبه ملموس ميشتغل نطرح مدري 5 او6 اكواد و كل واحد يختلف عن ثاني و ولا واحد شتغل Link to comment
Bassam*Syria Posted March 18, 2015 Share Posted March 18, 2015 يا baba, ماقلتلي المود اشتغل معاك او لا ؟ ابي اعرف ض ! Link to comment
baba Posted March 18, 2015 Author Share Posted March 18, 2015 يا baba, ماقلتلي المود اشتغل معاك او لا ؟ ابي اعرف ض ! بسام انا بتع لك طلب صداقه على السكايبي اقبل 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