Jump to content

how can i make these zombies spawn everywhere ?


zombienation

Recommended Posts

Posted

If your element data name is "EXP" and you want it to update the scoreboard when the EXP changes, then do:

exports.scoreboard:scoreboardAddColumn("EXP") 

Posted
function addPlayerZombieKills(killer) 
    local account = getPlayerAccount(killer) 
    if isGuestAccount(account) then return end 
    local zombieKills = getAccountData(account,"EXP") 
    if not zombieKills then setAccountData(account,"EXP",0) end 
    setAccountData(account,"Zombie kills",tonumber(zombieKills)+10) 
end 
addEventHandler("onZombieWasted",getRootElement(), addPlayerZombieKills) 

This adds 10 EXP every kill.

Posted

Considering your playing a zombies server, you proberly won't need it(You have to shoot them in the head to kill them)

But use this:

if ( bodypart == 9 ) then 

-- That means if the body part hit is the head then

Posted

thx xeno :)

solidsnake, shouldn't i add something extra in the line for the scoreboard? as exp points change, like zombiekills its like this in that script

exports.scoreboard:scoreboardAddColumn("Level",getRootElement(),80)

i tried also with getRootElement(),80) but it also dont show the points in scoreboard, the colum is still there

  • 8 months later...
Posted

want zombies at a particular place without creating spanpoints,

you could addapt the zomb script and make safe zones to spawnzones

tthats what i did...set 0 to 1

createnew radar area and make the radar area zombieproof

tadaa the zombies will spawn inside:note

zombies out of maplimits dont hurt by hitting you(i wonder why)

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