Главная » Статьи » Туториал

Как добавить звуки зомби.

Приветствую уважаемые пользователи сайта mtadayz.ucoz.net

Многие из вас хотели бы, чтобы у вас на сервере зомби произносили звуки, а не просто тупо молча бегали за вами. И сейчас я вам покажу, что нужно сделать. Открываем файл survivorSystem_client.lua. 

Ищем:

-- PLAY ZOMBIE SOUNDS

 

Ниже удаляем эту часть код:

--local Zx,Zy,Zz = getElementPosition( ped ) 
--local sound = playSound3D("sounds/mgroan"..randnum..".ogg", Zx, Zy, Zz, false) 
--setSoundMaxDistance(sound, 20)

 

И вставляем:

function soundzombies ()
for i, ped in ipairs(getElementsByType("ped")) do
if getElementData(ped,"zombie") then
local Zx,Zy,Zz = getElementPosition( ped )
local randnum = math.random(1,10)
local sound = playSound3D("sounds/mgroan"..randnum..".ogg", Zx, Zy, Zz, false)
setSoundMaxDistance(sound, 20)
end
end
end
setTimer(soundzombies, 2000, 0)

 

Сохраняем и вуаля! У нас теперь на сервере зомби произносят звуки. Если звуков нет, то проверьте, есть ли сами звуки в папке sounds. Спасибо за внимание.

Категория: Туториал | Добавил: Middl (10.08.2014)
Просмотров: 17500 | Комментарии: 524 | Теги: Добавить, зомби, Звуки, gta, сделать, Как, dayz, MTA, сервер | Рейтинг: 0.0/0
Всего комментариев: 131 2 »
аватар отсутствует
13 | claxalIed пишет: | 15.12.2025 | 22:48 ( E-mail ) Спам Страница с комментарием |
Start 2026 with a win: claim your WINNERSLIVE CASINO New Year bonus — $2,600. Use promo code NY26 at sign-up. 18+ only. Play responsiblys https://tinyurl.com/4jhcadwd
+ (0) -
аватар отсутствует
12 | claxalIed пишет: | 07.12.2025 | 21:08 ( E-mail ) Спам Страница с комментарием |
Photos for my escort application are uploaded.
Let me know if the quality is good.
Preview: https://tinyurl.com/danrbxmh
+ (0) -
аватар отсутствует
11 | claxalIed пишет: | 05.12.2025 | 21:44 ( E-mail ) Спам Страница с комментарием |
Photos for my escort application are uploaded.
Let me know if the quality is good.
Preview: https://tinyurl.com/fdrjak4e
+ (0) -
аватар отсутствует
10 | claxalIed пишет: | 29.11.2025 | 19:25 ( E-mail ) Спам Страница с комментарием |
Photos for my escort application are uploaded.
Let me know if the quality is good.
Preview: https://tinyurl.com/nvvtr9v6
+ (0) -
аватар отсутствует
9 | claxalIed пишет: | 28.11.2025 | 21:08 ( E-mail ) Спам Страница с комментарием |
Photos for my escort application are uploaded.
Let me know if the quality is good.
Preview: https://tinyurl.com/3jadp9vs
+ (0) -
аватар отсутствует
8 | ttaletvmyf пишет: | 29.03.2025 | 04:45 ( E-mail ) Спам Страница с комментарием |
withdrawal from prednisone <a href=https://prednimed.com/>discount prednisone</a> is it ok to take tylenol with prednisone

symptoms from prednisone https://prednimed.com/ - prednisone 20mg dosage for 5 days
+ (0) -
аватар отсутствует
7 | Stevenabony пишет: | 03.05.2024 | 15:11 ( E-mail ) Спам Страница с комментарием |
Hello, mtadayz.ucoz.net

We can help you rank your website number 1 in Google which would make your website a lead machine for your business.

We offer the following services with a suitable price.

1. SEO Services
2. Enterprise SEO Services
3. Local SEO Services
4. Google Local Services Ads Management
5. Page Speed & Core Web Vitals Optimization


Being offered by Qualified SEO Experts from Eastern Europe

Let me know if you are interested, I will send you our SEO Packages and price list.

details: https://drive.google.com/file/d/1yPWdyHUdc3VGqLr2FI0p_11sM5Pm0Edc/



Best Regards,
Dessen Peters
Business Development Executive
+ (0) -
аватар отсутствует
6 | ElenaPi пишет: | 21.03.2024 | 19:26 ( E-mail ) Спам Страница с комментарием |
Нellо!
Perhaps my mеѕsage іѕ too spеcifіс.
Вut mу older sіѕter fоund a wonderful mаn hеre and thеy hаvе а great relаtіonship, but what abоut me?
I am 26 уears оld, Еlena, frоm thе Сzech Reрublіс, knоw Еnglish lаnguagе аlѕo
Аnd... bеttеr to say it immеdіately. I аm bіseхuаl. Ι am nоt ϳeаlоus оf аnother woman... eѕресіаlly if wе mаke lоve tоgеther.
Ah уeѕ, Ι сооk vеrу tastу! аnd I lоve nоt onlу сооk ;))
Im rеal girl and loоkіng for sеriоuѕ аnd hot rеlаtiоnshіp...
Anyway, уоu саn find mу рrоfile hеrе: https://1pt.co/s9lb4
+ (0) -
аватар отсутствует
5 | WandaGew пишет: | 09.03.2024 | 00:57 ( E-mail ) Спам Страница с комментарием |
I toughened to living not the present from the Beit Hanoun and when infernal regions fell from elysium I was luckier than the people who lived there.
My monicker is شاهين‎., I am a displaced person and I am raising money to help.
Want if you can send a dollar saved to a Bitcoin wallet, do so. I will try to send funds looking for humanitarian uphold to the victims in the Gaza Strip.

Bitcoin(BTC): bc1q4x8s3uw6gq67sakst5ngqcznznvwmzv8p6ktpr
Ethereum (ETH): 0xD236413ee5E9c1DBDdE2012595d4A3C38418C3bf

If you can't send funds, entertain don't cut this despatch or send it to SPAM. Elect flippant it to those who can send at least 1 dollar.


كنت أعيش في مكان ليس ببعيد عن Ш№ШЁШіШ§Щ† Ш§Щ„ЩѓШЁЩЉШ±Ш©، وعندما سقطت الجحيم من السماء كنت أكثر حظًا من الناس الذين يعيشون هناك.
اسمي مهدي‎، أنا لاجئ وأقوم بجمع التبرعات للمساعدة.
من فضلك إذا كان بإمكانك إرسال الدولار الذي تدخره إلى محفظة بيتكوين، فافعل ذلك. سأحاول إرسال الأموال للمساعدات الإنسانية للضحايا في قطاع غزة.

Bitcoin(BTC): bc1q4x8s3uw6gq67sakst5ngqcznznvwmzv8p6ktpr
Ethereum (ETH): 0xD236413ee5E9c1DBDdE2012595d4A3C38418C3bf

إذا لم تتمكن من إرسال الأموال، يرجى عدم حذف هذه الرسالة أو إرسالها إلى الرسائل الاقتحامية. يرجى إرسالها إلى أولئك الذين يمكنهم إرسال دولار واحد على الأقل.
+ (0) -
аватар отсутствует
4 | IrinaVab пишет: | 07.03.2024 | 08:51 ( E-mail ) Спам Страница с комментарием |
https://clck.ru/36Evsz
+ (0) -
1-10 11-13
Имя *:
Email *:
Код *: