SuleymanM Posted April 2, 2013 Share Posted April 2, 2013 Hi all, How to make/already exists an resource with name Level of DM : And when have : 100 points get level 1 , 200 points get level 2 , how to make please help me . script: exports.scoreboard:addScoreboardColumn('Level') And how to continue ? Link to comment
Castillo Posted April 2, 2013 Share Posted April 2, 2013 You can use my "exp_system" which is a level + experience system: https://community.multitheftauto.com/in ... ls&id=1253 Link to comment
SuleymanM Posted April 3, 2013 Author Share Posted April 3, 2013 i need for [DM] Server . And no function. No create columns in scoreboard... Link to comment
DakiLLa Posted April 3, 2013 Share Posted April 3, 2013 exp_system from Castillo is exactly what you need. Link to comment
SuleymanM Posted April 3, 2013 Author Share Posted April 3, 2013 not function on scoreboard .... not seen " Level" And not use for zombie server .... i use for DM Server Link to comment
Castillo Posted April 3, 2013 Share Posted April 3, 2013 You can easily add a column to the scoreboard on a simple script: -- script.lua: exports [ "scoreboard" ]:scoreboardAddColumn ( "level" ) -- meta.xml: Link to comment
SuleymanM Posted April 4, 2013 Author Share Posted April 4, 2013 not function ... I have 60 points and for level 2 need 20 points ... and me have lvl 1 Man this is for zombie server? I need for race DM Link to comment
Castillo Posted April 4, 2013 Share Posted April 4, 2013 This is not for zombie server, this is for any kind of server, the thing is, you gotta know how it works. Link to comment
gokalpfirat Posted April 5, 2013 Share Posted April 5, 2013 How about try and search anything for this system on forum you always want other players to do you job... Link to comment
SuleymanM Posted April 5, 2013 Author Share Posted April 5, 2013 always i have lvl 1. How to solve solid? Link to comment
WASSIm. Posted April 5, 2013 Share Posted April 5, 2013 use this exports.scoreboard:addScoreboardColumn('Level') local levelplayer = getElementData(player,"level") or 0 function levelboard ( ) for index, player in ipairs ( getElementsByType "player" ) do setElementData ( player, "Level", levelplayer ) end end setTimer ( levelboard, 500, 0 ) function giveexp ( ammo, killer, killerweapon, bodypart ) if ( killer ) and ( killer ~= source ) then exports.exp_system:addPlayerEXP ( killer, 5 ) end end addEventHandler ( "onPlayerWasted", getRootElement(), giveexp ) Link to comment
SuleymanM Posted April 5, 2013 Author Share Posted April 5, 2013 This is for [DM] Race Server? ... this is for "kills" ... i want for dm race server ... "hunter" .... now you know bro? I have an resource "dmstats" and have Points column ... Link to comment
Castillo Posted April 5, 2013 Share Posted April 5, 2013 use this exports.scoreboard:addScoreboardColumn('Level') local levelplayer = getElementData(player,"level") or 0 function levelboard ( ) for index, player in ipairs ( getElementsByType "player" ) do setElementData ( player, "Level", levelplayer ) end end setTimer ( levelboard, 500, 0 ) function giveexp ( ammo, killer, killerweapon, bodypart ) if ( killer ) and ( killer ~= source ) then exports.exp_system:addPlayerEXP ( killer, 5 ) end end addEventHandler ( "onPlayerWasted", getRootElement(), giveexp ) What is the element data update for? it's not even right. 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