Jump to content

No se genera el SlothBot


NodZen

Recommended Posts

Hola amigos , miren , hice un script para que se genere un "nemesis" , pero no funca :S

function boss ( ) 
       slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 36, "hunting", true ) 
      exports.extra_health:setElementExtraHealth ( slothbot, 8000 ) 
      outputChatBox ("Nemesis se ah generado") 
      local myBlip = (createBlipAttachedTo ( slothBot, 23 ) 
 end 
addEventHandler ( "onResourceStart", getRootElement() boss ) 

En el mtaserver.exe me dice '>' expected near 'end'

Ayudenme que esta mal :S

PD: El nemesis no se genera , ni tampoco el blip

Link to comment
function boss ( ) 
       slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 36, "hunting", true ) 
      exports.extra_health:setElementExtraHealth ( slothbot, 8000 ) 
      outputChatBox ("Nemesis se ah generado") 
      local myBlip = (createBlipAttachedTo ( slothBot, 23 )) 
 end 
addEventHandler ( "onResourceStart", getRootElement() boss ) 

Link to comment
function boss ( ) 
       slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 36, "hunting", true ) 
      exports.extra_health:setElementExtraHealth ( slothbot, 8000 ) 
      outputChatBox ("Nemesis se ah generado") 
      local myBlip = (createBlipAttachedTo ( slothBot, 23 )) 
 end 
addEventHandler ( "onResourceStart", getRootElement() boss ) 

Es script es type server verdad?

Link to comment
function boss ( ) 
       slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 36, "hunting", true ) 
      exports.extra_health:setElementExtraHealth ( slothbot, 8000 ) 
      outputChatBox ("Nemesis se ah generado") 
      local myBlip = (createBlipAttachedTo ( slothBot, 23 )) 
 end 
addEventHandler ( "onResourceStart", getRootElement() boss ) 

Es script es type server verdad?

Si usas ese evento, si.

Link to comment
function boss ( ) 
       slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 36, "hunting", true ) 
      exports.extra_health:setElementExtraHealth ( slothbot, 8000 ) 
      outputChatBox ("Nemesis se ah generado") 
      local myBlip = (createBlipAttachedTo ( slothBot, 23 )) 
 end 
addEventHandler ( "onResourceStart", getRootElement(), boss ) 

prueba asi

Link to comment
function boss ( ) 
       slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90, 287, 0, 0, Nemesis, 36, "hunting", true ) 
      exports.extra_health:setElementExtraHealth ( slothBot, 8000 ) 
      outputChatBox ("Nemesis se ah generado") 
      local myBlip = (createBlipAttachedTo ( slothBot, 23 )) 
 end 
addEventHandler ( "onResourceStart", getRootElement(), boss ) 

a todo esto, que es lo que no funciona? no da spawn?

Link to comment
No es necesario eso simplemente cambias el math.random y enves de eso pones el 287

Y ese script de donde lo sacastes o.O por que si lo hisistes vos supongo que deves saber donde va el skin

`

Supones que alguien lo hizo por Mi? Le puse math.random para probar si el script funcionaba.

Link to comment
  • Recently Browsing   0 members

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