Jump to content

Ayuda [BOSS]


Recommended Posts

Hola, Tengo un problema con el boss =/ Puse para que spawneara en el area 51 pero cuando mato los zombies necesarios no aparece el boss y tengo el slothbot activado Y El extra_health me podrian ayudar? aqui esta el script:

local colshape = createColRectangle ( 249.2529296875, 1824.9951171875, 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 == 4 ) then 
if ( not isElement ( slothbot1 ) ) then 
        slothbot1 = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random(300, 300), 0, 0, ex, 6, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot1, 25000 ) 
outputChatBox ("#FF0000Nemesis:#EEFF00S.T.A.R.S!!!",getRootElement(), 255, 255, 255, true ) 
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) 
----MATA 
addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted", root, 
function( theKiller) 
    destroyElement(myBlip23) 
    givePlayerMoney ( theKiller,50000 ) 
    local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour 
    local chatterName = getPlayerName ( theKiller ) 
    outputChatBox (  chatterName.." #FF0000Ha Matado A Nemesis O_O !!! *", getRootElement(), r, g, b, true ) 
 end 
) 

Link to comment
  • Recently Browsing   0 members

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