Jump to content

Simple Level System.


Tekken

Recommended Posts

Simple Level System

 

I made this a while ago because I was bored and I said why not to upload it here :) so here I am.

This is a Level system in witch you will have to gain a certain amount of XP to level up.

Keep in mind that this is just the core, so there's no rewards, you will have to set them up by yourself.

It does include an Server Side event 

onPlayerLevelUp - Source is the player witch level's up.

returns New level, Old level, New exp, Old exp

And a Server Side function - This function is also exported!

addPlayerXp(element player, number XP)

Example:

addEventHandler("onPlayerSpawn", root, function() 
	addPlayerXp(source, math.random(30, 100));
end);

addEventHandler("onPlayerLevelUp", root, function(lvl)
	outputChatBox("You just reached level "..lvl, source, 255, 255, 0, false);
end);

Note: The levels are unlimited!

DOWNLOAD

Hope you find it useful!

Edited by Tekken
Updated
Link to comment
  • 2 months later...
  • 1 year later...
8 hours ago, Tekken said:

Yes you can use this with DayZ, actually you can use it with any gamemode you want. :0

Entonces por qué nadie explica como adaptar un system_exp a un servidor day z?... Yo no se hacerlo ya que soy nuevo por aqui.

Tu que eres el dueño podrías resubirlo adaptado para una gamemode DayZ por favor?.

Edited by Maruchan
Link to comment
On 09/09/2018 at 07:35, iMr.WiFi..! said:

Please speak english.

How do I get the store to go to the user's position?

function removeTent(object)
  local x, y, z = getElementPosition(getElementData(object, "parent"))
  local item, itemString = getItemTablePosition("Tienda de Campaña")
  local itemPickup = createItemPickup(item, x, y, z + 1, itemString)
  destroyElement(getElementData(object, "parent"))
  destroyElement(object)
end
addEvent("removeTent", true)
addEventHandler("removeTent", getRootElement(), removeTent)

 

Link to comment

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