Mr.Balp Posted January 12, 2013 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)
Castillo Posted January 12, 2013 Posted January 12, 2013 Usa setAccountData para borrar la informacion de la cuenta ( como te dije por PM hace dias ). San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
NodZen Posted January 12, 2013 Posted January 12, 2013 Ponele los tags de .Lua , y te falta getElementData. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Mr.Balp Posted January 12, 2013 Author 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)
Castillo Posted January 12, 2013 Posted January 12, 2013 Usa setAccountData para borrar la informacion de la cuenta ( como te dije por PM hace dias ). San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts