Arsilex Posted June 20, 2012 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
iFoReX Posted June 23, 2012 Posted June 23, 2012 es facil hacer un payday, con un setTimer y un givePlayerMoney elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Arsilex Posted June 23, 2012 Author Posted June 23, 2012 Podrías poner un ejemplo si no es mucha molestia
iFoReX Posted June 23, 2012 Posted June 23, 2012 setTimer(function() givePlayerMoney(getRootElement, AQUIELDINEROQUEQUIERESDARLE) end, elTIEMPO, 0) algo asi elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Arsilex Posted June 23, 2012 Author Posted June 23, 2012 para añadirle un if? ? me refiero a esto if exports.factions:isPlayerInFaction ( thePlayer, 1) then
iFoReX Posted June 23, 2012 Posted June 23, 2012 setTimer(function() local isPlayerInFaction = exports.factions:isPlayerInFaction if isPlayerInFaction(source, 1) then givePlayerMoney(source, AQUIELDINEROQUEQUIERESDARLE) end end, elTIEMPO, 0) eso ? elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Arsilex Posted June 23, 2012 Author Posted June 23, 2012 me salen 3 errores http://img515.imageshack.us/img515/8554/sinttulonds.png
iFoReX Posted June 23, 2012 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) elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Arsilex Posted June 23, 2012 Author 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)
iFoReX Posted June 23, 2012 Posted June 23, 2012 cambia thePlayer por source elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
iFoReX Posted June 23, 2012 Posted June 23, 2012 le pusiste en el meta.xml lo de export function ? elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Arsilex Posted June 23, 2012 Author Posted June 23, 2012 aora si se lo añadi pero sigue sin funcionar
iFoReX Posted June 23, 2012 Posted June 23, 2012 mm lo pusiste server-sided ? elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
BorderLine Posted June 24, 2012 Posted June 24, 2012 debugscript? Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Recommended Posts