NodZen Posted September 17, 2012 Posted September 17, 2012 Amigos, tengo una duda --como hago para que el SlothBot se spawnee a las 23:00 horas? Alguien sabe ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Arsilex Posted September 17, 2012 Posted September 17, 2012 encendiéndolo a las 23:00 y poner un timer de 24:00 horas eso esta chupado...
Matty Posted September 17, 2012 Posted September 17, 2012 getTime o getRealTime ...Learning Scripting... State: Rookie, Noob [AP3]=Matty!= My Skype: mattias.netz
NodZen Posted September 17, 2012 Author Posted September 17, 2012 No no , Yo me refiero a que en el server cuando sea las 23:00 se spawnee el Bot y a las 00:00 se destruya. Saben como es? ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Matty Posted September 17, 2012 Posted September 17, 2012 No no , Yo me refiero a que en el server cuando sea las 23:00 se spawnee el Bot y a las 00:00 se destruya. Saben como es? para tomar la hora del servidor usas el getTime y para que se destruya creeria que un killPed. ...Learning Scripting... State: Rookie, Noob [AP3]=Matty!= My Skype: mattias.netz
Soren Posted September 17, 2012 Posted September 17, 2012 No no , Yo me refiero a que en el server cuando sea las 23:00 se spawnee el Bot y a las 00:00 se destruya. Saben como es? para tomar la hora del servidor usas el getTime y para que se destruya creeria que un killPed. Creo que killPed no sirve en slothbots
Castillo Posted September 17, 2012 Posted September 17, 2012 Destruya o muera? porque: killPed -- Es para matar a un ped/jugador. destroyElement -- Es para destruir a un elemento. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted September 17, 2012 Posted September 17, 2012 El problema es otro, si no tienes los horarios sincronizados, a algunos le aparecerá antes, La hora no es igual en todos si no la tienes sincronizada. Developer @ MYVAL
Castillo Posted September 17, 2012 Posted September 17, 2012 Si usa la hora del servidor ( server side ), entonces estaran todos igual. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
NodZen Posted September 17, 2012 Author Posted September 17, 2012 Miren asi Yo les digo: function boss ( ) --Cuando en el juego sean las 23:00 se spawnea el Bot.. Nose si se acuerdan de un script llamado (invasion alien) , Bueno es eso a lo me refiero... slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) exports [ "extra_health" ]:setElementInvulnerable ( slothBot, true ) setElementModel ( slothBot, 287 ) outputChatBox ("#FF9B0ENemesis se ah generado") local myBlip = (createBlipAttachedTo ( slothBot, 0 )) end addEventHandler ( "onResourceStart", getRootElement(), boss ) ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
NodZen Posted September 17, 2012 Author Posted September 17, 2012 Se puede hacer? ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Recommended Posts