Castillo Posted January 29, 2012 Share Posted January 29, 2012 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") Link to comment
zombienation Posted January 29, 2012 Author Share Posted January 29, 2012 i get the colum with EXP above it, but i cant get the exp points in it Link to comment
Xeno Posted January 29, 2012 Share Posted January 29, 2012 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. Link to comment
zombienation Posted January 29, 2012 Author Share Posted January 29, 2012 oh cool thanks man will it also show the points in scoreboard then? i add these lines bottom in client file? Link to comment
zombienation Posted January 29, 2012 Author Share Posted January 29, 2012 hmm, just thinking, can u make the xp that it gives 10 xp for headshot and 5 for bodykill? its just an idea that came in my head rl quick Link to comment
Xeno Posted January 29, 2012 Share Posted January 29, 2012 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 Link to comment
zombienation Posted January 29, 2012 Author Share Posted January 29, 2012 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 Link to comment
yvadfulck Posted October 25, 2012 Share Posted October 25, 2012 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) 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