Jump to content

طلب فنكشن


Recommended Posts

Posted
السلام عليكم

ابي فنكشن امسك السلاح بيد واحدة

+

فنكشن

لو واحد حط رابط غنيه بتيكست تبدا الغنيه

وشكرا يا ريت لو رد سريعع مستعجل بسيرفر لمعي اجهز موداته

playSound 

حط رابط مباشر لملف الصوت

 

 

Posted
السلام عليكم

ابي فنكشن امسك السلاح بيد واحدة

+

فنكشن

لو واحد حط رابط غنيه بتيكست تبدا الغنيه

وشكرا يا ريت لو رد سريعع مستعجل بسيرفر لمعي اجهز موداته

playSound 

حط رابط مباشر لملف الصوت

+

isElement 

لو كان الصوت شغال وماتبي توقفه سوي

return end

ولو كان الصوت شغال وتبي تحذفه وتبدا من جديد

تستخدم

stopSound 

او

destroyElement 

مع

isElement 

+ مايحتاج يحط رابط لملف الصوت

هو يختار الي يبيه

[ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة

https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني

Posted

عملت الكود بس ما اشتغل ما عرفت شو المشكله

addEventHandler ( "onClientGUIClick", root, 
function (  ) 
  if source == ok then 
   local aa = guiGetText(song) 
   playSound(tostring(aa)) 
        end 
  end 
) 

وحطات اغنيه مباشره ودي بق ما يطلع شيئ

~ Soon - ~ قريبا

n-560x95_B6BF07_FFFFFF_0E6B20_000000.png

Posted
عملت الكود بس ما اشتغل ما عرفت شو المشكله
addEventHandler ( "onClientGUIClick", root, 
function (  ) 
  if source == ok then 
   local aa = guiGetText(song) 
   playSound(tostring(aa)) 
        end 
  end 
) 

وحطات اغنيه مباشره ودي بق ما يطلع شيئ

لو تبيه اذا ضغط الزر والصوت شغال يوقفه ويبدا من جديد

addEventHandler ( "onClientGUIClick", root, 
  
    function (  ) 
  
    if source == ok then 
   
    if Sound and isElement ( Sound ) then destroyElement ( Sound )  end 
     
    end 
     
    aa = guiGetText ( song ) 
     
    Sound = playSound ( aa ) 
     
  end 
        ); 
     

لو تبيه لو كان الصوت شغال وضغط الزر مايصير شي لين مايتنهي الصوت الموجود

addEventHandler ( "onClientGUIClick", root, 
  
    function (  ) 
  
    if source == ok then 
   
    if Sound and isElement ( Sound ) then return end 
  
    end 
  
    aa = guiGetText ( song ) 
     
    Sound = playSound ( aa ) 
     
  end 
            ); 
  

ملاحظة : ابري ذمتي من الي يشتغل اغاني وبما يخالف الشريعة الاسلامية

بالتوفيق

[ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة

https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني

Posted
عملت الكود بس ما اشتغل ما عرفت شو المشكله
addEventHandler ( "onClientGUIClick", root, 
function (  ) 
  if source == ok then 
   local aa = guiGetText(song) 
   playSound(tostring(aa)) 
        end 
  end 
) 

وحطات اغنيه مباشره ودي بق ما يطلع شيئ

لو تبيه اذا ضغط الزر والصوت شغال يوقفه ويبدا من جديد

addEventHandler ( "onClientGUIClick", root, 
  
    function (  ) 
  
    if source == ok then 
   
    if Sound and isElement ( Sound ) then destroyElement ( Sound )  end 
     
    end 
     
    aa = guiGetText ( song ) 
     
    Sound = playSound ( aa ) 
     
  end 
        ); 
     

لو تبيه لو كان الصوت شغال وضغط الزر مايصير شي لين مايتنهي الصوت الموجود

addEventHandler ( "onClientGUIClick", root, 
  
    function (  ) 
  
    if source == ok then 
   
    if Sound and isElement ( Sound ) then return end 
  
    end 
  
    aa = guiGetText ( song ) 
     
    Sound = playSound ( aa ) 
     
  end 
            ); 
  

ملاحظة : ابري ذمتي من الي يشتغل اغاني وبما يخالف الشريعة الاسلامية

بالتوفيق

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

~ Soon - ~ قريبا

n-560x95_B6BF07_FFFFFF_0E6B20_000000.png

Posted

^

addEventHandler ( "onClientGUIClick", root, 
  
    function (  ) 
  
    if source == ok then 
   
    if Sound and isElement ( Sound ) then return end 
     
    aa = guiGetText ( song ) 
     
    Sound = playSound ( aa ) 
     
    end 
     
    if source == Stop then 
     
    if Sound and isElement ( Sound ) then destroyElement ( Sound ) end 
  
    end 
     
  end 
        ); 
         

Stop بدل

بأسم الزر الي تبيه يوقف الصوت

وارجع واقول ابري ذمتي من الي يشتغل اغاني او يخالف الشريعة الاسلامية

بالتوفيق

[ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة

https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني

Posted

انا ماني فاهم وش تبي تسوي

بس جرب

addEventHandler('onClientGUIClick',resourceRoot, function (     ) 
if ( source == ok ) then  
local Url = guiGetText ( song )  
if ( Url ~= '' and Url:find('mp3') ) then  
if ( isElement ( Music ) ) then return outputChatBox('Please Wait..',255,255,0,true) end 
Music = playSound ( Url ) 
end 
elseif ( source == ssong ) then  
if ( isElement ( Music ) ) then destroyElement ( Music ) end 
end 
end) 
  

Dis ; AF.#0941

Posted
انا ماني فاهم وش تبي تسوي

بس جرب

addEventHandler('onClientGUIClick',resourceRoot, function (     ) 
if ( source == ok ) then  
local Url = guiGetText ( song )  
if ( Url ~= '' and Url:find('mp3') ) then  
if ( isElement ( Music ) ) then return outputChatBox('Please Wait..',255,255,0,true) end 
Music = playSound ( Url ) 
end 
elseif ( source == ssong ) then  
if ( isElement ( Music ) ) then destroyElement ( Music ) end 
end 
end) 
  

يخي ابي لما يحط رابط بتكست رابط اغنيه ويضغط على البوتون تبدا الاغنيه فقط كذا وكودك ما ظبط

~ Soon - ~ قريبا

n-560x95_B6BF07_FFFFFF_0E6B20_000000.png

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...