Jump to content

Doffy

Members
  • Posts

    1,546
  • Joined

  • Last visited

  • Days Won

    31

Everything posted by Doffy

  1. getTickCount interpolateBetween guiSetPosition هو قصده اول لما يضغط مثلا زر اف 1 مثلا تفتح من فوق لتحت والعكس
  2. + اخوي ممنوع تسوي اكثر من طلب بنفس الموضوع @Tete omar
  3. جرب local Key = "F5" --هنا زر الفتح GUIEditor = { label = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() Window = guiCreateWindow((screenW - 606) / 2, (screenH - 236) / 2, 606, 236, "❖〣┘ لوحــة الفلــم ┌〣❖", false) guiWindowSetSizable(Window, false) guiSetAlpha(Window, 1.00) guiSetVisible(Window,false) GUIEditor.label[1] = guiCreateLabel(187, 26, 238, 20, " ❖┘ إكتمـل التصويــر شكــرا لجهودكــم معنــا ┌❖", false, Window) guiLabelSetColor(GUIEditor.label[1], 0, 255, 227) GUIEditor.label[2] = guiCreateLabel(482, 56, 110, 20, "❍ بعـنوان \"الزومبـي\"", false, Window) guiLabelSetColor(GUIEditor.label[2], 255, 209, 0) GUIEditor.label[3] = guiCreateLabel(142, 206, 314, 20, "〝لاتـسو لايـك وإشـتراكـ بالقـناة حتـى يصـلكم كـل جديـد〞", false, Window) guiLabelSetColor(GUIEditor.label[3], 30, 255, 0) Copy = guiCreateButton(456, 137, 70, 40, "❖|نسـخ|❖", false, Window) guiSetProperty(Copy, "NormalTextColour", "FF1EFF00") GUIEditor.label[4] = guiCreateLabel(4, 181, 610, 15, "_________________________________________________________________________________________", false, Window) GUIEditor.label[5] = guiCreateLabel(-3, 107, 610, 15, "_______________________________________________________________________", false, Window) GUIEditor.label[6] = guiCreateLabel(14, 147, 426, 20, "https://www.youtube.com/channel/UCysAMzPfDn5VNAeSia6EUpw", false, Window) Close1 = guiCreateButton(560, 198, 37, 28, "✘", false, Window) guiSetProperty(Close1, "NormalTextColour", "FFFD0000") Filmey = guiCreateButton(19, 67, 210, 40, "❖| الممثليـن فـي الفـلم |❖", false, Window) guiSetProperty(Filmey, "NormalTextColour", "FFFF00E4") GUIEditor.label[7] = guiCreateLabel(506, 107, 81, 15, "» رابط القنـاة «", false, Window) guiLabelSetColor(GUIEditor.label[7], 255, 209, 0) GUIEditor.label[8] = guiCreateLabel(17, 211, 69, 15, "MƬA ƑἷLMЄَƳ", false, Window) guiLabelSetColor(GUIEditor.label[8], 255, 209, 0) GUIEditor.staticimage[1] = guiCreateStaticImage(430, 30, 16, 16, ":guieditor/images/dx_elements/checkbox_tick.png", false, Window) end ) -- GUIEditor = { gridlist = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 419) / 2, (screenH - 426) / 2, 419, 426, "❖〣┘ الممثليـن ┌〣❖", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1],false) GUIEditor.gridlist[1] = guiCreateGridList(18, 67, 383, 237, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "اللإسـم", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "النسبة", 0.5) for i = 1, 14 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "!_#[D]R[D]EATH_M.F.A", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 1, 253, 232, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "60%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "#-'NeSaN", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 1, 1, 253, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 2, "80%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "#-JnOn,V9", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 2, 1, 253, 0, 250, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 2, 2, "60%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "#mR-',F5-[A]-mH,<:V9", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 3, 1, 0, 24, 253, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 3, 2, "60%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "7{M}OD", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 4, 1, 1, 253, 233, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 4, 2, "70%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "G-A-B-R-Y", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 5, 1, 48, 255, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 5, 2, "75%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 6, 1, "MR.SAMSUNG", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 6, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 6, 2, "80%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 7, 1, "MRJoOoJ", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 7, 1, 255, 89, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 7, 2, "85%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 8, 1, "MaxPayne|M.F.A", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 8, 1, 0, 17, 255, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 8, 2, "75%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 9, 1, "SOnY", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 9, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 9, 2, "90%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 10, 1, "She5_HeRoOoS", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 10, 1, 239, 0, 255, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 10, 2, "85%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 11, 1, "Wex{Q.5}", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 11, 1, 12, 255, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 11, 2, "60%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 12, 1, "{mafia}ahmed212", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 12, 1, 255, 251, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 12, 2, "70%", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 13, 1, "~DevO", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 13, 1, 0, 255, 221, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 13, 2, "70%", false, false) GUIEditor.label[1] = guiCreateLabel(287, 32, 104, 21, "❖ أبطـال الفـلم : ❖", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 30, 255, 0) GUIEditor.label[2] = guiCreateLabel(22, 339, 379, 18, "❖ تـم رفـع رتـب الممثلـين , سيـتم تخفيـض الرتـبة فـي حالـة اللإستبعـاد ❖", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 0, 255, 203) GUIEditor.label[3] = guiCreateLabel(18, 314, 383, 15, "❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 255, 215, 0) GUIEditor.label[4] = guiCreateLabel(18, 367, 383, 15, "❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 255, 215, 0) Close2 = guiCreateButton(358, 392, 43, 28, "✘", false, GUIEditor.window[1]) guiSetProperty(Close2, "NormalTextColour", "FFFD0000") GUIEditor.label[5] = guiCreateLabel(18, 395, 104, 21, "MƬA ƑἷLMЄَƳ", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 30, 255, 0) end ) -- bindKey(Key,"down", --عند الضغط على الزر المحدد function() guiSetVisible(Window,not guiGetVisible(Window))--اظهار اللوحة showCursor(guiGetVisible(Window)) --اظهار الماوس end) addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة if (source ==Close1) then --يتحقق من اسم الزر guiSetVisible(Window,false) -- اغلاق اللوحة showCursor(false) --اخفاء الماوس end end) addEventHandler("onClientGUIClick",root, function() if ( source == Copy ) then local text = guiGetText ( GUIEditor.label[6] ) setClipboard( text ) end end ) -- addEventHandler("onClientGUIClick",root, function () if source == Filmey then if ( guiGetVisible(Help_Wnd) == false ) then guiSetVisible(Window,false) showCursor(false) guiSetInputEnabled(false) end guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor.window[1])) end end ) -- addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة if (source ==Close2) then --يتحقق من اسم الزر guiSetVisible(GUIEditor.window[1],false) -- اغلاق اللوحة showCursor(false) --اخفاء الماوس guiSetInputEnabled(false) end end)
  4. -ر- اخوي الاكواد فنكشنات اضغط علي كل فنكشن فيهم وافهم شرحه وجرب تسوي مو تبي جاهز
  5. تنفع طريقة الاخ وايفاي او تقدر تسويها ب createTeam setPlayerTeam
  6. اخوي انا حاططلك Client و Server قدام الاكواد وش اسويلك ثاني ؟ حاول وبساعدك اخوي ولو ما عرفت عطني محاولتك وبساعدك اخوي
  7. الي فوق شغال هذا تخبيص
  8. تعديل بسيط function ref () guiComboBoxClear ( PlayerComboBox ) for i, p in ipairs ( getElementsByType ( "player" ) ) do guiComboBoxAddItem ( PlayerComboBox , getPlayerName ( p ) ) end end ref () addEventHandler("onClientPlayerJoin", getRootElement(), ref) addEventHandler("onClientResourceStart", getRootElement(), ref) addEventHandler( "onClientPlayerQuit", getRootElement(), ref) addEventHandler("onClientPlayerChangeNick", getRootElement(), ref)
  9. بسم الله الرحمن الرحيم اليوم جايبلكم شرح وظيفة playSound Client Only طبعا الوظيفة Syntax الحين نيجي لل element playSound ( string soundPath, [ bool looped = false ] ) string soundPath = تضيف سترينج وتقدر تضيف الاغنية عن طريق لينك او من عندك bool looped = ما بتنعاد مرة اخري بس تخلص false بتنعاد لما تخلص الاغنية كذا مرة انما لو خليتها true لو خليتها ------ مثال 1 <meta> <script src="c.lua" type="client" cache="false" /> <file src="music.mp3" /> </meta> هيك تضيف الاغنية بلميتا addEventHandler( 'onClientResourceStart', resourceRoot, function( ) local Sound = playSound("music.mp3", true) end) مشان اول م الاغنية تخلص تنعاد مرة اخري true هنا خلينا اول ما المود يشتغل تشتغل الاغنية وحطينا ------ مثال 2 local screenW, screenH = guiGetScreenSize() window = guiCreateWindow((screenW - 467) / 2, (screenH - 216) / 2, 467, 216, "Sound Test | by #Himoo", false) guiWindowSetSizable(window, false) guiSetVisible(window, false) link = guiCreateEdit(10, 50, 447, 43, "", false, window) label1 = guiCreateLabel(11, 25, 120, 15, "Link :", false, window) guiSetFont(label1, "default-bold-small") play = guiCreateButton(14, 108, 156, 36, "تشغيل", false, window) stop = guiCreateButton(14, 154, 156, 36, "اطفاء", false, window) Close = guiCreateButton(301, 154, 156, 36, "اغلاق", false, window) bindKey("F3","down", function() getVisible = guiGetVisible (window) if (getVisible == true) then guiSetVisible (window, false) showCursor (false) guiSetInputEnabled(false) end if (getVisible == false) then showCursor (true) guiSetVisible(window, true) guiSetInputEnabled( true ) end end) addEventHandler("onClientGUIClick",root, function() if ( source == play ) then l = guiGetText(link) sound = playSound(l, true) outputChatBox("تم تشغيل موسيقي",255,255,0,true) elseif ( source == stop ) then if ( isElement(sound) ) then stopSound(sound) end outputChatBox("تم اطفاء الموسيقي",255,255,0,true) elseif ( source == Close ) then guiSetVisible(window, false) showCursor( false ) guiSetInputEnabled( false ) end end) خلينا لوحة تفتح من اف 3 وتحط لينك جوا ايديت وتضغط زر تشغيل الاغاني وتشتغلك عن طريق اللينك وتطفيها من زر اطفاء --- وهنا وصلنا لنهاية الشرح اتمني يكون اعجبكم ويلا مع السلامة
  10. --Server addCommandHandler getAccountName isObjectInACLGroup triggerClientEvent --Client addEvent addEventHandler guiSetVisible showCursor guiSetInputEnabled ما يحتاج triggerServerEvent بس يسوي الكوماند بل سيرفر
  11. اخوي حاول وخله يساعدك مو جاهز + هو شرحلك كيف فوق
  12. لا تقدر تسويهم ف الجيو ايديتور او عن طريق ضرب الاحداثيات مثل ما قال الاخ بروس
×
×
  • Create New...