Jump to content

Re: مساعد بكون الاصوات


Recommended Posts

السلام عليكم شباب انا عندي كود

اذا مت يطلع لك صوت انا مابي يطلعلك صوت اذا مت

ابي اذا قتلت يطلع لك صوت

هذا الكود

----------------

    sounds = { 'sound1.mp3', 
        'sound2.mp3', 
        'sound3.mp3', 
        'sound4.mp3', 
        'sound5.mp3' 
    } 
      
    addEventHandler("onClientPlayerWasted", localPlayer, 
        function ( killer, weapon, bodypart ) 
            playSound( sounds[math.random(1, #sounds)] ) 
        end 
    ) 

--------

لاحد يطرحلي الكود جاهز يعلمني وانا اسوي :mrgreen:

Link to comment

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