HeK Posted April 1, 2012 Share Posted April 1, 2012 That's the boss (Nemesis), script i made, i saw on some topics that extrahealth doesn't work with him, anyway to make him with more health or something? Is there anyway i can make that in killmessages it says "Nemesis GUN Player" or "Player GUN Nemesis"? Thanks for your attention. function NemesisSpawn() nemesis = exports.slothbot:spawnBot( 1272.27,-1258.25,14,90,112,0,0,nil,33,"hunting" ) exports.slothbot:setBotAttackEnabled ( nemesis,true ) exports.extrahealth:addElementExtraHealth ( nemesis, 10000 ) end addEventHandler ( "onResourceStart",getResourceRootElement(), NemesisSpawn ) Link to comment
X-SHADOW Posted April 1, 2012 Share Posted April 1, 2012 setElementHealth ? ----- https://community.multitheftauto.com/index.php?p= ... ls&id=1604 Link to comment
BorderLine Posted April 1, 2012 Share Posted April 1, 2012 I try same think, but i think the extrahealth dont work on zombies. Link to comment
X-SHADOW Posted April 1, 2012 Share Posted April 1, 2012 I try same think, but i think the extrahealth dont work on zombies. ==DESCRIPTION== You wanted it, you prayed for it, you have it! You always wanted to create zombie bosses, Misterix Mod, a super-human drug, etc...? Now you can do it with this simple script! Add more health to your peds or to a player! No more armour and maximun stats using to increase ped/player resistance! Link to comment
HeK Posted April 1, 2012 Author Share Posted April 1, 2012 setElementHealth ?----- https://community.multitheftauto.com/index.php?p= ... ls&id=1604 Doesn't work at all. function NemesisSpawn() nemesis = exports.slothbot:spawnBot( 2763,-2459,12.5,90,112,0,0,nil,38,"hunting" ) exports.slothbot:setBotAttackEnabled ( nemesis,true ) setElementHealth ( nemesis, 10000 ) end addEventHandler ( "onResourceStart",getResourceRootElement(), NemesisSpawn ) Link to comment
Castillo Posted April 1, 2012 Share Posted April 1, 2012 That's because the max health is about 100-200%. The extrahealth resource seems to be bugged, there was a topic related to the same. Link to comment
HeK Posted April 1, 2012 Author Share Posted April 1, 2012 That's because the max health is about 100-200%.The extrahealth resource seems to be bugged, there was a topic related to the same. Hmm, thanks. What about the "killmessages" part. "Nemesis GUN Player" or "Player GUN Nemesis", is that possible? Link to comment
Castillo Posted April 1, 2012 Share Posted April 1, 2012 addEvent ( "onZombieWasted", true ) addEventHandler( "onZombieWasted", root, function ( killer ) if ( killer and getElementType ( killer ) == "player" ) then local killerName = getPlayerName ( killer ) local weapon = getPedWeapon ( killer ) local wr, wg, wb = getPlayerNametagColor ( killer ) exports.killmessages:outputMessage ( { killerName, { "padding", width = 3 }, { "icon", id = weapon or 0 }, { "padding", width = 3}, { "color", r = 255, g = 0, b = 0 }, "Zombie" }, root, wr, wg, wb ) end end ) addEventHandler ( "onPlayerWasted", root, function ( ammo, killer ) if ( killer and killer ~= source and getElementType ( killer ) == "ped" ) then local weapon = getPedWeapon ( killer ) local wr, wg, wb = 255, 0, 0 exports.killmessages:outputMessage ( { "Zombie", { "padding", width = 3 }, { "icon", id = weapon or 0 }, { "padding", width = 3 }, { "color", r = 255, g = 0, b = 0 }, getPlayerName ( source ) }, root, wr, wg, wb ) end end ) Link to comment
HeK Posted April 1, 2012 Author Share Posted April 1, 2012 Kinda like that, but thats for the zombies not for the bot (nemesis). Thanks anyway. 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