RusRambo Posted May 24, 2010 Share Posted May 24, 2010 Please tell my possible to create invulnerable peds? And how Link to comment
Callum Posted May 24, 2010 Share 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) Link to comment
RusRambo Posted May 29, 2010 Author Share 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? Link to comment
RusRambo Posted May 29, 2010 Author Share 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 Link to comment
Phat Looser Posted May 30, 2010 Share 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. Link to comment
RusRambo Posted May 30, 2010 Author Share 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"? Link to comment
MaddDogg Posted May 30, 2010 Share 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 Link to comment
RusRambo Posted December 6, 2010 Author Share 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 Link to comment
Castillo Posted December 7, 2010 Share 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 Link to comment
NotAvailable Posted December 7, 2010 Share 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) Link to comment
12p Posted December 7, 2010 Share 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. Link to comment
Phat Looser Posted February 11, 2011 Share 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. Link to comment
Castillo Posted February 11, 2011 Share Posted February 11, 2011 Phat, isn't this an old topic already? Link to comment
12p Posted February 11, 2011 Share 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 Link to comment
Phat Looser Posted February 12, 2011 Share 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. 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