RusRambo Posted May 24, 2010 Posted May 24, 2010 Please tell my possible to create invulnerable peds? And how
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)
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?
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
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.
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"?
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
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
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.
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.
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