Tekken

Simple Level System.

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.

    int level

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

addPlayerXp(element player, int 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!

Share this post


Link to post

Can I use that scripts on my mta days server ? I am a new mta player 😊 and can u help me add new weapons in my server ?

Thanks a lot

Share this post


Link to post
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

Share this post


Link to post
9 hours ago, Maruchan said:

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

Please speak english.

Share this post


Link to post

To adapt it to a DayZ gamemode it's pretty simple all you have to do is to play around this 2 events killDayZPlayer and onZombieGetsKilled.

Anyway I won't do it as this is your job if you want to be a server owner.

Greetings.

Share this post


Link to post
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)

 

Share this post


Link to post
2 hours ago, Tekken said:

What?... 

It is a function of removing dayz tent ... I want that when dismantling this it is under the user.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.