Jump to content

[HELP] Making a Boss


HeK

Recommended Posts

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
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

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
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...