Jump to content

[HELP] Making a Boss


HeK

Recommended Posts

Posted

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 ) 

Zero is a number too.

Posted

I try same think, but i think the extrahealth dont work on zombies.

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

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

My ingame nickname : Ops!

-DeathMatch GameMode By Ops! : 5%

Posted

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 ) 

Zero is a number too.

Posted

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.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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

Zero is a number too.

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

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Kinda like that, but thats for the zombies not for the bot (nemesis).

Thanks anyway.

Zero is a number too.

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