RusRambo Posted May 24, 2010 Posted May 24, 2010 Please tell my possible to create invulnerable peds? And how Будучи студентом архитектурно-строительного университета, специальности Автомобильные дороги и безопасность движения, я просто не могу спокойно смотреть на тот ужас, что вы творите с более-менее удачной поделкой Rockstar'ов в Roleplay-режимах. Делаю карты. Делаю чертовски хорошие карты. Бесплатно. Заинтересуй меня!
Callum Posted May 24, 2010 Posted May 24, 2010 Presuming you have a ped defined as "ped", the script below should work (client-side): function invPed() cancelEvent() end addEventHandler("onClientPedDamage",ped,invPed) Retired
RusRambo Posted May 29, 2010 Author Posted May 29, 2010 Presuming you have a ped defined as "ped", the script below should work (client-side): function invPed() cancelEvent() end addEventHandler("onClientPedDamage",ped,invPed) it work? Будучи студентом архитектурно-строительного университета, специальности Автомобильные дороги и безопасность движения, я просто не могу спокойно смотреть на тот ужас, что вы творите с более-менее удачной поделкой Rockstar'ов в Roleplay-режимах. Делаю карты. Делаю чертовски хорошие карты. Бесплатно. Заинтересуй меня!
Phat Looser Posted May 29, 2010 Posted May 29, 2010 Unless you backstab them. Officially MTA's worst fanboy
RusRambo Posted May 29, 2010 Author Posted May 29, 2010 Dont work If I shoot in one ped, just appears different. all. This happens once. please help to create invincible npc Будучи студентом архитектурно-строительного университета, специальности Автомобильные дороги и безопасность движения, я просто не могу спокойно смотреть на тот ужас, что вы творите с более-менее удачной поделкой Rockstar'ов в Roleplay-режимах. Делаю карты. Делаю чертовски хорошие карты. Бесплатно. Заинтересуй меня!
Phat Looser Posted May 30, 2010 Posted May 30, 2010 Dont work If I shoot in one ped, just appears different. all. This happens once. please help to create invincible npc You know you should put that client side, not server side. Officially MTA's worst fanboy
RusRambo Posted May 30, 2010 Author Posted May 30, 2010 Forgive my incompetence... This means that you need to specify a meta "client"? Or should he put his life in a folder "mods"? Будучи студентом архитектурно-строительного университета, специальности Автомобильные дороги и безопасность движения, я просто не могу спокойно смотреть на тот ужас, что вы творите с более-менее удачной поделкой Rockstar'ов в Roleplay-режимах. Делаю карты. Делаю чертовски хорошие карты. Бесплатно. Заинтересуй меня!
MaddDogg Posted May 30, 2010 Posted May 30, 2010 This means that you need to specify a meta "client"? Or should he put his life in a folder "mods"? I don't really know, what you want to say with this, but you need to put the script snippet into a script file, which itself is added with a 'type="client"'. So let's say that your file is called client.lua. Then your meta.xml line would look like this: <script src="client.lua" type="client" /> Here is another help for it: https://wiki.multitheftauto.com/wiki/Client_side_scripts
RusRambo Posted December 6, 2010 Author Posted December 6, 2010 please tell me how to make... a ped of the head appeared the inscription with his name Sorry, my english is bad Будучи студентом архитектурно-строительного университета, специальности Автомобильные дороги и безопасность движения, я просто не могу спокойно смотреть на тот ужас, что вы творите с более-менее удачной поделкой Rockstar'ов в Roleplay-режимах. Делаю карты. Делаю чертовски хорошие карты. Бесплатно. Заинтересуй меня!
Castillo Posted December 7, 2010 Posted December 7, 2010 you just want to get all done, start to learn by yourself! if you ask for 1 simple script its ok but if you start to ask another and another then its not! https://wiki.multitheftauto.com/wiki/Scripting_Introduction San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
NotAvailable Posted December 7, 2010 Posted December 7, 2010 try this code --the Ped-- local noobPed = createPed(278, 0, 0, 0, 0) setElementRotation(noobPed, ZRotation) --every 100 miliseconds the ped health will be set to 100-- function hp() setElementHealth(noobPed, 100) end setTimer, 100, 0)
12p Posted December 7, 2010 Posted December 7, 2010 try this code --the Ped-- local noobPed = createPed(278, 0, 0, 0, 0) setElementRotation(noobPed, ZRotation) --every 100 miliseconds the ped health will be set to 100-- function hp() setElementHealth(noobPed, 100) end setTimer, 100, 0) That uses too much CPU. Actually, Callum said how to do this.
Phat Looser Posted February 11, 2011 Posted February 11, 2011 Dont work If I shoot in one ped, just appears different. all. This happens once. please help to create invincible npc You have to use it CLIENTside. Officially MTA's worst fanboy
Castillo Posted February 11, 2011 Posted February 11, 2011 Phat, isn't this an old topic already? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
12p Posted February 11, 2011 Posted February 11, 2011 If he is trying to give some help addition to the topic, isn't bad to bump it. Oh, and for to make invincible peds, use my simple script resource, Extra Health. It's at my signature, check: | | | V
Phat Looser Posted February 12, 2011 Posted February 12, 2011 Thank you for the hint of it being old, but it just caught my eye. People ALWAYS mess up server side and client side stuff. Officially MTA's worst fanboy
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