Arsilex Posted June 20, 2012 Share Posted June 20, 2012 Hola me gustaría saber como hacer un payday es decir para paradise Que a los de una faction les de mas dinero que a las personas sin faction y que también den dinero la gente que tiene propiedades como pizzeria o cosas asi como podría hacer Link to comment
3rokul Posted June 23, 2012 Share Posted June 23, 2012 up, tambien me interesaria saberlo Link to comment
iFoReX Posted June 23, 2012 Share Posted June 23, 2012 es facil hacer un payday, con un setTimer y un givePlayerMoney Link to comment
Arsilex Posted June 23, 2012 Author Share Posted June 23, 2012 Podrías poner un ejemplo si no es mucha molestia Link to comment
iFoReX Posted June 23, 2012 Share Posted June 23, 2012 setTimer(function() givePlayerMoney(getRootElement, AQUIELDINEROQUEQUIERESDARLE) end, elTIEMPO, 0) algo asi Link to comment
Arsilex Posted June 23, 2012 Author Share Posted June 23, 2012 para añadirle un if? ? me refiero a esto if exports.factions:isPlayerInFaction ( thePlayer, 1) then Link to comment
iFoReX Posted June 23, 2012 Share Posted June 23, 2012 setTimer(function() local isPlayerInFaction = exports.factions:isPlayerInFaction if isPlayerInFaction(source, 1) then givePlayerMoney(source, AQUIELDINEROQUEQUIERESDARLE) end end, elTIEMPO, 0) eso ? Link to comment
Arsilex Posted June 23, 2012 Author Share Posted June 23, 2012 me salen 3 errores http://img515.imageshack.us/img515/8554/sinttulonds.png Link to comment
iFoReX Posted June 23, 2012 Share Posted June 23, 2012 prueba con esto, y reemplaza el tiempo por los milisegundos que quieres para que se les entregue el dinero setTimer(function() local isPlayerInFaction = exports.factions:isPlayerInFaction if isPlayerInFaction(source, 1) then givePlayerMoney(source, AQUIELDINEROQUEQUIERESDARLE) end end, elTIEMPO, 0) Link to comment
Arsilex Posted June 23, 2012 Author Share Posted June 23, 2012 nada los mismo errores Link to comment
Arsilex Posted June 23, 2012 Author Share Posted June 23, 2012 mira ize esto y no me salen errores pero tampoco me da el money setTimer(function() if exports.factions:isPlayerInFaction ( thePlayer, 1) then givePlayerMoney(thePlayer, 1) end end, 150, 0) Link to comment
iFoReX Posted June 23, 2012 Share Posted June 23, 2012 le pusiste en el meta.xml lo de export function ? Link to comment
Arsilex Posted June 23, 2012 Author Share Posted June 23, 2012 aora si se lo añadi pero sigue sin funcionar Link to comment
Recommended Posts