Jump to content

extrahealth


Recommended Posts

Posted

Hi forum people.

i was mading this, and my boss dont spawn

i dont know where is the errors.

debugscript dont show errors

function crearBoss() 
local x,y,z = getElementPosition( source ) 
BOSS = createZombie ( x , y , z, 0, 30, 0, 0 ) 
exports["extrahealth"]:setElementExtraHealth(BOSS, 9999) 
end 
addEventHandler ( "onZombieSpawn", resourceRoot, crearBoss ) 
  
setTimer(crearBoss,600000,0) 

the extrahealth is running, and this is a serverside

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

1: You forgot about 'addEvent'.

2: If I'm right, 'onZombieSpawn' doesn't trigger a ped element as 'source'.

3: What is that timer for?

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

with the timer im trying to create boss every 10 minutes

well now i fix it, but extrahealth dont work

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

Extra health doesn't work with slothbots too, maybe it doesn't work with zombies either.

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

deam :/

thx for your time

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

Try it with a normal ped, not a zombie and see if it works.

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

shouldn't it be like that? I mean createZombie does not work in normal mta. he should export the function..

exports["zombies"]:createZombie(blah blah blah) 

Posted

Yeah, but maybe he put that function inside zombies, in that case he doesn't need to.

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.

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