[DemoN] Posted June 24, 2011 Share Posted June 24, 2011 1) I want to learn if we can disable heli-killing. 2) How can I attach a name and a health bar to peds like normal players? (is there any command called createHealthBar ) Link to comment
#Paper Posted June 24, 2011 Share Posted June 24, 2011 heli-killing? healt bar to peds? Maybe this? https://community.multitheftauto.com/index.php?p=resources&s=details&id=734 Link to comment
Oz. Posted June 24, 2011 Share Posted June 24, 2011 He means to prevent peds from being injured or killed by helicopter rotor blades ('heli-killing'). Yes, it is possible to disable it, as you probably already know from your time on DKR. I wouldn't know where to start though, maybe AcitanoX can help now that he knows what heli-killing is Link to comment
[DemoN] Posted June 24, 2011 Author Share Posted June 24, 2011 He means to prevent peds from being injured or killed by helicopter rotor blades ('heli-killing').Yes, it is possible to disable it, as you probably already know from your time on DKR. I wouldn't know where to start though, maybe AcitanoX can help now that he knows what heli-killing is ^True healt bar to peds? Maybe this? https://community.multitheftauto.com/index.php?p=resources&s=details&id=734 Thank you Link to comment
BinSlayer1 Posted June 24, 2011 Share Posted June 24, 2011 I am not sure because the description of the "attacker" argument is vague, but try it nevertheless: use this event: https://wiki.multitheftauto.com/wiki/OnClientPedDamage check if attacker is a vehicle and if attacker's vehicle model number is heli model (https://wiki.multitheftauto.com/wiki/Vehicle_IDs) If conditions are matched, cancelEvent() Again, I'm not sure if the event will trigger when a heli damages a player because the description is pretty vague but i think it's worth a try , maybe someone else has another idea tho Link to comment
#Paper Posted June 24, 2011 Share Posted June 24, 2011 maybe AcitanoX can help now that he knows what heli-killing is Idk what function to use... maybe u can use the onPlayerDamage and check if the attacker is vehicle and if vehicle model is an helicopeter and then cancelEvent(), but if u use the hunter whit missiles u doesn't damage, idk try Link to comment
[DemoN] Posted June 24, 2011 Author Share Posted June 24, 2011 if u use the hunter whit missiles u doesn't damage, idk try you can disable hunter missiles with onPlayerVehicleEnter and setPedControlState... Link to comment
#Paper Posted June 24, 2011 Share Posted June 24, 2011 but you need to disable the missiles? Link to comment
[DemoN] Posted June 24, 2011 Author Share Posted June 24, 2011 but you need to disable the missiles? lol no -.- Link to comment
JR10 Posted June 24, 2011 Share Posted June 24, 2011 Do you want to disable being damaged with a heli no matter how he got hit? here it is: --CLIENT SIDE!! addEventHandler('onClientPlayerDamage', root, function(attacker) if getElementType(attacker) == 'vehicle' and getElementModel(attacker) == 497 then -- You can add many ids as you want cancelEvent() end end ) not tested and idk if it will work the event: https://wiki.multitheftauto.com/wiki/OnC ... ayerDamage Link to comment
[DemoN] Posted June 24, 2011 Author Share Posted June 24, 2011 Do you want to disable being damaged with a heli no matter how he got hit?here it is: --CLIENT SIDE!! addEventHandler('onClientPlayerDamage', root, function(attacker) if getElementType(attacker) == 'vehicle' and getElementModel(attacker) == 497 then -- You can add many ids as you want cancelEvent() end end ) not tested and idk if it will work the event: https://wiki.multitheftauto.com/wiki/OnC ... ayerDamage Thank you. I'll try it Link to comment
#Paper Posted June 24, 2011 Share Posted June 24, 2011 No problem, good luck. Stealing AcitanoX's ideas! Ty for made this script for he! Link to comment
JR10 Posted June 24, 2011 Share Posted June 24, 2011 No problem, good luck. Stealing AcitanoX's ideas! Ty for made this script for he! lol, i didn't steal it from you, i didn't even see your post. Link to comment
#Paper Posted June 25, 2011 Share Posted June 25, 2011 Hey be quiet it was a joke! T_T don't hate me! TTTTTTTTT___________TTTTTTTTTTTT P.S: Link to comment
BinSlayer1 Posted June 25, 2011 Share Posted June 25, 2011 Stealing AcitanoX's ideas! Correction: BinSlayer's ideas! My post was first, then yours. So.. Link to comment
#Paper Posted June 25, 2011 Share Posted June 25, 2011 Oh LoL, sry i didn't see ur post D: Link to comment
[DemoN] Posted June 25, 2011 Author Share Posted June 25, 2011 Solved.. Lock please... 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