Adde Posted March 3, 2013 Share Posted March 3, 2013 I was looking on the forum for info about headshotsound and if it´s possible to make it work for zombies, but i couldn´t find anything. So my question now is, is it possible to make example this headshot sound script https://community.multitheftauto.com/index.php?p=resources&s=details&id=2681 so it works for zombiemode? Thankfull for answears Link to comment
manawydan Posted March 3, 2013 Share Posted March 3, 2013 try no tested function headShotZombie(attacker, weapon, bodypart, loss) if (bodypart == 9) then if (getElementData(source, "zombie") == true) then local x, y, z = getElementPosition(source) local soundHeadshot = playSound3D("headshot.mp3", x, y, z, false) setSoundMaxDistance ( soundHeadshot, 10 ) killPed(source, attacker, weapon, bodypart) end end end addEventHandler("onClientPedDamage", getRootElement(), headShotZombie) Link to comment
Adde Posted March 3, 2013 Author Share Posted March 3, 2013 Okay I will test. It worked, thx 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