Jump to content

تصحيح الكود؟


Recommended Posts

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

addEvent("headshot",true) 
addEventHandler("headshot",root, 
function() 
        local sound = playSound("head.mp3") --Play wasted.mp3 from the sounds folder 
    setSoundVolume(sound, 1.0) 
end ) 

؟؟

Link to comment

الي انت مسويه كـــــــله خطأأأ خذ ذا

addEventHandler ( "onClientPlayerWasted", getRootElement(), 
function( killer ) 
    if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
      local sound = playSound("head.mp3") --Play wasted.mp3 from the sounds folder 
      setSoundVolume(sound, 0.9) 
    end 
end) 

Link to comment
  
--هنا 3 اصوات بأمكآنك الزياده  
Sounds = { 
      'dominating.wav', 
      'doublekill.wav', 
      'godlike.wav', 
} 
  
 addEventHandler ( "onClientPlayerWasted", getRootElement(), 
function( killer ) 
       if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
    local randomIDd = math.random ( 1, #Sounds ) 
    local randoma = Sounds[randomIDd] 
    Sound = playSound(randoma) 
    setSoundVolume(Sound, 0.9) 
       end 
end) 

Link to comment

الصوت لازم يكون بصيغه

wav 

انا ابي

mp3

cod my

outputChatBox(".:[ Reward System Sound Kill Server tm_hp By ABO*SR777777A ]:.",255,255,0,true) 
  
      
    Sounds = { 
          'head.mp3', 
          'headshot.mp3', 
    } 
      
     addEventHandler ( "onClientPlayerWasted", getRootElement(), 
    function( killer ) 
           if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        local randomIDd = math.random ( 1, #Sounds ) 
        local randoma = Sounds[randomIDd] 
        Sound = playSound(randoma) 
        setSoundVolume(Sound, 0.9) 
           end 
    end) 
  

مايشتغل مدري ليش

Link to comment
outputChatBox(".:[xالكود مأخوذ من المنتدى الرسمي ومسجل بأسمي اانا ابو سرحآx ]:.",getRootElement(),255,255,0,true) 
  
      
    Sounds = { 
          'head.mp3', 
          'headshot.mp3', 
    } 
      
     addEventHandler ( "onClientPlayerWasted", getRootElement(), 
    function( killer ) 
           if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        local randomIDd = math.random ( 1, #Sounds ) 
        local randoma = Sounds[randomIDd] 
        Sound = playSound(randoma) 
        setSoundVolume(Sound, 0.9) 
           end 
    end) 

Link to comment
الكود انا مسويه في راسك نخله

اها هذا الي يسووي خير حق واحد بزر لاكن ابي استفسارات

addEvent("headshot",true)--ذي من وين مخترعها انت مبدع بصراحه 
addEventHandler("headshot",root, -- !!!!! وذي 
function() 
        local sound = playSound("head.mp3") --Play wasted.mp3 from the sounds folder-- زين نقلتها من الويكي صح 
    setSoundVolume(sound, 1.0) 
end )  

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