Jakepankeke Posted January 6, 2015 Posted January 6, 2015 Hola tengo una duda como hago que en una hora exacta del juego inicie un evento y cuando pase 10 minutos o menos se cancelee dicho evento pondria el lua pero estoy en el celular Retirado, pero haciendo un proyecto llamado San Andreas Survival (mi último proyecto)
Castillo Posted January 6, 2015 Posted January 6, 2015 setTimer getRealTime San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Tomas Posted January 6, 2015 Posted January 6, 2015 setTimer getRealTime getRealTime ? Para detectar la hora del juego usa getTime Currently developing for International Gaming Community - Join us!
Castillo Posted January 6, 2015 Posted January 6, 2015 Ah, no vi bien que habia dicho hora del juego. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Jakepankeke Posted January 6, 2015 Author Posted January 6, 2015 Al parecer no me funciono lo que queria era que cuando inicie el resources haga esto: local entrar = createMarker ( 1172.0791015625, -1323.314453125, 16, "arrow", 1.5, 200, 200, 200, 10 ) function MarkerHit3( hitElement ) if getElementType(hitElement) == "player" then setElementPosition(hitElement,1183.0654296875, -1323.1708984375, 13.577724456787) setElementInterior(hitElement,0) fadeCamera ( hitElement, false, 0.1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, hitElement, true, 0.1) end end addEventHandler( "onMarkerHit", entrar, MarkerHit3 ) function nopermite () setElementPosition(entrar,1183.4072265625, -1318.0712890625, 13.575643539429) end setTimer(nopermite, 15000, 1) function permite () setElementPosition(entrar,1172.0791015625, -1323.314453125, 16) end setTimer(permite, 20000, 1) pero que pase almenos 15 minutos y se repita la funcion de "nopermite" y "permite" una y otra vez sin necesidad de reiniciar el resource ._. no se que cosa se necesita solo necesito eso y nada mas estaria agradecido de que me ayuden como no estaba en la pc se me hacia dificil mandar el script Retirado, pero haciendo un proyecto llamado San Andreas Survival (mi último proyecto)
Recommended Posts