Jump to content

Ayuda [BOSS]


Recommended Posts

En la 8va linea del archivo 'BOSS.lua':

slothbot1 = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random(300, 303), 0, 0, ex, 38, "hunting", true ) 

Cambia la parte de 'math.random(300, 303)' por el numero de skin que desees.

Link to comment
En la 8va linea del archivo 'BOSS.lua':
slothbot1 = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random(300, 303), 0, 0, ex, 38, "hunting", true ) 

Cambia la parte de 'math.random(300, 303)' por el numero de skin que desees.

Gracias Me sirvio :D

Link to comment

WTF lo probe por 2da ves y me desia esto:Bad Argument @ "addEventHandler" [expected element at argument 2, got function] hay un problema aqui?

local colshape = createColRectangle ( 103.88594818115, 1302.0729980469, 220, 200 ) -- estas son las coordenadas donde se va a crear el boss para cambiarlas solamente copien la posicion x e y de su admin panel 
zombiesMatados = 0 
function zona ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
zombiesMatados = ( zombiesMatados + 1 ) 
if ( zombiesMatados == 50 ) then 
if ( not isElement ( slothbot1 ) ) then 
        slothbot1 = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random(300, 303), 0, 0, ex, 38, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot1, 45000 ) 
outputChatBox("#FF0000Nemesis:#eeff00S.T.A.R.S!!!", getRootElement(), 155, 155, 155) 
myBlip = createBlipAttachedTo ( slothbot1, 23 ) 
         end 
      end 
   end 
end 
addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", getRootElement(), zona ) 
function restartear ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
        zombiesMatados = 0 
   end 
end 
addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted",getRootElement(), restartear ) 
function autor () 
outputChatBox("BOSSES creados por [COD]Plate", getRootElement(), 0, 255, 255, true) 
end 
addEventHandler("onPlayerJoin", getRootElement, autor) 

Link to comment
  • MTA Team

Ponlo asi:

local colshape = createColRectangle ( 103.88594818115, 1302.0729980469, 220, 200 ) -- estas son las coordenadas donde se va a crear el boss para cambiarlas solamente copien la posicion x e y de su admin panel 
zombiesMatados = 0 
function zona ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
zombiesMatados = ( zombiesMatados + 1 ) 
if ( zombiesMatados == 50 ) then 
if ( not isElement ( slothbot1 ) ) then 
        slothbot1 = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random(300, 303), 0, 0, ex, 38, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot1, 45000 ) 
outputChatBox("#FF0000Nemesis:#eeff00S.T.A.R.S!!!", getRootElement(), 155, 155, 155) 
myBlip = createBlipAttachedTo ( slothbot1, 23 ) 
         end 
      end 
   end 
end 
addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", getRootElement(), zona ) 
function restartear ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
        zombiesMatados = 0 
   end 
end 
addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted",getRootElement(), restartear ) 
function autor () 
outputChatBox("BOSSES creados por [COD]Plate", getRootElement(), 0, 255, 255, true) 
end 
addEventHandler("onPlayerJoin", getRootElement(), autor) 

Link to comment
  • Recently Browsing   0 members

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