iRAGE Posted November 8, 2010 Share Posted November 8, 2010 Can anyone help me with a exp based leveling system? Ex: Everytime you kill someone you gain xp, after so much xp you gain a new level. I would really appreciate this. ty Link to comment
12p Posted November 8, 2010 Share Posted November 8, 2010 Nobody will give you such resource. You must script it by yourself, or pay $$$ to somebody that do that. Link to comment
Castillo Posted November 8, 2010 Share Posted November 8, 2010 thats right, nobody will waste his time scripting this for you. Link to comment
WallMart Posted November 8, 2010 Share Posted November 8, 2010 if anyone knows an existing resource for this i would be grateful ive tried scripting before but teaching a monkey how to drive a car would be easier for me Link to comment
12p Posted November 8, 2010 Share Posted November 8, 2010 I have made this in my ZA resource. That was easy ^^ Link to comment
Castillo Posted November 9, 2010 Share Posted November 9, 2010 well.. maybe i could create this for community users, i just need to know how he will get EXP points? i should create a custom function or something like that? Edit: check this link https://community.multitheftauto.com/index.php?p=resources&s=details&id=1253 Link to comment
Castillo Posted November 11, 2010 Share Posted November 11, 2010 Example of how to use my resource exp system when killing a player: function rewardOnWasted ( ammo, killer, killerweapon, bodypart ) if (killer) and (killer ~=source) then local exp = getElementData(killer,"exp") if exp then setElementData(killer,"exp",tonumber(getElementData(killer,"exp"))+5) outputChatBox("Experience gained +5! total ".. tonumber(exp)+5,killer,0,255,0) else setElementData(killer,"exp",0) end end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted ) this will give him +5 of experience every kill. Link to comment
iRAGE Posted November 16, 2010 Author Share Posted November 16, 2010 Awsome... TY. You should make a public thread for it. It would help allot of people with their servers. And Benxamix, yea you do have a cool EXP system on your server. Thats the same idea I have but without the zombs lol. So if you DM or TDM you gain exp and levels. 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