Andrixx Posted January 30, 2013 Posted January 30, 2013 Hola. Estaba terminando un script de medico pero no se como hacer que cada 2 segundos te de 10% de vida. Les dejo el script.. Server: function vidaaa(player, cmd, targetPlayerName ) local targetPlayerName = getPlayerFromName(targetPlayerName ) if getPlayerTeam(player) == getTeamFromName("Medicos") then outputChatBox ( "El paramedico te esta curando, porfavor espera", targetPlayerName, 0, 255, 0, true ) outputChatBox ( "Estas curando al paciente", player, 0, 255, 0, true ) setTimer(function () setElementHealth(targetPlayerName , 10) end, 2000, 5) else outputChatBox ( "Tu no eres medico para poder curar!", player, 0, 255, 0, true ) end end addCommandHandler("curar", vidaaa) Entonces, ¿Como le hago para que me de 10% de vida cada 2 segundos? Gracias.
Andrixx Posted January 30, 2013 Author Posted January 30, 2013 Gracias FraN-724 por responder, pero Alexs_Steel ya me ayudo
Recommended Posts