IIIIlllllIII Posted July 31, 2011 Share Posted July 31, 2011 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
Castillo Posted July 31, 2011 Share Posted July 31, 2011 addEventHandler ("onClientPlayerDamage",getRootElement(), function (attacker,weapon,bodypart) if bodypart == 9 then local sound = playSound ("headshot.mp3",false) end end) Link to comment
IIIIlllllIII Posted July 31, 2011 Author Share Posted July 31, 2011 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 Link to comment
Castillo Posted July 31, 2011 Share Posted July 31, 2011 Yes, but that's stupid since you don't need to check the weapon. Link to comment
IIIIlllllIII Posted July 31, 2011 Author Share Posted July 31, 2011 Yes, but that's stupid since you don't need to check the weapon. THANK YOU i will test ur script but did that work with all weapons on kill Link to comment
IIIIlllllIII Posted July 31, 2011 Author Share Posted July 31, 2011 dont work when i copy ur script and past in notepad and i save it hs.lua and when i runing the script i hear nothing all is there meta.xml i set hs.lua and headshot.mp3 and nothing happend i hear nothing did i do something wrong or u give me a wrong code Link to comment
Castillo Posted July 31, 2011 Share Posted July 31, 2011 Is your script set as type="client" in meta.xml? Link to comment
IIIIlllllIII Posted July 31, 2011 Author Share Posted July 31, 2011 yep i set on client Link to comment
IIIIlllllIII Posted July 31, 2011 Author Share Posted July 31, 2011 pleez i want u make a script because i past the script in notepad and i think the problem from notepad this the sound headshot.mp3 http://www.mediafire.com/?bwo0xdhe8ahka8x pleez make the script i want hear this sound when i kill players like this video for example https://www.youtube.com/watch?v=tcUlbohEw-Y pleez make the script and upload it on mediafire.com Link to comment
Castillo Posted July 31, 2011 Share Posted July 31, 2011 http://www.mediafire.com/?mp8an1xce6y74az Link to comment
IIIIlllllIII Posted July 31, 2011 Author Share Posted July 31, 2011 yeah work but when i play and kill not working when i watch other player kill other player i hear the sound but i want hear a sound when i kill Link to comment
denny199 Posted July 31, 2011 Share Posted July 31, 2011 https://community.multitheftauto.com/ind ... ils&id=343 ^^^^^^^^^^^^ All what u need =D Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now