Jump to content

طلب كود


swessi

Recommended Posts

Posted (edited)
:mrgreen: اول ما يضغط علي بطم يطلع صوت :mrgreen:

بطم؟ ههههههههه وش ذا

قصده زر ض1

onClientGUIClick -- حدث الظغط 
guiGetVisible --للتحقق 
playSound -- بدأ الصوت 

addEventHandler("onClientGUIClick" ,resourceRoot, 
    function() 
        if ( source == بطم ض1 ) then 
            if guiGetVisible(النافذه) == true then 
                playSound("مسار الصوت") 
            end 
        end 
    end 
) 

Edited by Guest
Posted

هههههه ياشيخ اسمه بوتون مب بطم

Button

:D مش حالك

حسون شوف كودي صح فوق ؟

مأفي داعي تتحقق من اان الوحة مفتوحة ولالا ، عشان مستحيل يضغط على الزر والوحة مقفولة ، استعمل المنطق هههههه

الكود يصير

  
addEventHandler("onClientGUIClick" ,root, 
    function() 
        if ( source == بطم ض1 ) then 
                playSound("مسار الصوت") 
            end 
        end) 
  

* There is No God but Allah

discord: HassoN#2709

Visit my wiki profile: https://wiki.multitheftauto.com/wiki/User:Hassan_saad

13319665721.gif

Posted

مأفي داعي تتحقق من اان الوحة مفتوحة ولالا ، عشان مستحيل يضغط على الزر والوحة مقفولة ، استعمل المنطق هههههه

الكود يصير

  
addEventHandler("onClientGUIClick" ,root, 
    function() 
        if ( source == بطم ض1 ) then 
                playSound("مسار الصوت") 
            end 
        end) 
  

انا فكرته انه يقصد في نافذه فيها زر يفتح نافذه ثانيه ض

Posted

^

ناقصكم تحقق ان الصوت موجود ولا لا

المهم تفضل بعد التعديل

addEventHandler("onClientGUIClick", root, 
  
    function (  ) 
     
     if ( source == بطم ض1 ) then 
         
     if ( isElement ( Sound ) ) then  destroyElement ( Sound ) end 
      
    end 
     
    Sound = playSound ( "sound.mp3" ) 
     
    end ); 
  

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

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

Posted
^

ناقصكم تحقق ان الصوت موجود ولا لا

المهم تفضل بعد التعديل

addEventHandler("onClientGUIClick", root, 
  
    function (  ) 
     
     if ( source == بطم ض1 ) then 
         
     if ( isElement ( Sound ) ) then  destroyElement ( Sound ) end 
      
    end 
     
    Sound = playSound ( "sound.mp3" ) 
     
    end ); 
  

ممكن تفهمني حق اش اتحقق من الصوت ؟

يعني قصدك مايكرر الصوت ؟

Posted
^

ناقصكم تحقق ان الصوت موجود ولا لا

المهم تفضل بعد التعديل

addEventHandler("onClientGUIClick", root, 
  
    function (  ) 
     
     if ( source == بطم ض1 ) then 
         
     if ( isElement ( Sound ) ) then  destroyElement ( Sound ) end 
      
    end 
     
    Sound = playSound ( "sound.mp3" ) 
     
    end ); 
  

ممكن تفهمني حق اش اتحقق من الصوت ؟

يعني قصدك مايكرر الصوت ؟

يب عشان مايكرر

* There is No God but Allah

discord: HassoN#2709

Visit my wiki profile: https://wiki.multitheftauto.com/wiki/User:Hassan_saad

13319665721.gif

Posted
^

ناقصكم تحقق ان الصوت موجود ولا لا

المهم تفضل بعد التعديل

addEventHandler("onClientGUIClick", root, 
  
    function (  ) 
     
     if ( source == بطم ض1 ) then 
         
     if ( isElement ( Sound ) ) then  destroyElement ( Sound ) end 
      
    end 
     
    Sound = playSound ( "sound.mp3" ) 
     
    end ); 
  

ممكن اسألك ؟

ليش بين كل كود وكود 5 امتار :mrgreen:

ترا والله الي يشوفه ينلحس

h3x#2020
Posted
^

ناقصكم تحقق ان الصوت موجود ولا لا

المهم تفضل بعد التعديل

addEventHandler("onClientGUIClick", root, 
  
    function (  ) 
     
     if ( source == بطم ض1 ) then 
         
     if ( isElement ( Sound ) ) then  destroyElement ( Sound ) end 
      
    end 
     
    Sound = playSound ( "sound.mp3" ) 
     
    end ); 
  

ممكن اسألك ؟

ليش بين كل كود وكود 5 امتار :mrgreen:

ترا والله الي يشوفه ينلحس

هههههه

لا والله انا احب انظم الكود الي اسويه واخليه سهل الفهم

هذي طبيعتي صراحة

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

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

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...