Faraon, Posted December 2, 2016 Share Posted December 2, 2016 السلام عليكم رحمة الله وبركاتة , شباب كيف حالكم يا حلوين ان شاء لله تكونوا بخير دوم المهم انا ابي طلب كود لما حد يفتح الوحة ويضغظ علي زر مرة واحدة فقط يعني كود تضغظ علي الزر مرة واحدة كل 15 دقيقة مثلآ ارجو ضروري * Link to comment
iPrestege Posted December 2, 2016 Share Posted December 2, 2016 guiSetEnabled setTimer -- Join us at : www.Mta-Arabs.CoM Link to comment
Faraon, Posted December 2, 2016 Author Share Posted December 2, 2016 On 02/12/2016 at 17:27, iPrestege said: guiSetEnabled setTimer -- Join us at : www.Mta-Arabs.CoM Expand انا حاولت اسوية مو عرفت وخرب لي المود بالكامل O_o Link to comment
iPrestege Posted December 2, 2016 Share Posted December 2, 2016 guiSetEnabled ( aMyButton,false ); setTimer ( guiSetEnabled,900000,1,aMyButton,true ); 1 Link to comment
Faraon, Posted December 2, 2016 Author Share Posted December 2, 2016 On 02/12/2016 at 17:54, iPrestege said: guiSetEnabled ( aMyButton,false ); setTimer ( guiSetEnabled,900000,1,aMyButton,true ); a Expand هو لا يبي يشتغل لكن شكرا لك Link to comment
iPrestege Posted December 2, 2016 Share Posted December 2, 2016 On 02/12/2016 at 19:11, [#]_iMr.[D]ea[D]<3 said: هو لا يبي يشتغل لكن شكرا لك Expand كيف ما يبي يشتغل؟ اطرح كودكـ كامل ؟ Link to comment
Faraon, Posted December 2, 2016 Author Share Posted December 2, 2016 On 02/12/2016 at 19:54, iPrestege said: -------sound------- addEventHandler("onClientMouseEnter", resourceRoot, function () if getElementType(source) == "GUIEditor.button[1]" then guiSetAlpha(source, 0.8); playSoundFrontEnd(3); end end ); -- Mod -- addEventHandler("onClientGUIClick", resourceRoot, function ( ) if ( source == chat ) then triggerServerEvent ( "chat", localPlayer ) end end ) -- 1 -- guiSetEnabled ( GUIEditor.button[1],false ); setTimer ( guiSetEnabled,900000,1,GUIEditor.button[1],true ); -- Open -- function openAd() if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor (false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor (true) end end bindKey ("F7", "down", openAd ) Expand Link to comment
iPrestege Posted December 2, 2016 Share Posted December 2, 2016 (edited) addEventHandler ( 'onClientMouseEnter',GUIEditor.button[1], function ( ) guiSetAlpha(source, 0.8); playSoundFrontEnd(3); end,false ); addEventHandler ( 'onClientGUIClick',chat, function ( ) triggerServerEvent ( 'chat', localPlayer ) guiSetEnabled ( source,false ); setTimer ( guiSetEnabled,900000,1,source,true ); end,false ); bindKey ( 'F7','down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ); end ); Edited December 2, 2016 by iPrestege Link to comment
Faraon, Posted December 2, 2016 Author Share Posted December 2, 2016 On 02/12/2016 at 20:01, iPrestege said: addEventHandler ( 'onClientMouseEnter',GUIEditor.button[1], function ( ) guiSetAlpha(source, 0.8); playSoundFrontEnd(3); end,false ); addEventHandler ( 'onClientGUIClick',chat, function ( ) triggerServerEvent ( 'chat', localPlayer ) guiSetEnabled ( GUIEditor.button[1],false ); setTimer ( guiSetEnabled,900000,1,GUIEditor.button[1],true ); end,false ); bindKey ( 'F7','down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ); end ); Expand WARNING: chat/c_chat.lua,51: Bad Argument @'addEvenHandler'[Expected element at argument 2,got nii] Link to comment
iPrestege Posted December 2, 2016 Share Posted December 2, 2016 تاكد من الازرار اللي حاطها انا لانك كنت حاطها انت يعني هل Guieditor.button[1] معرف؟ chat? تأكد وبدلها بحقاتك Link to comment
Faraon, Posted December 2, 2016 Author Share Posted December 2, 2016 (edited) On 02/12/2016 at 20:05, iPrestege said: تاكد من الازرار اللي حاطها انا لانك كنت حاطها انت يعني هل Guieditor.button[1] معرف؟ chat? تأكد وبدلها بحقاتك Expand بألسيرفر - addEvent ( "chat", true ) addEventHandler("chat",root, - الزر UIEditor.button[1] = guiCreateButton(20, 114, 170, 59, "مسح آلشآآت !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") Edited December 2, 2016 by [#]_iMr.[D]ea[D]<3 Link to comment
iPrestege Posted December 2, 2016 Share Posted December 2, 2016 ماله علاقة اقصد تاكد من الازرار في الاحداث بالازرار اللي تبيها ذذ لانة الخطأ منها Link to comment
Kara Posted December 2, 2016 Share Posted December 2, 2016 -------- الوظيفه function guiAntiFlood(element, timer) if getElementType ( element ) == "gui-button" then local atimer = tonumber(timer) if atimer == nil or atimer == '' or not tonumber(atimer) then error("Bad Argument the Argument 2 must number") else end guiSetEnabled(element,false) setTimer(function() guiSetEnabled(element,true) end,tonumber(atimer),1) else error("Bad Argument 1 the element must button") end end addEventHandler ( 'onClientMouseEnter',GUIEditor.button[1], function ( ) guiSetAlpha(source, 0.8); playSoundFrontEnd(3); end,false ); addEventHandler ( 'onClientGUIClick',root,function () if ( source == GUIEditor.button[1] ) then triggerServerEvent ( 'chat', localPlayer ) guiAntiFlood(GUIEditor.button[1],9000) end end ) bindKey ( 'F7','down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ); end ); استعمل ذي الوظيفه اريحلك اظن هي وظيفة الاخ ميزو Link to comment
Faraon, Posted December 2, 2016 Author Share Posted December 2, 2016 (edited) On 02/12/2016 at 20:26, Kara said: -------- الوظيفه function guiAntiFlood(element, timer) if getElementType ( element ) == "gui-button" then local atimer = tonumber(timer) if atimer == nil or atimer == '' or not tonumber(atimer) then error("Bad Argument the Argument 2 must number") else end guiSetEnabled(element,false) setTimer(function() guiSetEnabled(element,true) end,tonumber(atimer),1) else error("Bad Argument 1 the element must button") end end addEventHandler ( 'onClientMouseEnter',GUIEditor.button[1], function ( ) guiSetAlpha(source, 0.8); playSoundFrontEnd(3); end,false ); addEventHandler ( 'onClientGUIClick',root,function () if ( source == GUIEditor.button[1] ) then triggerServerEvent ( 'chat', localPlayer ) guiAntiFlood(GUIEditor.button[1],9000) end end ) bindKey ( 'F7','down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ); end ); استعمل ذي الوظيفه اريحلك اظن هي وظيفة الاخ ميزو Expand لم تشتغل حتي Quote ملف الكلنيت Expand GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.43, 0.28, 0.16, 0.41, "=[ لوحه مسح آلشآت ]=", true) guiSetVisible(GUIEditor.window[1],false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFEAFF00") GUIEditor.label[1] = guiCreateLabel(0.07, 0.11, 0.88, 0.06, "# جميع آلحقوق تعود لـ مستر اموات", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 254, 246) GUIEditor.label[2] = guiCreateLabel(0, 50, 210, 15, "_____________________________________", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(20, 114, 170, 59, "مسح آلشآآت !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF4DFD00") GUIEditor.label[3] = guiCreateLabel(0, 173, 210, 15, "_____________________________________", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(10, 81, 231, 23, "* يجب يكون عند سبب لمسح الشات", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 252, 0, 0) GUIEditor.label[5] = guiCreateLabel(67, 188, 177, 29, "* ملاحظات *", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 0, 251, 231) GUIEditor.label[6] = guiCreateLabel(26, 207, 170, 20, "تضغظ علي الزر مرة واحدة فقط", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 0, 29, 251) GUIEditor.label[7] = guiCreateLabel(15, 233, 190, 15, "كل 15 دقيقة سوف تضغظ مرة اخري", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 171, 250, 0) GUIEditor.label[8] = guiCreateLabel(129, 291, 82, 15, "#مجتمع_آلعرب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetColor(GUIEditor.label[8], 249, 194, 0) GUIEditor.label[9] = guiCreateLabel(68, 296, 61, 15, "mtaarabs.com", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[9], "default-small") guiLabelSetColor(GUIEditor.label[9], 255, 254, 254) GUIEditor.label[10] = guiCreateLabel(45, 258, 181, 25, "* حيآكم آلله بآلسيرفر , !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetColor(GUIEditor.label[10], 0, 243, 131) end ) function guiAntiFlood(element, timer) if getElementType ( element ) == "gui-button" then local atimer = tonumber(timer) if atimer == nil or atimer == '' or not tonumber(atimer) then error("Bad Argument the Argument 2 must number") else end guiSetEnabled(element,false) setTimer(function() guiSetEnabled(element,true) end,tonumber(atimer),1) else error("Bad Argument 1 the element must button") end end addEventHandler( 'onClientMouseEnter',GUIEditor.button[1], function ( ) guiSetAlpha(source, 0.8); playSoundFrontEnd(3); end,false ); addEventHandler ( 'onClientGUIClick',root,function () if ( source == GUIEditor.button[1] ) then triggerServerEvent ( 'chat', localPlayer ) guiAntiFlood(GUIEditor.button[1],9000) end end ) bindKey ( 'F7','down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ); end ); - ملف السيرفر addEvent ( "chat", true ) addEventHandler("chat",root, function () outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox ( "#FF0000INFO : #ffff00ADMIN #ff0000[#ffff00 ".. name .." #ff0000]#FFFF00 CLEARED THE CHAT", getRootElement(), 255, 255, 255, true ) end) Edited December 2, 2016 by [#]_iMr.[D]ea[D]<3 Link to comment
Kara Posted December 2, 2016 Share Posted December 2, 2016 GUIEditor.button[1] سطر 27 وسطر 29 استبدل ذا باسم الزر حقك Link to comment
Faraon, Posted December 2, 2016 Author Share Posted December 2, 2016 On 02/12/2016 at 20:48, Kara said: GUIEditor.button[1] سطر 27 وسطر 29 استبدل ذا باسم الزر حقك Expand وين 27 -_--- Link to comment
Kara Posted December 2, 2016 Share Posted December 2, 2016 GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.43, 0.28, 0.16, 0.41, "=[ لوحه مسح آلشآت ]=", true) guiSetVisible(GUIEditor.window[1],false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFEAFF00") GUIEditor.label[1] = guiCreateLabel(0.07, 0.11, 0.88, 0.06, "# جميع آلحقوق تعود لـ مستر اموات", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 254, 246) GUIEditor.label[2] = guiCreateLabel(0, 50, 210, 15, "_____________________________________", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(20, 114, 170, 59, "مسح آلشآآت !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF4DFD00") GUIEditor.label[3] = guiCreateLabel(0, 173, 210, 15, "_____________________________________", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(10, 81, 231, 23, "* يجب يكون عند سبب لمسح الشات", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 252, 0, 0) GUIEditor.label[5] = guiCreateLabel(67, 188, 177, 29, "* ملاحظات *", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 0, 251, 231) GUIEditor.label[6] = guiCreateLabel(26, 207, 170, 20, "تضغظ علي الزر مرة واحدة فقط", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 0, 29, 251) GUIEditor.label[7] = guiCreateLabel(15, 233, 190, 15, "كل 15 دقيقة سوف تضغظ مرة اخري", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 171, 250, 0) GUIEditor.label[8] = guiCreateLabel(129, 291, 82, 15, "#مجتمع_آلعرب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetColor(GUIEditor.label[8], 249, 194, 0) GUIEditor.label[9] = guiCreateLabel(68, 296, 61, 15, "mtaarabs.com", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[9], "default-small") guiLabelSetColor(GUIEditor.label[9], 255, 254, 254) GUIEditor.label[10] = guiCreateLabel(45, 258, 181, 25, "* حيآكم آلله بآلسيرفر , !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetColor(GUIEditor.label[10], 0, 243, 131) end ) function guiAntiFlood(element, timer) if getElementType ( element ) == "gui-button" then local atimer = tonumber(timer) if atimer == nil or atimer == '' or not tonumber(atimer) then error("Bad Argument the Argument 2 must number") else end guiSetEnabled(element,false) setTimer(function() guiSetEnabled(element,true) end,tonumber(atimer),1) else error("Bad Argument 1 the element must button") end end addEventHandler( 'onClientMouseEnter',GUIEditor.button[1], function ( ) guiSetAlpha(source, 0.8); playSoundFrontEnd(3); end,false ); addEventHandler ( 'onClientGUIClick',root,function () if ( source == GUIEditor.button[1] ) then triggerServerEvent ( 'chat', localPlayer ) guiAntiFlood(GUIEditor.button[1],900000) end end ) bindKey ( 'F7','down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ); end ); addEvent ( "chat", true ) addEventHandler("chat",root, function () local name = getPlayerName(source) for i = 1,20 do outputChatBox(" ") end outputChatBox ( "#FF0000INFO : #ffff00ADMIN #ff0000[#ffff00 ".. name .." #ff0000]#FFFF00 CLEARED THE CHAT", getRootElement(), 255, 255, 255, true ) end ) Link to comment
Faraon, Posted December 2, 2016 Author Share Posted December 2, 2016 On 02/12/2016 at 20:48, Kara said: GUIEditor.button[1] سطر 27 وسطر 29 استبدل ذا باسم الزر حقك Expand شكرا ي بطل تم حل بنجاح من قبلك طلب كمان اسف انا اعرف اني ازعجك بس وش اسوي المهم اطلب انا سوف اشفر المود ويوجد ناس يبوا يغيرو زر فتح الوحة ابية الكود هذ 1 Link to comment
Faraon, Posted December 2, 2016 Author Share Posted December 2, 2016 On 02/12/2016 at 21:41, Kara said: @[#]_iMr.[D]ea[D]<3 العفو Expand طلب كمان اسف انا اعرف اني ازعجك بس وش اسوي المهم اطلب انا سوف اشفر المود ويوجد ناس يبوا يغيرو زر فتح الوحة ابية الكود هذ Link to comment
Kara Posted December 2, 2016 Share Posted December 2, 2016 On 02/12/2016 at 21:42, [#]_iMr.[D]ea[D]<3 said: انا سوف اشفر المود ويوجد ناس يبوا يغيرو زر فتح الوحة Expand عدل علي ملف الكلينت فنشكن فتح اللوحه سويه كذا bindKey ( key,'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ); end ); keyوروح سوي ملف كلينت ثاني وعرف فيه ال key = 'F7' وخلي الملف الي معرف فيه الكي هوا الاول في الميتا Link to comment
Faraon, Posted December 2, 2016 Author Share Posted December 2, 2016 On 02/12/2016 at 21:50, Kara said: عدل علي ملف الكلينت فنشكن فتح اللوحه سويه كذا bindKey ( key,'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ); end); keyوروح سوي ملف كلينت ثاني وعرف فيه ال key = 'F7' وخلي الملف الي معرف فيه الكي هوا الاول في الميتا Expand شكرآ اخي العزيز , تمت الافادهـ * واسف علي تعبك معي 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