Jump to content

Duda de SlothBot


NodZen

Recommended Posts

Posted
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.

mattybanner.jpg

...Learning Scripting...

State: Rookie, Noob

[AP3]=Matty!=

My Skype: mattias.netz

Posted
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

Posted

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.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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

Posted

Si usa la hora del servidor ( server side ), entonces estaran todos igual.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...