Jump to content

ayuda con resetscore


Mr.Balp

Recommended Posts

miren quisiera resetar el score a 0-0 las kills y las deaths que se rseteen permanentemente para comensar nuevas kills y deaths esto es lo que hise pero no se borra el score completamente si mueres o matas el score vuelve a como estaba antes alguien em podria ayudar c:

function resetPlayerScore (thePlayer)

local pname = getPlayerName(thePlayer)

setElementData(thePlayer,"T.Kills",0)

setElementData(thePlayer,"T.Deaths",0)

local playeraccount = getPlayerAccount ( source )

outputChatBox(tostring(pname) .." HA RESETEADO EL SCORE A 0-0.", getRootElement(), 255, 0, 0, true )

end

addCommandHandler("resetscore", resetPlayerScore)

Link to comment
Ponele los tags de .Lua , y te falta getAccountData.

utilise esto. me funciona pero no lo borra dle todo vuelve a aparecer las kills y las deaths

function resetPlayerScore (thePlayer)

local pname = getPlayerName(thePlayer)

setElementData(thePlayer,"T.Kills",0)

setElementData(thePlayer,"T.Deaths",0)

local playeraccount = getPlayerAccount ( source )

outputChatBox(tostring(pname) .." HA RESETEADO EL SCORE A 0-0.", getRootElement(), 255, 0, 0, true )

end

addCommandHandler("resetscore", resetPlayerScore)

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...