Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 25/09/21 in all areas

  1. Hi, welcome to the forums! Your thread has been moved to a more language-specific section so your post can gather to those who are speaking your native language.
    1 point
  2. I don't know what this has to do with dimensions. The code should work unless thePlayer variable is changed before the timer elapses. Therefore the part where thePlayer gets changed must be where the problem comes from, but you're not showing us that part. @The_GTA showed you how the code can be modified so that changes to thePlayer wouldn't cause this problem.
    1 point
  3. The script seems to be fine. function resetPlayerScore (thePlayer) local pname = getPlayerName(thePlayer) setElementData(thePlayer,"Score",0) setElementData(thePlayer,"kills",0) setElementData(thePlayer,"deaths",0) setElementData(thePlayer,"dmg",0) setElementData(thePlayer,"Damage",0) setElementData(thePlayer,"level",0) setElementData(thePlayer,"exp",0) outputChatBox(tostring(pname) .." has resetted his score.", getRootElement(), 147, 112, 219, true ) end addCommandHandler("rest", resetPlayerScore)
    0 points
×
×
  • Create New...