دكتور انيمو Posted July 26, 2014 Share Posted July 26, 2014 السلام عليكم , شباب عندي خطاآ في مود انا سويتة بس كودات جبتها جاهزه المهم ندخل صلب الموضوع.. المود من اركبة بالسيرفر واشغلة اكبس اف9 مو يخرج شي!! اعرض لكم الكودات ؟ اوكك GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(346, 179, 644, 447, "لوحة تجريبية", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFA6B44A") GUIEditor.button[1] = guiCreateButton(107, 162, 267, 116, "No thin", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFD0722D") GUIEditor.memo[1] = guiCreateMemo(346, 91, 28, 71, "dranemo", false, GUIEditor.window[1]) GUIEditor.memo[2] = guiCreateMemo(105, 92, 29, 70, "dranemo", false, GUIEditor.window[1]) end ) guiSetVisible (اسم النافذة, false) لجعل النافذة ما تفتح اول ما تشغل المود function OpenWin() لجعل النافذة تفتح بزر if guiGetVisible ( اسم النافذة ) then guiSetVisible ( اسم النافذة, false ) للتحقق ان النافذة تكون مغلقة showCursor(false) مؤشر الموس غير موجود guiSetInputEnabled(false) else guiSetVisible ( اسم النافذة, true ) يجعل النافذة تظهر ( موجودة) showCursor(true) يجعل المؤثر يظهر guiSetInputEnabled(true) end الاند هذي من اجل الفنكشن end الاند هذي من اجل ال اف bindKey("F9", "down", OpenWin) هنا زر اللوحة guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") لجعل الزر يتلون بلون اخضر وشو الخطا لاهنتو Link to comment
shwaeki Posted July 26, 2014 Share Posted July 26, 2014 القسم غلط + جرب GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(346, 179, 644, 447, "لوحة تجريبية", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible (GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFA6B44A") GUIEditor.button[1] = guiCreateButton(107, 162, 267, 116, "No thin", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") GUIEditor.memo[1] = guiCreateMemo(346, 91, 28, 71, "dranemo", false, GUIEditor.window[1]) GUIEditor.memo[2] = guiCreateMemo(105, 92, 29, 70, "dranemo", false, GUIEditor.window[1]) end ) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F9", "down", OpenWin) Link to comment
#DRAGON!FIRE Posted July 26, 2014 Share Posted July 26, 2014 اولأ القسم خطأ . للأكواد Lua ثانيا استخدم GUIEditor = { button = { }, window = { }, memo = { } } addEventHandler( "onClientResourceStart", resourceRoot, function( ) GUIEditor.window[1] = guiCreateWindow(346, 179, 644, 447, "لوحة تجريبية", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFA6B44A") guiSetVisible ( GUIEditor.window[1], false ) GUIEditor.button[1] = guiCreateButton(107, 162, 267, 116, "No thin", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") GUIEditor.memo[1] = guiCreateMemo(346, 91, 28, 71, "dranemo", false, GUIEditor.window[1]) GUIEditor.memo[2] = guiCreateMemo(105, 92, 29, 70, "dranemo", false, GUIEditor.window[1]) end ) bindKey ( "F9", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) ) showCursor( guiGetVisible( GUIEditor.window[1] ) ) end ) Link to comment
دكتور انيمو Posted July 26, 2014 Author Share Posted July 26, 2014 اسف + مشكور زاحف انا جديد في البرمجة + جديد في المنتدى يعني مو اعرف الاقسام بجرب الكود حقك Link to comment
دكتور انيمو Posted July 26, 2014 Author Share Posted July 26, 2014 اولأ القسم خطأ . للأكواد Lua ثانيا استخدم GUIEditor = { button = { }, window = { }, memo = { } } addEventHandler( "onClientResourceStart", resourceRoot, function( ) GUIEditor.window[1] = guiCreateWindow(346, 179, 644, 447, "لوحة تجريبية", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFA6B44A") guiSetVisible ( GUIEditor.window[1], false ) GUIEditor.button[1] = guiCreateButton(107, 162, 267, 116, "No thin", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") GUIEditor.memo[1] = guiCreateMemo(346, 91, 28, 71, "dranemo", false, GUIEditor.window[1]) GUIEditor.memo[2] = guiCreateMemo(105, 92, 29, 70, "dranemo", false, GUIEditor.window[1]) end ) bindKey ( "F9", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) ) showCursor( guiGetVisible( GUIEditor.window[1] ) ) end ) اخوي زاحف المود تمام اشتغل مشكور وجزاك الله خير بس ذا الكود bindKey ( "F9", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) ) showCursor( guiGetVisible( GUIEditor.window[1] ) ) end ) لو استخدمة في مود تاني مثل ذا بس ذا تجريبي ينفع يشتغل ؟ وارجو ان يحذف الموضوع Link to comment
#DRAGON!FIRE Posted July 26, 2014 Share Posted July 26, 2014 يب .. بس لازم تستبدل اسم النافذة . Link to comment
دكتور انيمو Posted July 26, 2014 Author Share Posted July 26, 2014 يب .. بس لازم تستبدل اسم النافذة . بس انا ما مسوي للنافذه اسم Link to comment
#DRAGON!FIRE Posted July 26, 2014 Share Posted July 26, 2014 سوي !! varName = guiCreateWindow ( ... ) Link to comment
nxFairlywell Posted July 26, 2014 Share Posted July 26, 2014 لازم يكون للنافذه اسم او تجيك كذا GUIEditor.window[1] = guiCreateWindow ( ...... ) ^_^" 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