aborz Posted June 13, 2013 Share Posted June 13, 2013 (edited) Здравствуйте,помогите пожалуйста со скриптом,не могу доделать,смысл скрипта в том что зажимая клавишу Ь издаётся сигнал ментовской кряколки,вот начал делать и не смог довести до ума. Сlient.lua local url = "sound.mp3" function playTheSound(x, y, z, vehicle) sound = playSound3D(url, x, y, z) if (isElement(vehicle)) then attachElements(sound, vehicle) end end addEvent("playTheSound", true) addEventHandler("playTheSound", root, playTheSound) local url2 = "sound2.mp3" function playTheSound2(x, y, z, vehicle) sound = playSound3D(url2, x, y, z) if (isElement(vehicle)) then attachElements(sound, vehicle) end end addEvent("playTheSound2", true) addEventHandler("playTheSound2", root, playTheSound2) local url3 = "sound3.mp3" function playTheSound3(x, y, z, vehicle) sound = playSound3D(url3, x, y, z) if (isElement(vehicle)) then attachElements(sound, vehicle) end end addEvent("playTheSound3", true) addEventHandler("playTheSound3", root, playTheSound3) local url4 = "sound4.mp3" function playTheSound4(x, y, z, vehicle) sound = playSound3D(url4, x, y, z) if (isElement(vehicle)) then attachElements(sound, vehicle) end end addEvent("playTheSound4", true) addEventHandler("playTheSound4", root, playTheSound4) function stopTheSound(x, y, z) stopSound(sound) end addEvent("stopTheSound", true) addEventHandler("stopTheSound", root, stopTheSound) function stopTheSound2(x, y, z) stopSound(sound) end addEvent("stopTheSound2", true) addEventHandler("stopTheSound2", root, stopTheSound2) function stopTheSound3(x, y, z) stopSound(sound) end addEvent("stopTheSound3", true) addEventHandler("stopTheSound3", root, stopTheSound3) function stopTheSound4(x, y, z) stopSound(sound) end addEvent("stopTheSound4", true) addEventHandler("stopTheSound4", root, stopTheSound4) meta.xml "[161]PRO" version="1.0" type="script"/> помогите доделать!Заранее спасибо! Edited June 13, 2013 by Guest Link to comment
_Vincent_ Posted June 13, 2013 Share Posted June 13, 2013 Мб я чего-то не понимаю, но почему в мете у звуков расширения как у моделей? Link to comment
aborz Posted June 13, 2013 Author Share Posted June 13, 2013 Мб я чего-то не понимаю, но почему в мете у звуков расширения как у моделей? Да,ты прав,уже исправил))ну всё равно это никак не повлияло! Link to comment
_Vincent_ Posted June 13, 2013 Share Posted June 13, 2013 пробуй дебагить https://wiki.multitheftauto.com/index.ph ... /Debugging и у тебя файлы лежат же рядом со скриптами прямо, не в подпапке? Link to comment
aborz Posted June 13, 2013 Author Share Posted June 13, 2013 пробуй дебагить https://wiki.multitheftauto.com/index.ph ... /Debuggingи у тебя файлы лежат же рядом со скриптами прямо, не в подпапке? Прям рядом со скриптами)У тебя скайп есть? 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