SomniumAquila Posted March 12, 2013 Posted March 12, 2013 Добрый день, господа. Недавно решил создать для зомби сервера нескольких ботов на респауне, которые должны выполнять роль "мебели". Разместил, загрузил полученный результат на сервер, но после половины обоймы из АКА они умирают. Мне же нужно, чтобы они были бессмертными. Тоесть нужно создать неубиваемых ботов на респауне. Будет хорошо если им еще можно дать какое-нибудь оружие. Заранее спасибо, жду ответа. Надеюсь кто-нибудь, да поможет.
Flaker Posted March 12, 2013 Posted March 12, 2013 Пишешь скрипт, который при выстреле в бота отменяет эвент и востанавливает здоровье на 100... все...
Arimance Posted April 15, 2013 Posted April 15, 2013 Клиентский скрипт local firstPed = { x = 0.0, y = 0.0, z = 13.0, a = 90 } local secondPed = { x = 0.0, y = 0.0, z = 13.0, a = 90 } firstPed.model = createPed( 7, firstPed.x, firstPed.y, firstPed.z, firstPed.a ) secondPed.model = createPed( 7, secondPed.x, secondPed.y, secondPed.z, secondPed.a ) addEventHandler( "onClientPedDamage", firstPed.model, cancelEvent ) addEventHandler( "onClientPedDamage", secondPed.model, cancelEvent ) We are happy to announce a new MTA project which called the Reborn. It's fresh and smally unique idea that has a role play game type. Check it at http://www.reborn.so ( Russia ).
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