Digore Posted December 28, 2014 Posted December 28, 2014 Tengo un problema con este resource que he tratado de inventar a raiz de otro, es un resource que añada una cantidad muy grande de sangre (para los admines). El problema es que pongo su comando y no funciona function Blood (thePlayer) local blood = getElementData(thePlayer,"blood") setElementData(thePlayer,"blood",getElementData(thePlayer,"blood") + 999999999999) setAccountData(thePlayer,"blood",getElementData(thePlayer,"blood") + 999999999999) end end addCommandHandler("hs",Blood)
Alexs Posted December 28, 2014 Posted December 28, 2014 Te recomiendo, para facilitar la obtención de ayuda, publicar tu meta.xml. Developer @ MYVAL
Digore Posted January 2, 2015 Author Posted January 2, 2015 Ahora mismo no puedo publicarla, pero a finales de esta semana lo publico y me comentáis
Plate Posted January 2, 2015 Posted January 2, 2015 Creo que lo que el quiere es hacer esto function Blood (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then local blood = getElementData(thePlayer,"blood") setElementData(thePlayer,"blood", blood +999999999999) end end addCommandHandler("hs",Blood) PD: El code anterior tiene un end de mas Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Recommended Posts