MatiMTA

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

1 Neutral

About MatiMTA

  • Rank
    Vic

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I have discovered that it is not (getElementData (source, "KD")). Actually it's "getElementData (player," DayZAsesinatos ") / getElementData (player," DayZMuerte ")". But try to change the (local KD) in line 2 with that information, but it did not work. I just fixed. Thank you very much for the help. It was a problem to change "player" to "source".
  2. Basically the (getElementData (source, "KD")) results in the case of my account = 0.5 And in line 3 of the code should take effect, but it does not. Why could it be?
  3. In this code I try to make it possible to add new data to the user, depending on certain conditions of "getElementData (source," KD "), but it says" Attempt to concatenate a boleean value. "And the data is not a boolean, it is a I do not understand the error.. It's server side. The data( getElementData(source, "KD") ) its a number type. I do not want to do something difficult, I just want that when I log in I set a text in a data, where I can use it in a gui on client side. Can you help me? Thank you function SetearDatas() if((getElementData(source, "KD")) < 1) then setElementData(source, "ranking", "Bronze") --Bronce else if(getElementData(source, "KD") >= 1 and getElementData(source, "KD") < 2.5) then setElementData(source, "ranking", "Silver") --Plata else if(getElementData(source, "KD") >= 2.5 and getElementData(source, "KD") < 4) then setElementData(source, "ranking", "Gold") --Oro else if(getElementData(source, "KD") >= 4 and getElementData(source, "KD") < 7) then setElementData(source, "ranking", "Platinum") --Platino else if(getElementData(source, "KD") >= 7 and getElementData(source, "KD") < 10) then setElementData(source, "ranking", "Diamond") --Diamante else if(getElementData(source, "KD") >= 10) then setElementData(source, "ranking", "Master") --Challenger end end end end end end end addEventHandler ("onPlayerLogin", getRootElement(), SetearDatas) function statsss () outputChatBox("Your rank is: "..getElementData (source, "ranking"), source,0,255,0) end addCommandHandler ( "statinfo", statsss )
  4. que grande con el ysy a y el neo pistea
  5. I think it's mine. Otherwise I would not have it in my files. It is an edition of a script that a friend has given me. He asked me to change it and that I did. It has been much better. If what I have edited and changed radically is from another author, I do not know it. The only thing that is, that is a very useful script for many servers that need a system of bases and raids.