Mr.Balp Posted January 12, 2013 Share Posted January 12, 2013 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
Castillo Posted January 12, 2013 Share Posted January 12, 2013 Usa setAccountData para borrar la informacion de la cuenta ( como te dije por PM hace dias ). Link to comment
NodZen Posted January 12, 2013 Share Posted January 12, 2013 Ponele los tags de .Lua , y te falta getElementData. Link to comment
Mr.Balp Posted January 12, 2013 Author Share Posted January 12, 2013 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
Castillo Posted January 12, 2013 Share Posted January 12, 2013 Usa setAccountData para borrar la informacion de la cuenta ( como te dije por PM hace dias ). Link to comment
Recommended Posts