Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 النفذة اول مايخش الاعب تكون ظاهرة له Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 اطرح المود واسوية لك ذذ الكلنت اللوحة و وين الزر اللي تبية يغلق اللوحة ذذ Link to comment
Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 اطرح المود واسوية لك ذذ الكلنت اللوحة و وين الزر اللي تبية يغلق اللوحة ذذ GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") ------------------------------------- addEventHandler ( "onPlayerJoin", root, function () guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor ( true ) guiSetInputEnabled( guiGetVisible ( GUIEditor_Window[1] ) ) end ) ------------------------------------- addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) triggerServerEvent("onClick1",localPlayer) end end ) Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") ----------------------------------------- showCursor ( true ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) triggerServerEvent("onClick1",localPlayer) end end ) اطلع وادخل Link to comment
Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") ----------------------------------------- showCursor ( true ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) triggerServerEvent("onClick1",localPlayer) end end ) اطلع وادخل يحبيبي انا ابيه لما يخش الاعب يظهر الماوس له مولكل الناس ومع بداية المود قصدي انت حاطه لما يبدء المود مو لما يخش الاعب وكمان مو بس للاعب الي خش للكل وش هذا انت خربطه Link to comment
Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 ونفس الشي مع الوحة Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") addEventHandler("onClientPlayerJoin", resourceRoot, function () showCursor (true) end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) triggerServerEvent("onClick1",localPlayer) end end ) Link to comment
Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") addEventHandler("onClientPlayerJoin", resourceRoot, function () showCursor (true) end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) triggerServerEvent("onClick1",localPlayer) end end ) جربته بس الماوس ماظهر!! Link to comment
jafar Posted February 20, 2013 Share Posted February 20, 2013 GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") addEventHandler("onClientPlayerJoin", resourceRoot, function () showCursor (true) end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) triggerServerEvent("onClick1",localPlayer) end end ) جربته بس الماوس ماظهر!! showCursor ( true ) Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 جرب ذا : GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") ----------------------------------------- addEventHandler("onClientResourceStart", resourceRoot, function () showCursor(true) end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) triggerServerEvent("onClick1",localPlayer) end end ) Link to comment
Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 ياخي انا اقلك لما يخش الاعب مو لما يبدء المود لو اي لاعب دخل تجيه الوحة له بس مو للبقية او لما يبدا المود Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 يابن الحلال جربة هههـ بتشتغل اول مايدخل Link to comment
Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 كل شيء صح اللاعب لما يدخل تجيه اللوحة بس الماوس مهو ظاهر ليش؟؟هل المشكلة من بلاي او فري روم؟؟ Link to comment
Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 طيب انا عدلت فيها بس المشكلة صارت ماتشتغل انا ابيها لما تضغط الصورة حقت الهجولة هذا مافيه شيء بس انا حطيت لو ضغت على حرب تجيك لوحة ثانية عشان تختار تيم واللوحة السابقة تختفي ياريت حد يعدله GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "s/3.png", relative2 ) guiSetFont ( mainBackgroundLabel, newFont ) guiSetEnabled ( mainBackgroundLabel, false ) return mainBackground end GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/1.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/2.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") ---------------------------------------------------- GUIEditor_Window[2] = guiCreateWindow(0,0.0013,1,1,,"",true) GUIEditor_Button[1] = guiCreateButton(163,200,187,178,"1",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"sa-gothic") GUIEditor_Button[2] = guiCreateButton(630,200,187,178,"2",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"sa-gothic") GUIEditor_Label[1] = guiCreateLabel(696,416,328,65,"الفريق2",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],3,255,4) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(215,422,145,56,"الفريق 1",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,23,170) guiSetFont(GUIEditor_Label[2],"default-bold-small") guiSetVisible ( GUIEditor_Window[2] ,false ) ------------------------------------- addEventHandler ( "onPlayerJoin", root, function () guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor ( true ) end ) ------------------------------------- addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[2] ,false ) triggerServerEvent("onClick2",localPlayer) end if ( source == GUIEditor_Button[1] ) then guiSetVisible ( GUIEditor_Window[2] ,false ) triggerServerEvent("onClick1",localPlayer) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) guiSetVisible ( GUIEditor_Window[2] ,true ) end ) Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 الاخطاء عندك : فاصلة زايدهـ سطر | 25 تستعمل ايفنت | onPlayerJoin والسكربت | كلنت ناقصك End لـ اغلاق الوظيفة تبع الـ "onClientGUIClick" Link to comment
Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 طيب ممكن تصححه لي وتعطيني اياه ويارب يوفقك في الدنيا والاخرة Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 قلت لك الاخطأء اللي عليك تضيف الـ end وتسوي onPlayerJoin لـ onClientPlayerJoin وتشيل الفاصلة المتكررهـ سطر 25 وجربهـ Link to comment
Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 وين بالضبط احط end في اي سطر Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "s/3.png", relative2 ) guiSetFont ( mainBackgroundLabel, newFont ) guiSetEnabled ( mainBackgroundLabel, false ) return mainBackground end GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/1.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/2.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") ---------------------------------------------------- GUIEditor_Window[2] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetVisible(GUIEditor_Window[2],false) GUIEditor_Button[1] = guiCreateButton(163,200,187,178,"1",false,GUIEditor_Window[2]) guiSetFont(GUIEditor_Button[1],"sa-gothic") GUIEditor_Button[2] = guiCreateButton(630,200,187,178,"2",false,GUIEditor_Window[2]) guiSetFont(GUIEditor_Button[2],"sa-gothic") GUIEditor_Label[1] = guiCreateLabel(696,416,328,65,"الفريق2",false,GUIEditor_Window[2]) guiLabelSetColor(GUIEditor_Label[1],3,255,4) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(215,422,145,56,"الفريق 1",false,GUIEditor_Window[2]) guiLabelSetColor(GUIEditor_Label[2],255,23,170) guiSetFont(GUIEditor_Label[2],"default-bold-small") ------------------------------------- addEventHandler ( "onClientResourceStart", resourceRoot, function () guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor ( true ) end ) ------------------------------------- addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) elseif ( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[2] ,false ) showCursor ( false ) triggerServerEvent("onClick2",localPlayer) elseif ( source == GUIEditor_Button[1] ) then guiSetVisible ( GUIEditor_Window[2] ,false ) showCursor ( false ) triggerServerEvent("onClick1",localPlayer) elseif ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) guiSetVisible ( GUIEditor_Window[2] ,true ) end end ) Link to comment
Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 انت خربط الكود لازم بعد triggerServerEvent end مو بعد الوظيفة كذا كلها تجي مرة وتخرب النافذة انت حط الصح Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 ~_~ انـا خربطت؟ هههـ يخوي تبي تصحيح تقول خربطة؟ جربة ثانية اللي فوق عدلتة ومن معطيك الكلام ذا بعد كل ترايقر لازم end? Link to comment
Mr.king Posted February 20, 2013 Author Share Posted February 20, 2013 صدقت والله انك كفو تسلللللللللللللللللللللللللللم على كل الي سويته والله انك كنق Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 (edited) You're Welcome . Edited February 20, 2013 by Guest 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