Jump to content

help my first script sound mod


Recommended Posts

hi

i make this script but i dont know maybe work or no

and i want this script when you kill the palyer u hear the sound headshot.mp3 on kill

and i want this script with all weapons m4 mb5 and all weapons i want the sound work with all weapons

the code

  
  
  
  
addEventHandler ("onClientPlayerDamage",getRootElement(), 
  
function (attacker,weapon,bodypart) 
  
if bodypart == 9 then  
   if weapon == 24 or weapon == 31 or weapon == 34 then 
  
  
local sound = playSound ("headshot.mp3",false) 
end 
end 
end 
  
  
  

did i do the true or there is something wrong

pleez help me i want the sound work on all weapons i want hear the sound head shot when i kill a players.... need a help now

Link to comment

:lol:

i make the script with all weapons see

  
  
  
  
addEventHandler ("onClientPlayerDamage",getRootElement(), 
function (attacker,weapon,bodypart) 
if bodypart == 9 then  
   if weapon == 24 or weapon == 31 or weapon == 34 or weapon == 16 or weapon == 25 or weapon == 30 or weapon == 38 or weapon == 29 or weapon == 32 or weapon == 27 or weapon == 22 or weapon == 39 or weapon == 33 or weapon == 28 or weapon == 0 then 
  
local sound = playSound ("headshot.mp3",false) 
end 
end 
end 
  
  
  
  

did i did someting wrong :roll:

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