Jump to content

xBeSoOo_

Members
  • Posts

    83
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by xBeSoOo_

  1. GUIEditor.window[1] = guiCreateWindow(365, 108, 571, 518, "SupportChat", false)
            guiWindowSetSizable(GUIEditor.window[1], false)
            guiSetVisible(GUIEditor.window[1], false)
    
            GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 553, 416, false, GUIEditor.window[1])
            guiGridListAddColumn(GUIEditor.gridlist[1], "الرسالة", 0.9)
            GUIEditor.edit[1] = guiCreateEdit(9, 438, 462, 21, "", false, GUIEditor.window[1])
            GUIEditor.button[1] = guiCreateButton(471, 438, 91, 21, "إرسال", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
            GUIEditor.button[3] = guiCreateButton(471, 490, 91, 19, "إغلاق", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
            GUIEditor.checkbox[2] = guiCreateCheckBox(11, 462, 134, 22, "أنا مساعد", true, false, GUIEditor.window[1])--149, 462, 80, 22,
            GUIEditor.label[1] = guiCreateLabel(237, 493, 94, 15, "By: KonaaaN200", false, GUIEditor.window[1])
            guiLabelSetColor(GUIEditor.label[1], 231, 233, 21)
            GUIEditor.button[4] = guiCreateButton(11, 490, 91, 18, "إسكات", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFD0000")
            GUIEditor.button[5] = guiCreateButton(107, 490, 91, 18, "فك الإسكات", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF4EFE00")
            --GUIEditor.checkbox[3] = guiCreateCheckBox(229, 462, 80, 22, "غير مساعد", false, false, GUIEditor.window[1])    
    
    
            GUIEditor.window[2] = guiCreateWindow(555, 187, 200, 302, "لوحة الميوت", false)
            guiWindowSetSizable(GUIEditor.window[2], false)
            guiSetVisible(GUIEditor.window[2], false)
    
            GUIEditor.combobox[1] = guiCreateComboBox(9, 22, 69, 217, "240", false, GUIEditor.window[2])
            guiComboBoxAddItem(GUIEditor.combobox[1], "1200")
            guiComboBoxAddItem(GUIEditor.combobox[1], "1200")
            guiComboBoxAddItem(GUIEditor.combobox[1], "600")
            guiComboBoxAddItem(GUIEditor.combobox[1], "600")
            guiComboBoxAddItem(GUIEditor.combobox[1], "240")
            guiComboBoxAddItem(GUIEditor.combobox[1], "240")
            guiComboBoxAddItem(GUIEditor.combobox[1], "120")
            guiComboBoxAddItem(GUIEditor.combobox[1], "120")
            guiComboBoxAddItem(GUIEditor.combobox[1], "60")
            guiComboBoxAddItem(GUIEditor.combobox[1], "30")
            guiComboBoxAddItem(GUIEditor.combobox[1], "30")
            guiComboBoxAddItem(GUIEditor.combobox[1], "15")
            guiComboBoxAddItem(GUIEditor.combobox[1], "1")
            GUIEditor.label[2] = guiCreateLabel(78, 43, 117, 23, "نشر متعمد________", false, GUIEditor.window[2])
            GUIEditor.label[3] = guiCreateLabel(78, 56, 117, 23, "سب+18__________", false, GUIEditor.window[2])
            GUIEditor.label[4] = guiCreateLabel(78, 69, 117, 23, "تخريب متعمد_______", false, GUIEditor.window[2])
            GUIEditor.label[5] = guiCreateLabel(78, 82, 117, 23, "نشر غير متعمد_____", false, GUIEditor.window[2])
            GUIEditor.label[6] = guiCreateLabel(78, 95, 117, 23, "سب خفيف________", false, GUIEditor.window[2])
            GUIEditor.label[7] = guiCreateLabel(78, 115, 117, 23, "تخريب غير متعمد____", false, GUIEditor.window[2])
            GUIEditor.label[8] = guiCreateLabel(78, 128, 117, 23, "إستهبال__________", false, GUIEditor.window[2])
            GUIEditor.label[9] = guiCreateLabel(78, 141, 117, 23, "السواليف__________", false, GUIEditor.window[2])
            GUIEditor.label[10] = guiCreateLabel(78, 154, 117, 23, "المساعدة الخاطئة___", false, GUIEditor.window[2])
            GUIEditor.label[11] = guiCreateLabel(78, 170, 117, 23, "طلب إنضمام+فلوس__", false, GUIEditor.window[2])
            GUIEditor.label[12] = guiCreateLabel(78, 183, 117, 23, "تكرار السؤال_______", false, GUIEditor.window[2])
            GUIEditor.label[13] = guiCreateLabel(78, 196, 117, 23, "النداء___________", false, GUIEditor.window[2])
            GUIEditor.label[14] = guiCreateLabel(78, 206, 117, 23, "تنبيه المستجد_____", false, GUIEditor.window[2])
            guiLabelSetVerticalAlign(GUIEditor.label[14], "center")
            GUIEditor.button[6] = guiCreateButton(115, 274, 76, 19, "إغلاق", false, GUIEditor.window[2])
            guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA")
            GUIEditor.button[7] = guiCreateButton(9, 274, 76, 19, "إسكات", false, GUIEditor.window[2])
            guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFFD0000")
    
    addEventHandler("onClientGUIClick",GUIEditor.button[8],
    function()
    	local sel_g = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
    	local sel_c = guiComboBoxGetSelected(GUIEditor.combobox[1])
        if sel_g ~= -1 and sel_c ~= -1 then
        	local theName = guiGridListGetItemText(GUIEditor.gridlist[1] ,sel_g,1)
    		local time = tonumber(guiComboBoxGetItemText(GUIEditor.combobox[1],sel_c))
    		local unmuteTimer =  (time * 60) * 1000
        	triggerServerEvent("MUTE",localPlayer,theName,unmuteTimer)
        end
    end)
    
    addEventHandler("onClientGUIClick",GUIEditor.button[1],
    function ()
    	if getElementData(localPlayer,"MUTED") then
    		outputChatBox ("You are muted.",255,5,5) 
    	end
    end)
        
    
     
    
     
    
    --server
    
    local muted_players = {}
    
    addEvent ("MUTE",true)
    addEventHandler("MUTE",root,
    function(name,time)
    	local plr = getPlayerFromName(name)
        if not isTimer (muted_players[plr]) and not getElementData(plr,"MUTED") then
    		setElementData(plr,"MUTED",true)
    		muted_players[plr] = setTimer (
    		function ()
    			muted_players[plr] = nil
    			removeElementData(plr,"MUTED")
    			outputChatBox ("UNMUTED SUCCESSFUL",plr,5,255,5)
    		end,time,1,plr,muted_players)
        else
    		outputChatBox(""..name.." is already muted.",source,255,5,5)
        end
    end)

     

  2. GUIEditor.window[1] = guiCreateWindow(365, 108, 571, 518, "SupportChat", false)
            guiWindowSetSizable(GUIEditor.window[1], false)
            guiSetVisible(GUIEditor.window[1], false)
    
            GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 553, 416, false, GUIEditor.window[1])
            guiGridListAddColumn(GUIEditor.gridlist[1], "الرسالة", 0.9)
            GUIEditor.edit[1] = guiCreateEdit(9, 438, 462, 21, "", false, GUIEditor.window[1])
            GUIEditor.button[1] = guiCreateButton(471, 438, 91, 21, "إرسال", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
            GUIEditor.button[3] = guiCreateButton(471, 490, 91, 19, "إغلاق", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
            GUIEditor.checkbox[2] = guiCreateCheckBox(11, 462, 134, 22, "أنا مساعد", true, false, GUIEditor.window[1])--149, 462, 80, 22,
            GUIEditor.label[1] = guiCreateLabel(237, 493, 94, 15, "By: KonaaaN200", false, GUIEditor.window[1])
            guiLabelSetColor(GUIEditor.label[1], 231, 233, 21)
            GUIEditor.button[4] = guiCreateButton(11, 490, 91, 18, "إسكات", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFD0000")
            GUIEditor.button[5] = guiCreateButton(107, 490, 91, 18, "فك الإسكات", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF4EFE00")
            --GUIEditor.checkbox[3] = guiCreateCheckBox(229, 462, 80, 22, "غير مساعد", false, false, GUIEditor.window[1])    
    
    
            GUIEditor.window[2] = guiCreateWindow(555, 187, 200, 302, "لوحة الميوت", false)
            guiWindowSetSizable(GUIEditor.window[2], false)
            guiSetVisible(GUIEditor.window[2], false)
    
            GUIEditor.combobox[1] = guiCreateComboBox(9, 22, 69, 217, "240", false, GUIEditor.window[2])
            guiComboBoxAddItem(GUIEditor.combobox[1], "1200")
            guiComboBoxAddItem(GUIEditor.combobox[1], "1200")
            guiComboBoxAddItem(GUIEditor.combobox[1], "600")
            guiComboBoxAddItem(GUIEditor.combobox[1], "600")
            guiComboBoxAddItem(GUIEditor.combobox[1], "240")
            guiComboBoxAddItem(GUIEditor.combobox[1], "240")
            guiComboBoxAddItem(GUIEditor.combobox[1], "120")
            guiComboBoxAddItem(GUIEditor.combobox[1], "120")
            guiComboBoxAddItem(GUIEditor.combobox[1], "60")
            guiComboBoxAddItem(GUIEditor.combobox[1], "30")
            guiComboBoxAddItem(GUIEditor.combobox[1], "30")
            guiComboBoxAddItem(GUIEditor.combobox[1], "15")
            guiComboBoxAddItem(GUIEditor.combobox[1], "1")
            GUIEditor.label[2] = guiCreateLabel(78, 43, 117, 23, "نشر متعمد________", false, GUIEditor.window[2])
            GUIEditor.label[3] = guiCreateLabel(78, 56, 117, 23, "سب+18__________", false, GUIEditor.window[2])
            GUIEditor.label[4] = guiCreateLabel(78, 69, 117, 23, "تخريب متعمد_______", false, GUIEditor.window[2])
            GUIEditor.label[5] = guiCreateLabel(78, 82, 117, 23, "نشر غير متعمد_____", false, GUIEditor.window[2])
            GUIEditor.label[6] = guiCreateLabel(78, 95, 117, 23, "سب خفيف________", false, GUIEditor.window[2])
            GUIEditor.label[7] = guiCreateLabel(78, 115, 117, 23, "تخريب غير متعمد____", false, GUIEditor.window[2])
            GUIEditor.label[8] = guiCreateLabel(78, 128, 117, 23, "إستهبال__________", false, GUIEditor.window[2])
            GUIEditor.label[9] = guiCreateLabel(78, 141, 117, 23, "السواليف__________", false, GUIEditor.window[2])
            GUIEditor.label[10] = guiCreateLabel(78, 154, 117, 23, "المساعدة الخاطئة___", false, GUIEditor.window[2])
            GUIEditor.label[11] = guiCreateLabel(78, 170, 117, 23, "طلب إنضمام+فلوس__", false, GUIEditor.window[2])
            GUIEditor.label[12] = guiCreateLabel(78, 183, 117, 23, "تكرار السؤال_______", false, GUIEditor.window[2])
            GUIEditor.label[13] = guiCreateLabel(78, 196, 117, 23, "النداء___________", false, GUIEditor.window[2])
            GUIEditor.label[14] = guiCreateLabel(78, 206, 117, 23, "تنبيه المستجد_____", false, GUIEditor.window[2])
            guiLabelSetVerticalAlign(GUIEditor.label[14], "center")
            GUIEditor.button[6] = guiCreateButton(115, 274, 76, 19, "إغلاق", false, GUIEditor.window[2])
            guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA")
            GUIEditor.button[7] = guiCreateButton(9, 274, 76, 19, "إسكات", false, GUIEditor.window[2])
            guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFFD0000")
    
    addEventHandler("onClientGUIClick",GUIEditor.button[8],
    function()
    	local sel_g = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
    	local sel_c = guiComboBoxGetSelected(GUIEditor.combobox[1])
        if sel_g ~= -1 and sel_c ~= -1 then
        	local theName = guiGridListGetItemText(GUIEditor.gridlist[1] ,sel_g,1)
        	local thePlr = getPlayerFromName (theName)
    		local time = tonumber(guiComboBoxGetItemText(GUIEditor.combobox[1],sel_c))
    		local unmuteTimer =  (time * 60) * 1000
        	triggerServerEvent("MUTE",localPlayer,thePlr,theName,unmuteTimer)
        end
    end)
    
    addEventHandler("onClientGUIClick",GUIEditor.button[1],
    function ()
    	if getElementData(localPlayer,"MUTED") then
    		outputChatBox ("You are muted.",255,5,5) 
    	end
    end)
        
    
     
    
     
    
    --server
    
    local muted_players = {}
    
    addEvent ("MUTE",true)
    addEventHandler("MUTE",root,
    function(plr,name,time)
        if not isTimer (muted_players[plr]) and not getElementData(plr,"MUTED") then
    		setElementData(plr,"MUTED",true)
    		muted_players[plr] = setTimer (
    		function ()
    			muted_players[plr] = nil
    			removeElementData(plr,"MUTED")
    			outputChatBox ("UNMUTED SUCCESSFUL",plr,5,255,5)
    		end,time,1,plr,muted_players)
        else
    		outputChatBox(""..name.." is already muted.",source,255,5,5)
        end
    end)

     

  3. GUIEditor.window[1] = guiCreateWindow(365, 108, 571, 518, "SupportChat", false)
            guiWindowSetSizable(GUIEditor.window[1], false)
            guiSetVisible(GUIEditor.window[1], false)
    
            GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 553, 416, false, GUIEditor.window[1])
            guiGridListAddColumn(GUIEditor.gridlist[1], "الرسالة", 0.9)
            GUIEditor.edit[1] = guiCreateEdit(9, 438, 462, 21, "", false, GUIEditor.window[1])
            GUIEditor.button[1] = guiCreateButton(471, 438, 91, 21, "إرسال", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
            GUIEditor.button[3] = guiCreateButton(471, 490, 91, 19, "إغلاق", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
            GUIEditor.checkbox[2] = guiCreateCheckBox(11, 462, 134, 22, "أنا مساعد", true, false, GUIEditor.window[1])--149, 462, 80, 22,
            GUIEditor.label[1] = guiCreateLabel(237, 493, 94, 15, "By: KonaaaN200", false, GUIEditor.window[1])
            guiLabelSetColor(GUIEditor.label[1], 231, 233, 21)
            GUIEditor.button[4] = guiCreateButton(11, 490, 91, 18, "إسكات", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFD0000")
            GUIEditor.button[5] = guiCreateButton(107, 490, 91, 18, "فك الإسكات", false, GUIEditor.window[1])
            guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF4EFE00")
            --GUIEditor.checkbox[3] = guiCreateCheckBox(229, 462, 80, 22, "غير مساعد", false, false, GUIEditor.window[1])    
    
    
            GUIEditor.window[2] = guiCreateWindow(555, 187, 200, 302, "لوحة الميوت", false)
            guiWindowSetSizable(GUIEditor.window[2], false)
            guiSetVisible(GUIEditor.window[2], false)
    
            GUIEditor.combobox[1] = guiCreateComboBox(9, 22, 69, 217, "240", false, GUIEditor.window[2])
            guiComboBoxAddItem(GUIEditor.combobox[1], "1200")
            guiComboBoxAddItem(GUIEditor.combobox[1], "1200")
            guiComboBoxAddItem(GUIEditor.combobox[1], "600")
            guiComboBoxAddItem(GUIEditor.combobox[1], "600")
            guiComboBoxAddItem(GUIEditor.combobox[1], "240")
            guiComboBoxAddItem(GUIEditor.combobox[1], "240")
            guiComboBoxAddItem(GUIEditor.combobox[1], "120")
            guiComboBoxAddItem(GUIEditor.combobox[1], "120")
            guiComboBoxAddItem(GUIEditor.combobox[1], "60")
            guiComboBoxAddItem(GUIEditor.combobox[1], "30")
            guiComboBoxAddItem(GUIEditor.combobox[1], "30")
            guiComboBoxAddItem(GUIEditor.combobox[1], "15")
            guiComboBoxAddItem(GUIEditor.combobox[1], "1")
            GUIEditor.label[2] = guiCreateLabel(78, 43, 117, 23, "نشر متعمد________", false, GUIEditor.window[2])
            GUIEditor.label[3] = guiCreateLabel(78, 56, 117, 23, "سب+18__________", false, GUIEditor.window[2])
            GUIEditor.label[4] = guiCreateLabel(78, 69, 117, 23, "تخريب متعمد_______", false, GUIEditor.window[2])
            GUIEditor.label[5] = guiCreateLabel(78, 82, 117, 23, "نشر غير متعمد_____", false, GUIEditor.window[2])
            GUIEditor.label[6] = guiCreateLabel(78, 95, 117, 23, "سب خفيف________", false, GUIEditor.window[2])
            GUIEditor.label[7] = guiCreateLabel(78, 115, 117, 23, "تخريب غير متعمد____", false, GUIEditor.window[2])
            GUIEditor.label[8] = guiCreateLabel(78, 128, 117, 23, "إستهبال__________", false, GUIEditor.window[2])
            GUIEditor.label[9] = guiCreateLabel(78, 141, 117, 23, "السواليف__________", false, GUIEditor.window[2])
            GUIEditor.label[10] = guiCreateLabel(78, 154, 117, 23, "المساعدة الخاطئة___", false, GUIEditor.window[2])
            GUIEditor.label[11] = guiCreateLabel(78, 170, 117, 23, "طلب إنضمام+فلوس__", false, GUIEditor.window[2])
            GUIEditor.label[12] = guiCreateLabel(78, 183, 117, 23, "تكرار السؤال_______", false, GUIEditor.window[2])
            GUIEditor.label[13] = guiCreateLabel(78, 196, 117, 23, "النداء___________", false, GUIEditor.window[2])
            GUIEditor.label[14] = guiCreateLabel(78, 206, 117, 23, "تنبيه المستجد_____", false, GUIEditor.window[2])
            guiLabelSetVerticalAlign(GUIEditor.label[14], "center")
            GUIEditor.button[6] = guiCreateButton(115, 274, 76, 19, "إغلاق", false, GUIEditor.window[2])
            guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA")
            GUIEditor.button[7] = guiCreateButton(9, 274, 76, 19, "إسكات", false, GUIEditor.window[2])
            guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFFD0000")
    
    addEventHandler("onClientGUIClick",GUIEditor.button[8],
    function()
    	local sel_g = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
    	local sel_c = guiComboBoxGetSelected(GUIEditor.combobox[1])
        if sel_g ~= -1 and sel_c ~= -1 then
        	local theName = guiGridListGetItemText(GUIEditor.gridlist[1] ,sel_g,1)
        	local thePlr = getPlayerFromName (theName)
    		local unmuteTimer = ( (tonumber(guiComboBoxGetItemText(GUIEditor.combobox[1],sel_c)) * 60) * 1000) )
        	triggerServerEvent("MUTE",localPlayer,thePlr,theName,unmuteTimer)
        end
    end)
        
    addEventHandler("onClientGUIClick",GUIEditor.button[1],
    function ()
    	if getElementData(localPlayer,"MUTED") then
    		outputChatBox ("You are muted.",255,5,5) 
    	end
    end)
        
    
     
    
     
    
    --server
    
    local muted_players = {}
    
    addEvent ("MUTE",true)
    addEventHandler("MUTE",root,
    function(plr,name,time)
        if not isTimer (muted_players[plr]) and not getElementData(plr,"MUTED") then
    		setElementData(plr,"MUTED",true)
    		muted_players[plr] = setTimer (
    		function ()
    			muted_players[plr] = nil
    			removeElementData(plr,"MUTED")
    			outputChatBox ("UNMUTED SUCCESSFUL",plr,5,255,5)
    		end,time,1,plr,muted_players)
        else
    		outputChatBox(""..name.." is already muted.",source,255,5,5)
        end
    end)

    لو تبي تحط كود حطه مثل كذا ما تحطه كتابة عادية

    + وانت تكتب الكود استخدم tab عشان يصير كودك قابل للقرائة

    و ارجع شوف الشروحات  حقت return عشان تقدر تستخدمها بطريقة صحيحة

     

  4. table
    loops
    "onClientGUIClick"
    triggerServerEvent
    triggerClientEvent
    guiGridListAddRow
    guiGridListGetSelectedItem
    (guiGridListGetItemText and getPlayerFromName) or (guiGridListSetItemData and guiGridListGetItemData)
    "onPlayerJoin"
    "onPlayerQuit"
    setTimer
    getTimerDetails

    ذول يمكن 70% من الفنكشنات و الايفنتات الي بتحتاجها

    بس اضن انه بيكون صعب عليك انصحك لو تسوي الاول مودات اسهل تاخذ خبرة وتتعلم الجداول وتتقنها 

  5. 12 hours ago, -Ilker. said:

    استخدم حدث onClientSoundStopped

    بدل التايمر

     

    7 hours ago, #\_oskar_/# said:

    onClientSoundStream استخدم دا كمان عشان لو الاغنيه بتحمل يعرفك انها بتحمل او اذا فيها مشكله او الرابط خربان 

    ويجيب لك طول مدة الاغنيه يعني ممكن يفيدك 

     

    مشكورين شباب ما دريت عن الايڤنتات ذي 

    والله الواحد يستفيد حتي وهو يحاول يساعد ?❤️

  6. 59 minutes ago, RocKyz said:

    الخطأ غالبا بسبب انك مررت الأرقمنتات في التايمر اخر سطر

    حرفيا سويت كل شئ شلت الارقمنتات من التايمر ورجعت خليت التايمر بوقت وشيلت التايمر

    ودايم يجيب ذا الخطئ  في الدي بج

    client.Lua:10:Bad 'sound/player' pointer @ 'getSoundLenth'(1)
    client.Lua:10:Bad 'sound/player' pointer @ 'getSoundPosition'(1)

    لي ساعتين اجرب فيه شئ اكيد انا ما اعرفه

    • Thanks 1
  7. 2 minutes ago, MMZ said:

    نفس المشكل سويته كذا و شتغلت الأغنيه الأولى فقط 

    
    local sounds = {
    --[["sound download link"]]
    'https://g.top4top.io/m_1598i8jrg1.mp3',
    'https://a.top4top.io/m_1592i0ypt1.mp3',
    }
    
    local song_N = 1
    
    function isSoundFinished(theSound)
        return ( getSoundPosition(theSound) == getSoundLength(theSound) )
    end
    
    function onResourceStart()
        sound = playSound3D(sounds[1], 144.89999, -1939.3, 3.5) 
      	setElementDimension(sound,0)
      	setSoundMaxDistance(sound, 100)
    end
    addEventHandler("onClientResourceStart", resourceRoot, onResourceStart)
    
    addCommandHandler("sound", function ()
        if isElement(sound) then
            destroyElement(sound)
    		outputChatBox("تم اقاف الأغاني")
        end
    end)
    
    function next_s(song_N,sound)
    	if isSoundFinished(sound) and isElement(sound) then
    		if song_N ~= #sounds then
    			song_N = song_N +1
    			sound = playSound3D(sounds[song_N], 144.89999, -1939.3, 3.5) 
    		else
    			song_N = 1
    			sound = playSound3D(sounds[song_N], 144.89999, -1939.3, 3.5)
    		end
    	end
    end
    setTimer(next_s,3000,0,song_N,sound)
    

     

    لحظة بجرب انا

  8. كان فيه شي انا كاتبه غلط , نأسف علي الحشيش

    local sounds = {
    --[["sound download link"]]
    'https://g.top4top.io/m_1598i8jrg1.mp3',
    'https://a.top4top.io/m_1592i0ypt1.mp3',
    }
    
    local song_N = 1
    
    function onResourceStart()
        sound = playSound3D(sounds[1], 144.89999, -1939.3, 3.5)
    	timerLen = 1000*getSoundLength(sound)
      	setElementDimension(sound,0)
      	setSoundMaxDistance(sound, 100)
    end
    addEventHandler("onClientResourceStart", resourceRoot, onResourceStart)
    
    addCommandHandler("sound", function ()
        if isElement(sound) then
            destroyElement(sound)
    		outputChatBox("تم اقاف الأغاني")
        end
    end)
    
    function next_s(song_N,sound,timerLen)
    	if isElement(sound) then
    		if song_N ~= #sounds then
    			song_N = song_N +1
    			sound = playSound3D(sounds[song_N], 144.89999, -1939.3, 3.5)
    			timerLen = 1000*getSoundLength(sound)
    		else
    			song_N = 1
    			sound = playSound3D(sounds[song_N], 144.89999, -1939.3, 3.5)
    			timerLen = 1000*getSoundLength(sound)
    		end
    	end
    end
    setTimer(next_s,timerLen,0,song_N,sound,timerLen)

     

  9. 11 minutes ago, Abdul KariM said:

    أفضل شي يكون التايمر بطول الصوت الي بيشغله

    أحسن من أنه يتأكد من وجود صوت كل ٣ ثواني

    local sounds = {
    --[["sound download link"]]
    'https://g.top4top.io/m_1598i8jrg1.mp3',
    }
    
    local song_N = 1
    
    function onResourceStart()
        sound = playSound3D(sounds[1], 144.89999, -1939.3, 3.5)
    	timerLen = 1000*getSoundLength(sound)
      	setElementDimension(sound,0)
      	setSoundMaxDistance(sound, 100)
    end
    addEventHandler("onClientResourceStart", resourceRoot, onResourceStart)
    
    addCommandHandler("sound", function ()
        if isElement(sound) then
            destroyElement(sound)
    		outputChatBox("تم اقاف الأغاني")
        end
    end)
    
    function next_s(song_N,sound,timerLen)
    	if isElement(sound) then
    		if song_N ~= #song then
    			song_N = song_N +1
    			sound = playSound3D(sounds[song_N], 144.89999, -1939.3, 3.5)
    			timerLen = 1000*getSoundLength(sound)
    		else
    			song_N = 1
    			sound = playSound3D(sounds[song_N], 144.89999, -1939.3, 3.5)
    			timerLen = 1000*getSoundLength(sound)
    		end
    	end
    end
    setTimer(next_s,timerLen,0,song_N,sound,timerLen)

    من عيوني ??❤️

  10. local sounds = {
    --[["sound download link"]]
    'https://g.top4top.io/m_1598i8jrg1.mp3',
    }
    
    local song_N = 1
    
    function isSoundFinished(theSound)
        return ( getSoundPosition(theSound) == getSoundLength(theSound) )
    end
    
    function onResourceStart()
        sound = playSound3D(sounds[1], 144.89999, -1939.3, 3.5) 
      	setElementDimension(sound,0)
      	setSoundMaxDistance(sound, 100)
    end
    addEventHandler("onClientResourceStart", resourceRoot, onResourceStart)
    
    addCommandHandler("sound", function ()
        if isElement(sound) then
            destroyElement(sound)
    		outputChatBox("تم اقاف الأغاني")
        end
    end)
    
    function next_s(song_N,sound)
    	if isSoundFinished(sound) and isElement(sound) then
    		if song_N ~= #sounds then
    			song_N = song_N +1
    			sound = playSound3D(sounds[song_N], 144.89999, -1939.3, 3.5) 
    		else
    			song_N = 1
    			sound = playSound3D(sounds[song_N], 144.89999, -1939.3, 3.5)
    		end
    	end
    end
    setTimer(next_s,3000,0,song_N,sound)

    جرب و قولي لاني ما جربت

  11. 21 minutes ago, ALIBFG said:

    function openwin()
        if source == هنا تكتب قيمه الرقم اللى تريده يضغط عليه then 
        outputChatBox("هنا تكتب الكلام اللى تريده يطلع بالشات",thePlayer)
        end
    end 

    تفضل اخى

    function openwin()
        if source == --[[هنا تكتب قيمه الرقم اللى تريده يضغط عليه]] then 
        	outputChatBox("هنا تكتب الكلام اللى تريده يطلع بالشات")
        end
    end 
    addEventHandler("onClientGUIClick",root,openwin)

     

  12. 1 hour ago, #\_oskar_/# said:

    بعد مايخلص الحركه الاعب بيضل واقف مسوي له فريز ولازم تقفز بالشخصيه عشان يفك الفريز

    تقدر بعد مايخلص الحركه يفكه تلقائي  كدا 

    
    setPedAnimation (localPlayer, "BOMBER", "BOM_Plant", -1,false, nil, nil, false )
    

     

    والله ما أخذت بالي من ذا ال?

    Argument

  13. 55 minutes ago, RRex said:
    
    bindKey("1","down",function()
    setPedAnimation(localPlayer, "BOMBER", "BOM_Plant")
    setTimer(function ( )
    	setPedAnimation(localPlayer, nil)
    end,3000,1)
    end)
    

     

    ترا تنفع بدون تايمر كذا

    bindKey("1","down",function() setPedAnimation(localPlayer, "BOMBER", "BOM_Plant",-1,false)
     end)

     

    • Thanks 1
×
×
  • Create New...